File: D:/web/conferencesearch/wp-content/plugins/html-sitemap/build/html-sitemap-block/index.js
(()=>{"use strict";var e,t={816(){const e=window.wp.blocks,t=window.wp.i18n,l=window.wp.element,a=window.wp.blockEditor,s=window.wp.components,i=window.wp.primitives,o=window.ReactJSXRuntime;var m=(0,o.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(i.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});const h=e=>{let t="[html_sitemap";return Object.entries(e).forEach(([e,l])=>{""!==l&&"className"!==e&&(t+=` ${e}="${(e=>null==e?"":String(e).replace(/"/g,""").replace(/]/g,"]"))(l)}"`)}),t+="]",t},p=JSON.parse('{"UU":"html-sitemap/html-sitemap-block"}'),n=(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"512",height:"512",fill:"#3a80f5",className:"bi bi-list-ul",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M8 11.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m-3-4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m-3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})});(0,e.registerBlockType)(p.UU,{edit:function({attributes:e,setAttributes:i}){const[p,n]=(0,l.useState)("shortcode");return(0,o.jsxs)("div",{...(0,a.useBlockProps)(),children:[(0,o.jsx)(a.BlockControls,{children:(0,o.jsxs)(s.ToolbarGroup,{children:[(0,o.jsx)(s.ToolbarButton,{label:(0,t.__)("Shortcode","html-sitemap"),text:(0,t.__)("Shortcode","html-sitemap"),icon:m,isPressed:"shortcode"===p,onClick:()=>n("shortcode")}),(0,o.jsx)(s.ToolbarButton,{label:(0,t.__)("Preview","html-sitemap"),text:(0,t.__)("Preview","html-sitemap"),isPressed:"preview"===p,onClick:()=>n("preview")})]})}),(0,o.jsxs)(a.InspectorControls,{children:[(0,o.jsxs)(s.PanelBody,{title:(0,t.__)("Page Options","html-sitemap"),children:[(0,o.jsx)(s.TextControl,{label:(0,t.__)("Child Of","html-sitemap"),value:e.child_of||"",onChange:e=>{i({child_of:e})},help:(0,t.__)("Specify a parent page ID to only include its child pages in the sitemap. The value 'CURRENT' will use the current page ID. The value 'PARENT' will use the current page parent ID.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Author(s)","html-sitemap"),value:e.authors||"",onChange:e=>{i({authors:e})},help:(0,t.__)("Comma-separated list of author IDs to include.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Exclude Pages","html-sitemap"),value:e.exclude||"",onChange:e=>{i({exclude:e})},help:(0,t.__)("Comma-separated list of page IDs to exclude.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Include Pages","html-sitemap"),value:e.include||"",onChange:e=>{i({include:e})},help:(0,t.__)("Comma-separated list of page IDs to include.","html-sitemap")})]}),(0,o.jsxs)(s.PanelBody,{title:(0,t.__)("Depth and Sorting","html-sitemap"),initialOpen:!1,children:[(0,o.jsx)(s.SelectControl,{label:(0,t.__)("Depth","html-sitemap"),value:e.depth||"",options:[{label:(0,t.__)("All pages","html-sitemap"),value:""},{label:(0,t.__)("Top-level pages","html-sitemap"),value:"1"},{label:(0,t.__)("2nd-level pages","html-sitemap"),value:"2"},{label:(0,t.__)("3rd-level pages","html-sitemap"),value:"3"},{label:(0,t.__)("4th-level pages","html-sitemap"),value:"4"},{label:(0,t.__)("5th-level pages","html-sitemap"),value:"5"},{label:(0,t.__)("6th-level pages","html-sitemap"),value:"6"},{label:(0,t.__)("7th-level pages","html-sitemap"),value:"7"},{label:(0,t.__)("8th-level pages","html-sitemap"),value:"8"},{label:(0,t.__)("9th-level pages","html-sitemap"),value:"9"},{label:(0,t.__)("10th-level pages","html-sitemap"),value:"10"},{label:(0,t.__)("All in one-dimensional list","html-sitemap"),value:"-1"}],onChange:e=>{i({depth:e})},help:(0,t.__)("Specify the depth of the sitemap. This will determine how many levels of pages are displayed.","html-sitemap")}),(0,o.jsx)(s.SelectControl,{label:(0,t.__)("Sort Order","html-sitemap"),value:e.sort_order||"",options:[{label:(0,t.__)("None","html-sitemap"),value:""},{label:(0,t.__)("Ascending","html-sitemap"),value:"ASC"},{label:(0,t.__)("Descending","html-sitemap"),value:"DESC"}],onChange:e=>{i({sort_order:e})},help:(0,t.__)("Specify the sort order for the sitemap.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Sort Column","html-sitemap"),value:e.sort_column||"",onChange:e=>{i({sort_column:e})},help:(0,t.__)('Specify the column to sort by. This should be a valid column name from the wp_posts database table, such as "post_title" or "post_date".',"html-sitemap")})]}),(0,o.jsxs)(s.PanelBody,{title:(0,t.__)("List Styling","html-sitemap"),initialOpen:!1,children:[(0,o.jsx)(s.TextControl,{label:(0,t.__)("List CSS class(es)","html-sitemap"),value:e.class||"",onChange:e=>{i({class:e})},help:(0,t.__)("Separate multiple classes with spaces.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("List CSS ID","html-sitemap"),value:e.id||"",onChange:e=>{i({id:e})},help:(0,t.__)("Specify a unique element ID.","html-sitemap")}),(0,o.jsx)(s.SelectControl,{label:(0,t.__)("Ordered List Type","html-sitemap"),value:e.ordered_list_type||"",options:[{label:(0,t.__)("Unordered","html-sitemap"),value:""},{label:(0,t.__)("Numbers","html-sitemap"),value:"1"},{label:(0,t.__)("Uppercase Letters","html-sitemap"),value:"A"},{label:(0,t.__)("Lowercase Letters","html-sitemap"),value:"a"},{label:(0,t.__)("Uppercase Roman Numerals","html-sitemap"),value:"I"},{label:(0,t.__)("Lowercase Roman Numerals","html-sitemap"),value:"i"}],onChange:e=>{i({ordered_list_type:e})},help:(0,t.__)("Specify the type of ordered list. This will be applied to the <ol> element if the sitemap is rendered as an ordered list.","html-sitemap")}),(0,o.jsx)(s.SelectControl,{label:(0,t.__)("Item Spacing","html-sitemap"),value:e.item_spacing||"",options:[{label:(0,t.__)("Preserve","html-sitemap"),value:""},{label:(0,t.__)("Discard","html-sitemap"),value:"discard"}],onChange:e=>{i({item_spacing:e})},help:(0,t.__)("Preserve whitespace within the menu’s HTML.","html-sitemap")}),(0,o.jsx)(s.SelectControl,{label:(0,t.__)("Show Page Dates","html-sitemap"),value:e.show_date||"",options:[{label:(0,t.__)("No","html-sitemap"),value:""},{label:(0,t.__)("Published date","html-sitemap"),value:"true"},{label:(0,t.__)("Last modified date","html-sitemap"),value:"modified"}],onChange:e=>{i({show_date:e})},help:(0,t.__)("Whether to display the date in the sitemap.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Date Format","html-sitemap"),value:e.date_format||"",onChange:e=>{i({date_format:e})},help:(0,t.__)("Specify the date format to use if page dates are displayed. This should be a valid date format string as defined in the WordPress documentation.","html-sitemap")})]}),(0,o.jsxs)(s.PanelBody,{title:(0,t.__)("Filters","html-sitemap"),initialOpen:!1,children:[(0,o.jsx)(s.TextControl,{label:(0,t.__)("Post Type","html-sitemap"),value:e.post_type||"",onChange:e=>{i({post_type:e})},help:(0,t.__)('Specify a custom post type to include in the sitemap. The default is "page".',"html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Post Status","html-sitemap"),value:e.post_status||"",onChange:e=>{i({post_status:e})},help:(0,t.__)('Specify the post status to include in the sitemap. The default is "publish".',"html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Meta Key","html-sitemap"),value:e.meta_key||"",onChange:e=>{i({meta_key:e})},help:(0,t.__)("Specify a meta key to filter pages by. Only pages with this meta key will be included in the sitemap.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Meta Value","html-sitemap"),value:e.meta_value||"",onChange:e=>{i({meta_value:e})},help:(0,t.__)("Specify a meta value to filter pages by. Only pages with this meta value for the specified meta key will be included in the sitemap.","html-sitemap")}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Number of Pages","html-sitemap"),value:e.number||"",onChange:e=>{i({number:e})},help:(0,t.__)("Specify the maximum number of pages to include in the sitemap. The default is to include all pages.","html-sitemap")}),(0,o.jsx)(s.Text,{children:(0,o.jsx)("p",{className:"components-base-control__help",children:(0,t.__)("List must be one-dimensional.","html-sitemap")})}),(0,o.jsx)(s.TextControl,{label:(0,t.__)("Offset","html-sitemap"),value:e.offset||"",onChange:e=>{i({offset:e})},help:(0,t.__)("Specify the number of pages to skip before starting to include pages in the sitemap. The default is 0.","html-sitemap")}),(0,o.jsx)(s.Text,{children:(0,o.jsx)("p",{className:"components-base-control__help",children:(0,t.__)("List must be one-dimensional.","html-sitemap")})})]})]}),"shortcode"===p?(0,o.jsx)(s.Placeholder,{icon:m,label:(0,t.__)("HTML Sitemap","html-sitemap"),instructions:(0,t.__)("Configure the block settings to generate the shortcode.","html-sitemap"),children:(0,o.jsx)("code",{children:h(e)})}):(0,o.jsx)("div",{className:"html-sitemap-preview",children:(0,t.__)("Preview coming soon","html-sitemap")})]})},icon:n,save:function({attributes:e}){return(0,o.jsx)("div",{...a.useBlockProps.save(),children:h(e)})},transforms:{to:[{type:"block",blocks:["core/shortcode"],transform:t=>(0,e.createBlock)("core/shortcode",{text:h(t)})}]}})}},l={};function a(e){var s=l[e];if(void 0!==s)return s.exports;var i=l[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,l,s,i)=>{if(!l){var o=1/0;for(n=0;n<e.length;n++){for(var[l,s,i]=e[n],m=!0,h=0;h<l.length;h++)(!1&i||o>=i)&&Object.keys(a.O).every(e=>a.O[e](l[h]))?l.splice(h--,1):(m=!1,i<o&&(o=i));if(m){e.splice(n--,1);var p=s();void 0!==p&&(t=p)}}return t}i=i||0;for(var n=e.length;n>0&&e[n-1][2]>i;n--)e[n]=e[n-1];e[n]=[l,s,i]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={79:0,127:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var s,i,[o,m,h]=l,p=0;if(o.some(t=>0!==e[t])){for(s in m)a.o(m,s)&&(a.m[s]=m[s]);if(h)var n=h(a)}for(t&&t(l);p<o.length;p++)i=o[p],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(n)},l=globalThis.webpackChunkhtml_sitemap=globalThis.webpackChunkhtml_sitemap||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var s=a.O(void 0,[127],()=>a(816));s=a.O(s)})();