import{h as p,r as m}from"../js/utils.916294f9.js";import{a as i,c as d}from"../js/index.e0fdfdc6.js";import"../js/translations.5e539ab1.js";import{_ as s,s as g}from"../js/default-i18n.368c2d5c.js";import"../js/runtime-core.esm-bundler.ce5add0b.js";import"../js/helpers.b1696305.js";const f=p`
<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>
`,h="https://schemas.wp.org/wp/5.8/block.json",L="aioseo/locationcategories",y="AIOSEO Local - Location Categories",_="Displays location categories.",w="aioseo",S="all-in-one-seo-pack",v={html:!1},R={$schema:h,name:L,title:y,description:_,category:w,textdomain:S,supports:v},r="all-in-one-seo-pack",{name:l,title:b,description:x,category:E,supports:$,attributes:k}=R,e=window.wp,V=e.serverSideRender||e.components.ServerSideRender,B=e.data.withSelect,A=e.components.Disabled,H={title:b,description:x,category:E,supports:$,attributes:k,icon:f,edit:B(function(o){const a=i();return{categories:o("core").getEntityRecords("taxonomy",a.aioseo.localBusiness.taxonomyName)}})(function(o){var c;const n=(c=d().options.localBusiness)==null?void 0:c.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 u=i();return React.createElement("div",null,g(s("No %1$s found",r),u.aioseo.localBusiness.taxonomyPluralLabel))}return React.createElement("div",null,React.createElement(A,null,React.createElement(V,{block:l})))}),save:function(){return null}};m({name:l,settings:H});
