var g=Object.defineProperty;var n=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var l=(o,e,a)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[e]=a,s=(o,e)=>{for(var a in e||(e={}))h.call(e,a)&&l(o,a,e[a]);if(n)for(var a of n(e))k.call(e,a)&&l(o,a,e[a]);return o};import{r as d,S as u}from"../server-side-render-qGFKBtC_.js";import{useBlockProps as v,InspectorControls as y}from"../shims/wp-block-editor.js";import{PanelBody as R,TextControl as b,RangeControl as f,SelectControl as E}from"../shims/wp-components.js";import{__ as t}from"../shims/wp-i18n.js";const x=()=>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:"M4 4h6v6H4zm0 10h6v6H4zm10 0h6v6h-6zm0-10h6v6h-6z"})),C=({attributes:o,setAttributes:e,name:a})=>{const i=v({className:"prorank-related-content-editor"}),{heading:p,maxLinks:c,layout:m}=o;return React.createElement("div",s({},i),React.createElement(y,null,React.createElement(R,{title:t("Sibling Pages","prorank-seo"),initialOpen:!0},React.createElement(b,{label:t("Heading","prorank-seo"),value:p,onChange:r=>e({heading:r})}),React.createElement(f,{label:t("Maximum links","prorank-seo"),min:1,max:12,value:c,onChange:r=>e({maxLinks:Math.max(1,Math.min(12,r||1))})}),React.createElement(E,{label:t("Layout","prorank-seo"),value:m,onChange:r=>e({layout:r}),options:[{value:"list",label:t("List","prorank-seo")},{value:"grid",label:t("Compact grid","prorank-seo")}]}))),React.createElement(u,{block:a,attributes:o}))};d("prorank-seo/sibling-pages",{apiVersion:3,title:t("ProRank Sibling Pages","prorank-seo"),description:t("Lists other published pages under the same parent.","prorank-seo"),category:"prorank-seo",icon:x,keywords:[t("siblings","prorank-seo"),t("pages","prorank-seo"),t("navigation","prorank-seo")],supports:{html:!1,align:!0},attributes:{heading:{type:"string",default:t("Other Pages in This Section","prorank-seo")},maxLinks:{type:"number",default:5},layout:{type:"string",default:"list"},className:{type:"string",default:""}},edit:C,save:()=>null});
