var f=Object.defineProperty;var s=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var p=(l,a,o)=>a in l?f(l,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[a]=o,c=(l,a)=>{for(var o in a||(a={}))R.call(a,o)&&p(l,o,a[o]);if(s)for(var o of s(a))E.call(a,o)&&p(l,o,a[o]);return l};import{r as w,S as C}from"../server-side-render-qGFKBtC_.js";import{useBlockProps as S,InspectorControls as H}from"../shims/wp-block-editor.js";import{PanelBody as m,ToggleControl as t,TextControl as h,SelectControl as i}from"../shims/wp-components.js";import{__ as e}from"../shims/wp-i18n.js";const u=()=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},React.createElement("path",{fill:"currentColor",d:"M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z"}),React.createElement("path",{fill:"currentColor",d:"M9 4l-2 2 2 2M15 4l2 2-2 2",opacity:"0.5"})),x=({attributes:l,setAttributes:a})=>{const o=S({className:"prorank-breadcrumbs-block-editor"}),{separator:k,homeText:d,showCurrent:b,showHome:n,homeIcon:g,style:y,displayStyle:v}=l;return React.createElement("div",c({},o),React.createElement(H,null,React.createElement(m,{title:e("Breadcrumb Settings","prorank-seo"),initialOpen:!0},React.createElement(t,{label:e("Show Home","prorank-seo"),checked:n,onChange:r=>a({showHome:r}),help:e("Display the home link at the start of breadcrumbs.","prorank-seo")}),n&&React.createElement(React.Fragment,null,React.createElement(h,{label:e("Home Text","prorank-seo"),value:d,onChange:r=>a({homeText:r}),help:e("Text to display for the home link.","prorank-seo")}),React.createElement(t,{label:e("Show Home Icon","prorank-seo"),checked:g,onChange:r=>a({homeIcon:r}),help:e("Display a home icon before the home text.","prorank-seo")})),React.createElement(t,{label:e("Show Current Page","prorank-seo"),checked:b,onChange:r=>a({showCurrent:r}),help:e("Display the current page title at the end.","prorank-seo")}),React.createElement(h,{label:e("Separator","prorank-seo"),value:k,onChange:r=>a({separator:r}),help:e("Character(s) to separate breadcrumb items.","prorank-seo")})),React.createElement(m,{title:e("Appearance","prorank-seo"),initialOpen:!1},React.createElement(i,{label:e("Separator Style","prorank-seo"),value:y,options:[{label:e("Default","prorank-seo"),value:"default"},{label:e("Arrow (→)","prorank-seo"),value:"arrow"},{label:e("Slash (/)","prorank-seo"),value:"slash"},{label:e("Pipe (|)","prorank-seo"),value:"pipe"},{label:e("Chevron (›)","prorank-seo"),value:"chevron"}],onChange:r=>a({style:r})}),React.createElement(i,{label:e("Display Style","prorank-seo"),value:v,options:[{label:e("Inline","prorank-seo"),value:"inline"},{label:e("With Background","prorank-seo"),value:"background"},{label:e("Compact","prorank-seo"),value:"compact"},{label:e("Large","prorank-seo"),value:"large"}],onChange:r=>a({displayStyle:r})}))),React.createElement(C,{block:"prorank-seo/breadcrumbs",attributes:l,EmptyResponsePlaceholder:()=>React.createElement("div",{className:"prorank-breadcrumbs-placeholder"},React.createElement(u,null),React.createElement("span",null,e("Breadcrumbs will appear here on the frontend.","prorank-seo")))}))};w("prorank-seo/breadcrumbs",{apiVersion:3,title:e("ProRank Breadcrumbs","prorank-seo"),description:e("Display navigational breadcrumbs with schema markup.","prorank-seo"),category:"prorank-seo",icon:u,keywords:[e("breadcrumbs","prorank-seo"),e("navigation","prorank-seo"),e("seo","prorank-seo"),e("schema","prorank-seo")],supports:{html:!1,align:!0},attributes:{separator:{type:"string",default:"›"},homeText:{type:"string",default:"Home"},showCurrent:{type:"boolean",default:!0},showHome:{type:"boolean",default:!0},homeIcon:{type:"boolean",default:!1},style:{type:"string",default:"default"},displayStyle:{type:"string",default:"inline"}},edit:x,save:()=>null});
