!function(){"use strict";var e=window.wp.blocks,t=window.wp.blockEditor;function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},a.apply(null,arguments)}var r=window.wp.components;const n=[["core/paragraph",{placeholder:"Add tab content"}]];var l=JSON.parse('{"UU":"purdue/tab-block"}'),o=[[{attributes:{aria:{type:"string",default:""},editorSelected:{type:"boolean",default:!1},selected:{type:"boolean",default:!1},anchorId:{type:"string"}},save:e=>React.createElement("div",{className:"purdue-home-tabs__panel"+(e.attributes.editorSelected?" active":""),"aria-labelledby":`header-${e.attributes.aria}`,id:`panel-${e.attributes.aria}`},React.createElement(t.InnerBlocks.Content,null))}]];(0,e.registerBlockType)(l.UU,{save:e=>React.createElement("div",a({className:"purdue-home-tabs__panel"+(e.attributes.editorSelected?" active":""),"aria-labelledby":`header-${e.attributes.aria}`,id:`panel-${e.attributes.aria}`},e.attributes.anchorId?{"data-name":e.attributes.anchorId}:{}),React.createElement(t.InnerBlocks.Content,null)),edit:e=>{const a=(0,t.useBlockProps)(),l=e.attributes.anchorId;return[React.createElement(t.InspectorControls,{key:"1"},React.createElement(r.PanelBody,null,React.createElement(r.PanelRow,null,React.createElement(r.TextControl,{label:"HTML Anchor",help:"Enter a word without spaces to make a unique web address just for this block, called an “anchor.” It must be unique from any other anchors on the page. Then, you’ll be able to link directly to this section of your page.",value:l||"",onChange:t=>e.setAttributes({anchorId:t})})))),React.createElement("div",a,React.createElement("div",{className:"purdue-home-tabs__panel "+(e.attributes.editorSelected?" active":""),role:"tabpanel"},React.createElement(t.InnerBlocks,{template:n,templateLock:!1,templateInsertUpdatesSelection:!1})))]},deprecated:o})}();