import{h as p,r as m}from"../js/utils.6d965f64.js";import{a as c,e as d}from"../js/index.317ad629.js";import"../js/translations.e71e2202.js";import{_ as s,a as g}from"../js/default-i18n.65d58dd6.js";import"../js/runtime-core.esm-bundler.ce5add0b.js";import"../js/helpers.633a054c.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},a="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 r=c();return{categories:o("core").getEntityRecords("taxonomy",r.aioseo.localBusiness.taxonomyName)}})(function(o){var i;const n=(i=d().options.localBusiness)==null?void 0:i.locations.general.multiple;let{categories:t}=o;if(n&&t===null)return React.createElement("div",null,s("Loading...",a));if(t=t===null?[]:t,!n)return React.createElement("div",null,s("Please enable multiple locations before using this block.",a));if(t.length===0){const u=c();return React.createElement("div",null,g(s("No %1$s found",a),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});
