const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__aioseoDynamicImportPreload__("js/Phone.042cb44d.js"),window.__aioseoDynamicImportPreload__("js/vendor-phone.8b9bc15d.js"),window.__aioseoDynamicImportPreload__("js/vendor-vue-ui.de3ab35f.js"),window.__aioseoDynamicImportPreload__("js/vendor-other.7b559694.js"),window.__aioseoDynamicImportPreload__("css/vendor-vue-ui.dbee72c8.css"),window.__aioseoDynamicImportPreload__("css/vendor-phone.bcf692fa.css"),window.__aioseoDynamicImportPreload__("js/app-core.ae890a3f.js"),window.__aioseoDynamicImportPreload__("js/vendor-lodash.8e35bd59.js"),window.__aioseoDynamicImportPreload__("js/_plugin-vue_export-helper.eefbdd86.js"),window.__aioseoDynamicImportPreload__("css/Phone.b9f04406.css")])))=>i.map(i=>d[i]); import{a as P,u as B,bD as N,bH as O,b as E,d as U,G as K,R as H}from"./app-core.ae890a3f.js";import{_ as w}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as l,a as T}from"./vendor-other.7b559694.js";import{u as C,g as z,aq as g,f as m,i as f,a0 as r,v as e,j as t,U as c,R as _,as as F,ae as y,w as j,M as v,Q as A,S as M,r as R}from"./vendor-vue-ui.de3ab35f.js";import{C as G}from"./HtmlTagsEditor.f64ea7dd.js";import{_ as Y}from"./vendor-phone.8b9bc15d.js";import{C as I}from"./Tooltip.ae7a1028.js";import{S as L}from"./Trash.d35f8063.js";import{C as J}from"./ImageUploader.fbfb8dc4.js";import{C as Z,u as Q}from"./Map.d67f5d6f.js";import{C as D}from"./Index.52399193.js";const V=()=>({getDataObject:C(()=>{const a=z(),s=P(),n=B();return a?.root?.data?.screenContext==="metabox"?n.currentPost.local_seo.locations.business:s.options.localBusiness.locations.business})}),q={class:"field-description"},W={__name:"AreaServed",setup(b){const s={areaServedDescription:l("The geographic area where a service or offered item is provided.","aioseo-pro")},{getDataObject:n}=V();return(d,o)=>{const i=g("base-input");return m(),f("div",null,[r(i,{type:"text",size:"medium",modelValue:e(n).areaServed,"onUpdate:modelValue":o[0]||(o[0]=u=>e(n).areaServed=u)},null,8,["modelValue"]),t("span",q,c(s.areaServedDescription),1)])}}},hs=w(W,[["__scopeId","data-v-56611198"]]),X={class:"columns field-row aioseo-business-address"},ee={class:"aioseo-col col-xs-12 text-xs-left"},se={class:"field-description"},te={class:"aioseo-col col-xs-12 text-xs-left"},oe={class:"field-description"},ae={class:"aioseo-address-wrapper"},ne={class:"aioseo-col col-xs-12 col-sm-12 col-md-6 text-xs-left"},ie={class:"field-description"},le={class:"aioseo-col col-xs-12 col-sm-12 col-md-6 text-xs-left"},re={class:"field-description"},de={class:"aioseo-col col-xs-12 text-xs-left"},ce={class:"field-description"},ue={id:"aioseo-local-business-business-country",class:"aioseo-col col-xs-12 text-xs-left"},pe={class:"field-description"},me={class:"aioseo-col col-xs-12 text-xs-left address-format"},_e={class:"field-description"},fe={class:"aioseo-description"},Vs={__name:"Address",setup(b){const a="aioseo-pro",{getDataObject:s}=V(),n={streetAddress:l("Address Line 1",a),streetAddress2:l("Address Line 2",a),zipCode:l("Zip Code",a),city:l("City",a),state:l("State",a),country:l("Country",a),addressFormat:l("Address Format",a),addressFormatDescription:l("Use the smart tags above to define your address format (used in blocks, widgets and shortcodes).",a)};return(d,o)=>{const i=g("base-input"),u=g("base-select");return m(),f("div",X,[t("div",ee,[t("span",se,c(n.streetAddress),1),r(i,{type:"text",size:"medium",modelValue:e(s).address.streetLine1,"onUpdate:modelValue":o[0]||(o[0]=p=>e(s).address.streetLine1=p)},null,8,["modelValue"])]),t("div",te,[t("span",oe,c(n.streetAddress2),1),r(i,{type:"text",size:"medium",modelValue:e(s).address.streetLine2,"onUpdate:modelValue":o[1]||(o[1]=p=>e(s).address.streetLine2=p)},null,8,["modelValue"])]),t("div",ae,[t("div",ne,[t("span",ie,c(n.zipCode),1),r(i,{type:"text",size:"medium",modelValue:e(s).address.zipCode,"onUpdate:modelValue":o[2]||(o[2]=p=>e(s).address.zipCode=p)},null,8,["modelValue"])]),t("div",le,[t("span",re,c(n.city),1),r(i,{type:"text",size:"medium",modelValue:e(s).address.city,"onUpdate:modelValue":o[3]||(o[3]=p=>e(s).address.city=p)},null,8,["modelValue"])])]),t("div",de,[t("span",ce,c(n.state),1),r(i,{type:"text",size:"medium",modelValue:e(s).address.state,"onUpdate:modelValue":o[4]||(o[4]=p=>e(s).address.state=p)},null,8,["modelValue"])]),t("div",ue,[t("span",pe,c(n.country),1),r(u,{size:"medium",options:e(N),modelValue:e(N).find(p=>p.value===e(s).address.country),"onUpdate:modelValue":o[5]||(o[5]=p=>e(s).address.country=p.value)},null,8,["options","modelValue"])]),t("div",me,[t("span",_e,c(n.addressFormat),1),r(e(G),{modelValue:e(s).address.addressFormat,"onUpdate:modelValue":o[6]||(o[6]=p=>e(s).address.addressFormat=p),"line-numbers":!1,checkUnfilteredHtml:"","tags-context":"addressFormat","disable-emoji":"","default-tags":["streetLineOne","streetLineTwo","zipCode","city","state","country"]},{"tags-description":_(()=>[...o[7]||(o[7]=[t("span",null,null,-1)])]),_:1},8,["modelValue"]),t("div",fe,c(n.addressFormatDescription),1)])])}}},ye={class:"aioseo-local-business-business-contact"},xe={class:"aioseo-col col-xs-12 text-xs-left"},ve={class:"field-description"},be={id:"aioseo-local-business-phone-number",class:"aioseo-col col-xs-12 text-xs-left"},$e={class:"field-description mt-8"},ge={id:"aioseo-local-business-fax-number",class:"aioseo-col col-xs-12 text-xs-left"},he={class:"field-description mt-8"},Ss={__name:"Contact",setup(b){const a=F(()=>Y(()=>import("./Phone.042cb44d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),s="aioseo-pro",{getDataObject:n}=V(),d={emailAddress:l("Email Address",s),phoneNumber:l("Phone Number",s),faxNumber:l("Fax Number",s)};return(o,i)=>{const u=g("base-input");return m(),f("div",ye,[t("div",xe,[t("span",ve,c(d.emailAddress),1),r(u,{type:"text",size:"medium",modelValue:e(n).contact.email,"onUpdate:modelValue":i[0]||(i[0]=p=>e(n).contact.email=p)},null,8,["modelValue"])]),t("div",be,[t("span",$e,c(d.phoneNumber),1),r(e(a),{modelValue:e(n).contact.phone,"onUpdate:modelValue":i[1]||(i[1]=p=>e(n).contact.phone=p),onInputFormatted:i[2]||(i[2]=p=>e(n).contact.phoneFormatted=p)},null,8,["modelValue"])]),t("div",ge,[t("span",he,c(d.faxNumber),1),r(e(a),{modelValue:e(n).contact.fax,"onUpdate:modelValue":i[3]||(i[3]=p=>e(n).contact.fax=p),onInputFormatted:i[4]||(i[4]=p=>e(n).contact.faxFormatted=p)},null,8,["modelValue"])])])}}},Ve={class:"aioseo-local-business-ids"},Se={class:"aioseo-col col-xs-12 text-xs-left"},Ie={class:"field-description"},Le={class:"aioseo-col col-xs-12 text-xs-left"},Ce={class:"field-description mt-8"},ke={class:"aioseo-col col-xs-12 text-xs-left"},Ae={class:"field-description mt-8"},De=["innerHTML"],Te={class:"aioseo-col col-xs-12 text-xs-left"},Oe={class:"field-description mt-8"},Pe=["innerHTML"],ze={class:"aioseo-col col-xs-12 text-xs-left"},Ne={class:"field-description mt-8"},Ue=["innerHTML"],Me={class:"aioseo-col col-xs-12 text-xs-left"},Be={class:"field-description mt-8"},we=["innerHTML"],Ee={class:"aioseo-col col-xs-12 text-xs-left"},Ke={class:"field-description mt-8"},He=["innerHTML"],Is={__name:"Ids",setup(b){const a="aioseo-pro",{getDataObject:s}=V(),n={vatId:l("VAT ID",a),taxId:l("Tax ID",a),lei:l("LEI",a),duns:l("DUNS",a),naics:l("NAICS",a),iso6523:l("ISO 6523 Code",a),gs1:l("GS1",a),iso6523Description:T(l("The %1$sISO 6523 code%2$s of your organization, if applicable. Leave this blank if you are unsure what this is.",a),'',""),dunsDescription:l("The Dun & Bradstreet DUNS number of your organization, if applicable. Leave this blank if you are unsure what this is.",a),leiDescription:l("The Legal Entity Identifier (LEI) of your organization as defined in ISO 17442, if applicable. Leave this blank if you are unsure what this is.",a),naicsDescription:T(l("The %1$s North American Industry Classification System (NAICS) code%2$s of your organization, if applicable. Leave this blank if you are unsure what this is.",a),'',""),gs1Description:l("The GS1 Global Location Number identifying the location of your organization, if applicable. Leave this blank if you are unsure what this is.",a)};return(d,o)=>{const i=g("base-input");return m(),f("div",Ve,[t("div",Se,[t("span",Ie,c(n.vatId),1),r(i,{type:"text",size:"medium",modelValue:e(s).ids.vat,"onUpdate:modelValue":o[0]||(o[0]=u=>e(s).ids.vat=u)},null,8,["modelValue"])]),t("div",Le,[t("span",Ce,c(n.taxId),1),r(i,{type:"text",size:"medium",modelValue:e(s).ids.tax,"onUpdate:modelValue":o[1]||(o[1]=u=>e(s).ids.tax=u)},null,8,["modelValue"])]),t("div",ke,[t("span",Ae,[y(c(n.iso6523)+" ",1),r(e(I),null,{tooltip:_(()=>[t("span",{innerHTML:n.iso6523Description},null,8,De)]),default:_(()=>[r(e(L))]),_:1})]),r(i,{type:"text",size:"medium",modelValue:e(s).ids.iso6523,"onUpdate:modelValue":o[2]||(o[2]=u=>e(s).ids.iso6523=u)},null,8,["modelValue"])]),t("div",Te,[t("span",Oe,[y(c(n.lei)+" ",1),r(e(I),null,{tooltip:_(()=>[t("span",{innerHTML:n.leiDescription},null,8,Pe)]),default:_(()=>[r(e(L))]),_:1})]),r(i,{type:"text",size:"medium",modelValue:e(s).ids.lei,"onUpdate:modelValue":o[3]||(o[3]=u=>e(s).ids.lei=u)},null,8,["modelValue"])]),t("div",ze,[t("span",Ne,[y(c(n.duns)+" ",1),r(e(I),null,{tooltip:_(()=>[t("span",{innerHTML:n.dunsDescription},null,8,Ue)]),default:_(()=>[r(e(L))]),_:1})]),r(i,{type:"text",size:"medium",modelValue:e(s).ids.duns,"onUpdate:modelValue":o[4]||(o[4]=u=>e(s).ids.duns=u)},null,8,["modelValue"])]),t("div",Me,[t("span",Be,[y(c(n.naics)+" ",1),r(e(I),null,{tooltip:_(()=>[t("span",{innerHTML:n.naicsDescription},null,8,we)]),default:_(()=>[r(e(L))]),_:1})]),r(i,{type:"text",size:"medium",modelValue:e(s).ids.naics,"onUpdate:modelValue":o[5]||(o[5]=u=>e(s).ids.naics=u)},null,8,["modelValue"])]),t("div",Ee,[t("span",Ke,[y(c(n.gs1)+" ",1),r(e(I),null,{tooltip:_(()=>[t("span",{innerHTML:n.gs1Description},null,8,He)]),default:_(()=>[r(e(L))]),_:1})]),r(i,{type:"text",size:"medium",modelValue:e(s).ids.gs1,"onUpdate:modelValue":o[6]||(o[6]=u=>e(s).ids.gs1=u)},null,8,["modelValue"])])])}}},Ls={__name:"Type",setup(b){const{getDataObject:a}=V(),s=n=>{let d=O.find(o=>o.value===n);return(typeof d>"u"||d.length===0)&&(d=O.find(o=>!!o.value)),d};return(n,d)=>{const o=g("base-select");return m(),f("div",null,[r(o,{size:"medium",options:e(O),modelValue:s(e(a).businessType),"onUpdate:modelValue":d[0]||(d[0]=i=>e(a).businessType=i.value)},null,8,["options","modelValue"])])}}},Cs={__name:"Image",setup(b){const a=P(),s=B(),{getDataObject:n}=V();return j(()=>n.value.image,d=>{if(z()?.root?.data?.screenContext!=="metabox"){a.options.localBusiness.locations.business.image=d;return}s.currentPost.local_seo.locations.business.image=d,s.savePostState()}),(d,o)=>(m(),f("div",null,[r(e(J),{modelValue:e(n).image,"onUpdate:modelValue":o[0]||(o[0]=i=>e(n).image=i)},null,8,["modelValue"])]))}},Fe={class:"local-business-map"},je={key:0},Re=["innerHTML"],Ge={key:1},Ye={key:0},Je={key:1},Ze=["href"],Qe=["href"],qe={key:2},We={key:0,class:"information"},Xe={key:0,class:"latLng"},es={key:1},ss={class:"map-zoom"},ks={__name:"Index",setup(b){const a="aioseo-pro",s=P(),n=E(),{getDataObject:d}=Q(),o=R(null),i={map:l("Map",a),coordinates:l("Coordinates",a),latitude:l("Latitude",a),longitude:l("Longitude",a),zoom:l("Zoom Level",a),currentMarker:l("Your current marker",a),address:l("Address",a),phoneNumber:l("Phone Number",a),website:l("Website",a),placeId:l("Place ID",a),description:l("Use the map below to set your exact location. Search for an address, select a business or click anywhere to place a marker.",a),placeSelected:T(l("You selected a Place (from Google Places) but your Maps Embed API is not enabled. For a more seamless experience and rich information cards please enable it in your Google Project. %1$s",a),U.getDocLink(K.learnMore,"localSeoMapEmbedApi",!0)),apiKeyInvalid:T(l("Your API Key is invalid. Please make sure you have set your key correctly. %1$s",a),U.getDocLink(l("Learn more",a),"localSeoMapSetup",!0)),apiKeyNotSet:l("You must first enter a Google Maps API Key for this feature to work.",a),apiKeyNotSetAnchor:l("Click here to enter an API key",a)},u=C(()=>z().root.data.screenContext),p=C(()=>({position:$(),icon:d.value.customMarker})),k=h=>{(h?.lat||h?.latLng)&&(d.value.mapOptions.center=h.lat?h.toJSON():h.latLng.toJSON()),d.value.placeId=h.placeId||null},$=()=>(d.value.mapOptions.center.lat=parseFloat(d.value.mapOptions.center.lat),d.value.mapOptions.center.lng=parseFloat(d.value.mapOptions.center.lng),d.value.mapOptions.center);return(h,x)=>(m(),f("div",Fe,[!e(s).options.localBusiness.maps.apiKeyValid&&e(s).options.localBusiness.maps.apiKey?(m(),f("div",je,[r(e(D),{type:"yellow"},{default:_(()=>[t("div",{innerHTML:i.apiKeyInvalid},null,8,Re)]),_:1})])):v("",!0),e(s).options.localBusiness.maps.apiKey?v("",!0):(m(),f("div",Ge,[r(e(D),{type:"yellow"},{default:_(()=>[u.value!=="metabox"?(m(),f("div",Ye,[y(c(i.apiKeyNotSet)+" ",1),(m(),A(M(u.value!=="metabox"?"router-link":"a"),{to:"/maps"},{default:_(()=>[y(c(i.apiKeyNotSetAnchor),1)]),_:1})),(m(),A(M(u.value!=="metabox"?"router-link":"a"),{to:"/maps",class:"no-underline"},{default:_(()=>[...x[4]||(x[4]=[y(" → ",-1)])]),_:1}))])):v("",!0),u.value==="metabox"?(m(),f("div",Je,[y(c(i.apiKeyNotSet)+" ",1),t("a",{target:"_blank",href:e(n).aioseo.urls.aio.localSeo+"#/maps"},c(i.apiKeyNotSetAnchor),9,Ze),t("a",{target:"_blank",href:e(n).aioseo.urls.aio.localSeo+"#/maps",class:"no-underline"}," → ",8,Qe)])):v("",!0)]),_:1})])),e(s).options.localBusiness.maps.apiKeyValid&&e(s).options.localBusiness.maps.apiKey?(m(),f("div",qe,[r(e(D),{type:"blue"},{default:_(()=>[y(c(i.description),1)]),_:1}),o.value?(m(),f("div",We,[o.value.latLng?(m(),f("div",Xe,[t("div",null,[t("strong",null,c(i.latitude),1),y(": "+c(o.value.latLng.lat),1)]),t("div",null,[t("strong",null,c(i.longitude),1),y(": "+c(o.value.latLng.lng),1)])])):v("",!0),e(s).options.localBusiness.maps.mapsEmbedApiEnabled&&o.value.placeId?(m(),f("div",es,[t("strong",null,c(i.placeId),1),y(": "+c(o.value.placeId),1)])):v("",!0)])):v("",!0),e(s).options.localBusiness.maps.apiKeyValid&&e(s).options.localBusiness.maps.apiKey?(m(),A(e(Z),{key:1,apiKey:e(s).options.localBusiness.maps.apiKey,options:e(d).mapOptions,placeId:e(d).placeId,marker:p.value,address:e(d).geocodeAddress,searchBox:!0,onZoomChanged:x[0]||(x[0]=S=>e(d).mapOptions.zoom=S),onClick:x[1]||(x[1]=S=>k(S)),onMarkerPositionChanged:x[2]||(x[2]=S=>k(S)),onPlaceInformation:x[3]||(x[3]=S=>o.value=S)},null,8,["apiKey","options","placeId","marker","address"])):v("",!0),t("div",ss,[t("strong",null,c(i.zoom)+":",1),y(" "+c(e(d).mapOptions.zoom),1)]),e(d).placeId&&!e(s).options.localBusiness.maps.mapsEmbedApiEnabled?(m(),A(e(D),{key:2,type:"yellow",innerHTML:i.placeSelected},null,8,["innerHTML"])):v("",!0)])):v("",!0)]))}},ts={class:"field-description"},os={__name:"Name",setup(b){const a="aioseo-pro",{getDataObject:s}=V(),n={nameDesc:l("Your name or company name.",a)};return(d,o)=>{const i=g("base-input");return m(),f("div",null,[r(i,{type:"text",size:"medium",modelValue:e(s).name,"onUpdate:modelValue":o[0]||(o[0]=u=>e(s).name=u)},null,8,["modelValue"]),t("span",ts,c(n.nameDesc),1)])}}},As=w(os,[["__scopeId","data-v-8ad4d361"]]),as={class:"aioseo-local-business-payment-info"},ns={class:"aioseo-col col-xs-12 text-xs-left"},is={class:"field-description"},ls={id:"aioseo-local-business-currencies-accepted",class:"aioseo-col col-xs-12 text-xs-left"},rs={class:"field-description mt-8"},ds={class:"aioseo-col col-xs-12 text-xs-left"},cs={class:"field-description mt-8"},Ds={__name:"PaymentInfo",setup(b){const a="aioseo-pro",{getDataObject:s}=V(),n={priceIndicator:l("Price Indicator",a),currenciesAccepted:l("Currencies Accepted",a),paymentMethods:l("Payment Methods Accepted",a),selectPriceIndicator:l("Select a price indicator...",a),selectCurrency:l("Select a currency...",a),priceIndicatorTooltip:l("The relative price range of the product, where $ is the least expensive and $$$$$ is the most expensive. This is not related to the accepted currencies.",a)},d=C(()=>[{value:"$",label:"$"},{value:"$$",label:"$$"},{value:"$$$",label:"$$$"},{value:"$$$$",label:"$$$$"},{value:"$$$$$",label:"$$$$$"}]),o=C({get(){let i=s.value.payment.currenciesAccepted||[];return typeof i<"u"&&0{const p=g("base-select"),k=g("base-input");return m(),f("div",as,[t("div",ns,[t("div",is,[t("span",null,c(n.priceIndicator),1),r(e(I),null,{tooltip:_(()=>[y(c(n.priceIndicatorTooltip),1)]),default:_(()=>[r(e(L))]),_:1})]),r(p,{size:"medium",options:d.value,placeholder:n.selectPriceIndicator,modelValue:d.value.find($=>$.value===e(s).payment.priceRange),"onUpdate:modelValue":u[0]||(u[0]=$=>e(s).payment.priceRange=$.value)},null,8,["options","placeholder","modelValue"])]),t("div",ls,[t("span",rs,c(n.currenciesAccepted),1),r(p,{size:"medium",modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=$=>o.value=$),label:"currenciesAccepted","track-by":"value",class:"aioseo-multiselect",options:e(H),placeholder:n.selectCurrency,multiple:"","close-on-select":!1},null,8,["modelValue","options","placeholder"])]),t("div",ds,[t("span",cs,c(n.paymentMethods),1),r(k,{type:"text",size:"medium",modelValue:e(s).payment.methods,"onUpdate:modelValue":u[2]||(u[2]=$=>e(s).payment.methods=$)},null,8,["modelValue"])])])}}};export{As as L,Cs as _,Ls as a,Vs as b,ks as c,Ss as d,Is as e,Ds as f,hs as g};