import{h as u,r as p}from"../js/utils.825d3528.js";import{b as a,x as m}from"../js/app-core.82d0a9b8.js";import{_ as s,a as d}from"../js/vendor-other.2cdd5822.js";import"../js/vendor-vue-ui.02763c14.js";import"../js/vendor-datetime.430013a3.js";import"../js/vendor-lodash.f9514987.js";const g=u`
<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
	<path d="M17.2001 7.2L19.0361 9.036L17.7641 10.308L10.0001 2.544L2.23611 10.308L0.964111 9.036L10.0001 0L14.8001 4.8V2.4H17.2001V7.2ZM10.0001 4.248L17.2001 11.436V18.6H2.80011V11.436L10.0001 4.248ZM12.4001 17.4V11.4H7.60011V17.4H12.4001Z" fill="black"/>
</svg>
`,f="aioseo/locationcategories",L="AIOSEO Local - Location Categories",y="Displays location categories.",_="aioseo",S={html:!1},h={name:f,title:L,description:y,category:_,supports:S},r="all-in-one-seo-pack",{name:c,title:v,description:w,category:R,supports:b,attributes:x}=h,e=window.wp,E=e.serverSideRender||e.components.ServerSideRender,V=e.data.withSelect,$=e.components.Disabled,k={title:v,description:w,category:R,supports:b,attributes:x,icon:g,edit:V(function(o){const i=a();return{categories:o("core").getEntityRecords("taxonomy",i.aioseo.localBusiness.taxonomyName)}})(function(o){const n=m().options.localBusiness?.locations.general.multiple;let{categories:t}=o;if(n&&t===null)return React.createElement("div",null,s("Loading...",r));if(t=t===null?[]:t,!n)return React.createElement("div",null,s("Please enable multiple locations before using this block.",r));if(t.length===0){const l=a();return React.createElement("div",null,d(s("No %1$s found",r),l.aioseo.localBusiness.taxonomyPluralLabel))}return React.createElement("div",null,React.createElement($,null,React.createElement(E,{block:c})))}),save:function(){return null}};p({name:c,settings:k});
