From b2aa053469cde7acedddda2746dc12b32900d002 Mon Sep 17 00:00:00 2001 From: acketon Date: Tue, 22 Aug 2023 17:09:00 -0400 Subject: [PATCH 1/3] add deprecated file and version --- src/blocks/listicle/deprecated.js | 399 ++++++++++++++++++++++++++++++ src/blocks/listicle/listicle.js | 7 +- 2 files changed, 405 insertions(+), 1 deletion(-) create mode 100644 src/blocks/listicle/deprecated.js diff --git a/src/blocks/listicle/deprecated.js b/src/blocks/listicle/deprecated.js new file mode 100644 index 00000000..2e7bbf9b --- /dev/null +++ b/src/blocks/listicle/deprecated.js @@ -0,0 +1,399 @@ +/** + * BLOCK: editorial/listicle + * + * Register a listicle block with Gutenberg. + */ + +// External dependencies. +import classnames from 'classnames'; + +// Import CSS. +import './style.scss'; +import './editor.scss'; + +// Internal dependencies. +import Background, { BackgroundAttributes, BackgroundControls } from '../../components/background'; +import ShareTools, { ShareToolsAttributes, ShareToolsControls } from '../../components/share-tools'; +import getAllowedFormats from '../../global/allowed-formats'; +import blockIcons from '../../components/block-icons'; + +// WordPress dependencies. +const { + __, +} = wp.i18n; +const { + registerBlockType, +} = wp.blocks; +const { + PanelBody, + ToggleControl, +} = wp.components; +const { + InspectorControls, + RichText, + PlainText, +} = ( 'undefined' === typeof wp.blockEditor ) ? wp.editor : wp.blockEditor; +const { useEffect, useState } = wp.element; + +/** + * Returns the class list for the block based on the current settings. + * + * @param {string} className Default classes assigned to the block. + * @param {string} number Value of the number attribute. + * @param {string} aside Whether the block has aside content. + * @param {number} backgroundUrl The URL of the background media assigned to the block. + * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay. + */ +const getClasses = ( className, number, aside, backgroundUrl, backgroundAutoplay, divider ) => { + return ( + classnames( + className, + { + 'has-number': number, + 'has-sidebar': aside, + 'has-media': backgroundUrl, + 'has-video-as-loop': backgroundAutoplay, + 'has-no-bottom-divider' : !divider, + } + ) + ); +}; + +/** + * Determine if the related links list is empty. + * + * @param {string} related The value of the `related` attribute. + */ +const hasRelatedLinks = ( related ) => { + if ( 'undefined' === typeof related || '
  • ' === related || RichText.isEmpty( related ) ) { + return false; + } + + return true; +} + +const deprecated = [ + { + title: __( 'Listicle' ), + description: __( 'An individual item for an article that uses a list as its thematic structure.' ), + icon: blockIcons('listicle'), + category: 'bu-editorial', + attributes: { + hed: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-header-content-hed', + }, + dek: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-header-content-dek', + }, + content: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-section-content', + }, + aside: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-section-aside p', + }, + number: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-header-number', + }, + related: { + type: 'string', + source: 'html', + selector: '.wp-block-editorial-listicle-footer-list', + }, + credit: { + type: 'string', + source: 'html', + selector: '.wp-caption-text', + }, + className: { + type: 'string', + default: '', + }, + divider: { + type: 'boolean', + default: true, + }, + ...BackgroundAttributes, + ...ShareToolsAttributes, + }, + + edit( props ) { + // Get the block properties. + const { + attributes, + setAttributes, + className, + isSelected, + } = props; + + // Get the block attributes. + const { + hed, + dek, + content, + aside, + number, + related, + credit, + backgroundUrl, + backgroundAutoplay, + backgroundCaption, + divider, + } = attributes; + + const [ isUploading, setIsUploading ] = useState( false ); + + /** + * Update credit attribute with the caption of the selected image. + * + * @param {object} prevProps The property values before the change. + */ + useEffect( () => { + // Stop here if the `backgroundCaption` attribute hasn't changed. + if ( backgroundCaption === backgroundCaption ) { + return; + } + + // Stop here if the `credit` attribute is already set. + if ( !! credit || ! backgroundCaption ) { + return; + } + + // Update the `credit` attribute using the caption from the selected image. + setAttributes( { credit: backgroundCaption } ); + }, [] ); + + // Check if the block has aside content (extra condition due to use of multiline). + const hasAsideContent = ! RichText.isEmpty( aside ) && aside !== '
    '; + + /** + * Get a value to use for the inline width of the number input. + * + * Returns either 100% if the field is empty, or `{n}ch`, + * where `{n}` is the number of characters in the input. + * + */ + const getNumberInputWidth = ( number ) ? number.length + 'ch' : '100%'; + + // Return the block editing interface. + return ( +
    + + +
    +
    + + setAttributes( { credit: value } ) } + placeholder={ __( 'Add Photo or Video Credit…' ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'bold', 'italic', 'link' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/bold', 'core/italic', 'core/link' ] ) } + keepPlaceholderOnFocus + /> +
    +
    + { ( number || isSelected ) && ( +

    + setAttributes( { number } ) } + style={ { + width: getNumberInputWidth, + } } + /> + </h2> + ) } + <div className="wp-block-editorial-listicle-header-content"> + <RichText + tagName="h3" + className="wp-block-editorial-listicle-header-content-hed" + placeholder={ __( 'Add Title…' ) } + value={ hed } + onChange={ value => setAttributes( { hed: value } ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'bold', 'italic' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/bold', 'core/italic' ] ) } + /> + <RichText + tagName="h4" + className="wp-block-editorial-listicle-header-content-dek" + placeholder={ __( 'Add Subtitle…' ) } + value={ dek } + onChange={ value => setAttributes( { dek: value } ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'bold', 'italic' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/bold', 'core/italic' ] ) } + /> + </div> + </header> + <section className="wp-block-editorial-listicle-section"> + <RichText + tagName="div" + className="wp-block-editorial-listicle-section-content" + multiline="p" + placeholder={ __( 'Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.' ) } + value={ content } + onChange={ value => setAttributes( { content: value } ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'bold', 'italic', 'link' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/bold', 'core/italic', 'core/link' ] ) } + /> + <div className="wp-block-editorial-listicle-section-meta"> + { ( hasAsideContent || isSelected ) && ( + <aside className="wp-block-editorial-listicle-section-aside"> + <RichText + tagName="p" + placeholder={ __( 'Add Sidebar (Optional)…' ) } + value={ aside } + onChange={ value => setAttributes( { aside: value } ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'bold', 'italic', 'link' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/bold', 'core/italic', 'core/link' ] ) } + /> + </aside> + ) } + <ShareTools + blockProps={ props } + /> + </div> + </section> + { ( hasRelatedLinks( related ) || isSelected ) && ( + <footer className="wp-block-editorial-listicle-footer"> + <h3 className="wp-block-editorial-listicle-footer-title">Related Stories</h3> + <RichText + tagName="ul" + multiline="li" + className="wp-block-editorial-listicle-footer-list" + placeholder={ __( 'Enter Related Stories List…' ) } + value={ related } + onChange={ ( value ) => setAttributes( { related: value } ) } + formattingControls={ getAllowedFormats( 'formattingControls', [ 'link' ] ) } + allowedFormats={ getAllowedFormats( 'allowedFormats', [ 'core/link' ] ) } + /> + </footer> + ) } + </article> + <InspectorControls> + <PanelBody title={ __( 'Display Options' ) }> + <ToggleControl + label={ __( 'Show Bottom Divider' ) } + checked={ divider } + onChange={ () => setAttributes( { divider: ! divider } ) } + /> + </PanelBody> + </InspectorControls> + </section> + ); + }, + + save( props ) { + // Get the block properties we need. + const { + attributes, + } = props; + + // Get the block attributes. + const { + hed, + dek, + content, + aside, + number, + related, + credit, + backgroundUrl, + backgroundAutoplay, + className, + divider, + } = attributes; + + // Return the block rendering for the front end. + return ( + <section className={ getClasses( className, number, aside, backgroundUrl, backgroundAutoplay, divider ) }> + <article className="wp-block-editorial-listicle-article"> + <figure className="wp-block-editorial-listicle-figure"> + <Background + blockProps={ props } + /> + <RichText.Content + tagName="figcaption" + className="wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption" + value={ credit } + /> + </figure> + <header className="wp-block-editorial-listicle-header"> + { number && ( + <h2 className="wp-block-editorial-listicle-header-number">{ number }</h2> + ) } + <div className="wp-block-editorial-listicle-header-content"> + <RichText.Content + tagName="h3" + className="wp-block-editorial-listicle-header-content-hed" + value={ hed } + /> + <RichText.Content + tagName="h4" + className="wp-block-editorial-listicle-header-content-dek" + value={ dek } + /> + </div> + </header> + <section className="wp-block-editorial-listicle-section"> + <RichText.Content + tagName="div" + className="wp-block-editorial-listicle-section-content" + value={ content } + multiline="p" + /> + <div className="wp-block-editorial-listicle-section-meta"> + { ! RichText.isEmpty( aside ) && ( + <aside className="wp-block-editorial-listicle-section-aside"> + <RichText.Content + tagName="p" + value={ aside } + /> + </aside> + ) } + <ShareTools + blockProps={ props } + /> + </div> + </section> + { hasRelatedLinks( related ) && ( + <footer className="wp-block-editorial-listicle-footer"> + <h3 className="wp-block-editorial-listicle-footer-title">Related Stories</h3> + <RichText.Content + tagName="ul" + className="wp-block-editorial-listicle-footer-list" + value={ related } + multiline="li" + /> + </footer> + ) } + </article> + </section> + ); + }, +} +]; + +export default deprecated; diff --git a/src/blocks/listicle/listicle.js b/src/blocks/listicle/listicle.js index c69a6e70..c10d3825 100644 --- a/src/blocks/listicle/listicle.js +++ b/src/blocks/listicle/listicle.js @@ -17,6 +17,8 @@ import ShareTools, { ShareToolsAttributes, ShareToolsControls } from '../../comp import getAllowedFormats from '../../global/allowed-formats'; import blockIcons from '../../components/block-icons'; +import deprecated from './deprecated'; + // WordPress dependencies. const { __, @@ -393,4 +395,7 @@ registerBlockType( 'editorial/listicle', { </section> ); }, -} ); + + deprecated, + +}); From f2c33cd7a2e0d8ca51a6864a1542f88c76137d9b Mon Sep 17 00:00:00 2001 From: acketon <acketon@gmail.com> Date: Tue, 22 Aug 2023 17:09:05 -0400 Subject: [PATCH 2/3] build --- dist/blocks.build.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dist/blocks.build.js b/dist/blocks.build.js index e450e02f..52d4bb0e 100644 --- a/dist/blocks.build.js +++ b/dist/blocks.build.js @@ -706,7 +706,7 @@ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourc /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__(/*! ./style.scss */ 60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 61);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_background__ = __webpack_require__(/*! ../../components/background */ 4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_share_tools__ = __webpack_require__(/*! ../../components/share-tools */ 62);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__ = __webpack_require__(/*! ../../global/allowed-formats */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_block_icons__ = __webpack_require__(/*! ../../components/block-icons */ 1);\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\n/**\n * BLOCK: editorial/listicle\n *\n * Register a listicle block with Gutenberg.\n */\n\n// External dependencies.\n\n\n// Import CSS.\n\n\n\n// Internal dependencies.\n\n\n\n\n\n// WordPress dependencies.\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n ToggleControl = _wp$components.ToggleControl;\n\nvar _ref = 'undefined' === typeof wp.blockEditor ? wp.editor : wp.blockEditor,\n InspectorControls = _ref.InspectorControls,\n RichText = _ref.RichText,\n PlainText = _ref.PlainText;\n\nvar _wp$element = wp.element,\n useEffect = _wp$element.useEffect,\n useState = _wp$element.useState;\n\n/**\n * Returns the class list for the block based on the current settings.\n *\n * @param {string} className Default classes assigned to the block.\n * @param {string} number Value of the number attribute.\n * @param {string} aside Whether the block has aside content.\n * @param {number} backgroundUrl The URL of the background media assigned to the block.\n * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay.\n */\n\nvar getClasses = function getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) {\n\treturn __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, {\n\t\t'has-number': number,\n\t\t'has-sidebar': aside,\n\t\t'has-media': backgroundUrl,\n\t\t'has-video-as-loop': backgroundAutoplay,\n\t\t'has-no-bottom-divider': !divider\n\t});\n};\n\n/**\n * Determine if the related links list is empty.\n *\n * @param {string} related The value of the `related` attribute.\n */\nvar hasRelatedLinks = function hasRelatedLinks(related) {\n\tif ('undefined' === typeof related || '<li></li>' === related || RichText.isEmpty(related)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\n// Register the block.\nregisterBlockType('editorial/listicle', {\n\ttitle: __('Listicle'),\n\tdescription: __('An individual item for an article that uses a list as its thematic structure.'),\n\ticon: Object(__WEBPACK_IMPORTED_MODULE_6__components_block_icons__[\"a\" /* default */])('listicle'),\n\tcategory: 'bu-editorial',\n\tattributes: Object.assign({\n\t\thed: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-hed'\n\t\t},\n\t\tdek: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-dek'\n\t\t},\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-content'\n\t\t},\n\t\taside: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-aside p'\n\t\t},\n\t\tnumber: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-number'\n\t\t},\n\t\trelated: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-footer-list'\n\t\t},\n\t\tcredit: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-caption-text'\n\t\t},\n\t\tclassName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tdivider: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true\n\t\t}\n\t}, __WEBPACK_IMPORTED_MODULE_3__components_background__[\"a\" /* BackgroundAttributes */], __WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"a\" /* ShareToolsAttributes */]),\n\n\tedit: function edit(props) {\n\t\t// Get the block properties.\n\t\tvar attributes = props.attributes,\n\t\t setAttributes = props.setAttributes,\n\t\t className = props.className,\n\t\t isSelected = props.isSelected;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t backgroundCaption = attributes.backgroundCaption,\n\t\t divider = attributes.divider;\n\n\t\tvar _useState = useState(false),\n\t\t _useState2 = _slicedToArray(_useState, 2),\n\t\t isUploading = _useState2[0],\n\t\t setIsUploading = _useState2[1];\n\n\t\t/**\n * Update credit attribute with the caption of the selected image.\n *\n * @param {object} prevProps The property values before the change.\n */\n\n\n\t\tuseEffect(function () {\n\t\t\t// Stop here if the `backgroundCaption` attribute hasn't changed.\n\t\t\tif (backgroundCaption === backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Stop here if the `credit` attribute is already set.\n\t\t\tif (!!credit || !backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update the `credit` attribute using the caption from the selected image.\n\t\t\tsetAttributes({ credit: backgroundCaption });\n\t\t}, []);\n\n\t\t// Check if the block has aside content (extra condition due to use of multiline).\n\t\tvar hasAsideContent = !RichText.isEmpty(aside) && aside !== '<br>';\n\n\t\t/**\n * Get a value to use for the inline width of the number input.\n *\n * Returns either 100% if the field is empty, or `{n}ch`,\n * where `{n}` is the number of characters in the input.\n *\n */\n\t\tvar getNumberInputWidth = number ? number.length + 'ch' : '100%';\n\n\t\t// Return the block editing interface.\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, hasAsideContent, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"b\" /* BackgroundControls */], {\n\t\t\t\tblockProps: props,\n\t\t\t\tinlinePlaceholder: true,\n\t\t\t\tsetIsUploading: setIsUploading,\n\t\t\t\toptions: []\n\t\t\t}),\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"b\" /* ShareToolsControls */], {\n\t\t\t\tblockProps: props\n\t\t\t}),\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props,\n\t\t\t\t\t\tisUploading: isUploading\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ credit: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tplaceholder: __('Add Photo or Video Credit…'),\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link']),\n\t\t\t\t\t\tkeepPlaceholderOnFocus: true\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\t(number || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\twp.element.createElement(PlainText, {\n\t\t\t\t\t\t\tplaceholder: __('Add Item Number (Optional)…'),\n\t\t\t\t\t\t\tvalue: number,\n\t\t\t\t\t\t\tonChange: function onChange(number) {\n\t\t\t\t\t\t\t\treturn setAttributes({ number: number });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\twidth: getNumberInputWidth\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tplaceholder: __('Add Title…'),\n\t\t\t\t\t\t\tvalue: hed,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ hed: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tplaceholder: __('Add Subtitle…'),\n\t\t\t\t\t\t\tvalue: dek,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ dek: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tmultiline: 'p',\n\t\t\t\t\t\tplaceholder: __('Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.'),\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ content: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t(hasAsideContent || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tplaceholder: __('Add Sidebar (Optional)…'),\n\t\t\t\t\t\t\t\tvalue: aside,\n\t\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\t\treturn setAttributes({ aside: value });\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t(hasRelatedLinks(related) || isSelected) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tmultiline: 'li',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tplaceholder: __('Enter Related Stories List…'),\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ related: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/link'])\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t),\n\t\t\twp.element.createElement(\n\t\t\t\tInspectorControls,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelBody,\n\t\t\t\t\t{ title: __('Display Options') },\n\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\tlabel: __('Show Bottom Divider'),\n\t\t\t\t\t\tchecked: divider,\n\t\t\t\t\t\tonChange: function onChange() {\n\t\t\t\t\t\t\treturn setAttributes({ divider: !divider });\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\tsave: function save(props) {\n\t\t// Get the block properties we need.\n\t\tvar attributes = props.attributes;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t className = attributes.className,\n\t\t divider = attributes.divider;\n\n\t\t// Return the block rendering for the front end.\n\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\tnumber && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\tnumber\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tvalue: hed\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tvalue: dek\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tmultiline: 'p'\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t!RichText.isEmpty(aside) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tvalue: aside\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\thasRelatedLinks(related) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tmultiline: 'li'\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYmxvY2tzL2xpc3RpY2xlL2xpc3RpY2xlLmpzP2M5YmUiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9zbGljZWRUb0FycmF5ID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBzbGljZUl0ZXJhdG9yKGFyciwgaSkgeyB2YXIgX2FyciA9IFtdOyB2YXIgX24gPSB0cnVlOyB2YXIgX2QgPSBmYWxzZTsgdmFyIF9lID0gdW5kZWZpbmVkOyB0cnkgeyBmb3IgKHZhciBfaSA9IGFycltTeW1ib2wuaXRlcmF0b3JdKCksIF9zOyAhKF9uID0gKF9zID0gX2kubmV4dCgpKS5kb25lKTsgX24gPSB0cnVlKSB7IF9hcnIucHVzaChfcy52YWx1ZSk7IGlmIChpICYmIF9hcnIubGVuZ3RoID09PSBpKSBicmVhazsgfSB9IGNhdGNoIChlcnIpIHsgX2QgPSB0cnVlOyBfZSA9IGVycjsgfSBmaW5hbGx5IHsgdHJ5IHsgaWYgKCFfbiAmJiBfaVtcInJldHVyblwiXSkgX2lbXCJyZXR1cm5cIl0oKTsgfSBmaW5hbG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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///59\n"); +eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__(/*! ./style.scss */ 60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 61);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_background__ = __webpack_require__(/*! ../../components/background */ 4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_share_tools__ = __webpack_require__(/*! ../../components/share-tools */ 62);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__ = __webpack_require__(/*! ../../global/allowed-formats */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_block_icons__ = __webpack_require__(/*! ../../components/block-icons */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__deprecated__ = __webpack_require__(/*! ./deprecated */ 83);\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\n/**\n * BLOCK: editorial/listicle\n *\n * Register a listicle block with Gutenberg.\n */\n\n// External dependencies.\n\n\n// Import CSS.\n\n\n\n// Internal dependencies.\n\n\n\n\n\n\n\n// WordPress dependencies.\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n ToggleControl = _wp$components.ToggleControl;\n\nvar _ref = 'undefined' === typeof wp.blockEditor ? wp.editor : wp.blockEditor,\n InspectorControls = _ref.InspectorControls,\n RichText = _ref.RichText,\n PlainText = _ref.PlainText;\n\nvar _wp$element = wp.element,\n useEffect = _wp$element.useEffect,\n useState = _wp$element.useState;\n\n/**\n * Returns the class list for the block based on the current settings.\n *\n * @param {string} className Default classes assigned to the block.\n * @param {string} number Value of the number attribute.\n * @param {string} aside Whether the block has aside content.\n * @param {number} backgroundUrl The URL of the background media assigned to the block.\n * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay.\n */\n\nvar getClasses = function getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) {\n\treturn __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, {\n\t\t'has-number': number,\n\t\t'has-sidebar': aside,\n\t\t'has-media': backgroundUrl,\n\t\t'has-video-as-loop': backgroundAutoplay,\n\t\t'has-no-bottom-divider': !divider\n\t});\n};\n\n/**\n * Determine if the related links list is empty.\n *\n * @param {string} related The value of the `related` attribute.\n */\nvar hasRelatedLinks = function hasRelatedLinks(related) {\n\tif ('undefined' === typeof related || '<li></li>' === related || RichText.isEmpty(related)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\n// Register the block.\nregisterBlockType('editorial/listicle', {\n\ttitle: __('Listicle'),\n\tdescription: __('An individual item for an article that uses a list as its thematic structure.'),\n\ticon: Object(__WEBPACK_IMPORTED_MODULE_6__components_block_icons__[\"a\" /* default */])('listicle'),\n\tcategory: 'bu-editorial',\n\tattributes: Object.assign({\n\t\thed: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-hed'\n\t\t},\n\t\tdek: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-dek'\n\t\t},\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-content'\n\t\t},\n\t\taside: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-aside p'\n\t\t},\n\t\tnumber: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-number'\n\t\t},\n\t\trelated: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-footer-list'\n\t\t},\n\t\tcredit: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-caption-text'\n\t\t},\n\t\tclassName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tdivider: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true\n\t\t}\n\t}, __WEBPACK_IMPORTED_MODULE_3__components_background__[\"a\" /* BackgroundAttributes */], __WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"a\" /* ShareToolsAttributes */]),\n\n\tedit: function edit(props) {\n\t\t// Get the block properties.\n\t\tvar attributes = props.attributes,\n\t\t setAttributes = props.setAttributes,\n\t\t className = props.className,\n\t\t isSelected = props.isSelected;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t backgroundCaption = attributes.backgroundCaption,\n\t\t divider = attributes.divider;\n\n\t\tvar _useState = useState(false),\n\t\t _useState2 = _slicedToArray(_useState, 2),\n\t\t isUploading = _useState2[0],\n\t\t setIsUploading = _useState2[1];\n\n\t\t/**\n * Update credit attribute with the caption of the selected image.\n *\n * @param {object} prevProps The property values before the change.\n */\n\n\n\t\tuseEffect(function () {\n\t\t\t// Stop here if the `backgroundCaption` attribute hasn't changed.\n\t\t\tif (backgroundCaption === backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Stop here if the `credit` attribute is already set.\n\t\t\tif (!!credit || !backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update the `credit` attribute using the caption from the selected image.\n\t\t\tsetAttributes({ credit: backgroundCaption });\n\t\t}, []);\n\n\t\t// Check if the block has aside content (extra condition due to use of multiline).\n\t\tvar hasAsideContent = !RichText.isEmpty(aside) && aside !== '<br>';\n\n\t\t/**\n * Get a value to use for the inline width of the number input.\n *\n * Returns either 100% if the field is empty, or `{n}ch`,\n * where `{n}` is the number of characters in the input.\n *\n */\n\t\tvar getNumberInputWidth = number ? number.length + 'ch' : '100%';\n\n\t\t// Return the block editing interface.\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, hasAsideContent, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"b\" /* BackgroundControls */], {\n\t\t\t\tblockProps: props,\n\t\t\t\tinlinePlaceholder: true,\n\t\t\t\tsetIsUploading: setIsUploading,\n\t\t\t\toptions: []\n\t\t\t}),\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"b\" /* ShareToolsControls */], {\n\t\t\t\tblockProps: props\n\t\t\t}),\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props,\n\t\t\t\t\t\tisUploading: isUploading\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ credit: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tplaceholder: __('Add Photo or Video Credit…'),\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link']),\n\t\t\t\t\t\tkeepPlaceholderOnFocus: true\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\t(number || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\twp.element.createElement(PlainText, {\n\t\t\t\t\t\t\tplaceholder: __('Add Item Number (Optional)…'),\n\t\t\t\t\t\t\tvalue: number,\n\t\t\t\t\t\t\tonChange: function onChange(number) {\n\t\t\t\t\t\t\t\treturn setAttributes({ number: number });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\twidth: getNumberInputWidth\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tplaceholder: __('Add Title…'),\n\t\t\t\t\t\t\tvalue: hed,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ hed: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tplaceholder: __('Add Subtitle…'),\n\t\t\t\t\t\t\tvalue: dek,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ dek: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tmultiline: 'p',\n\t\t\t\t\t\tplaceholder: __('Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.'),\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ content: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t(hasAsideContent || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tplaceholder: __('Add Sidebar (Optional)…'),\n\t\t\t\t\t\t\t\tvalue: aside,\n\t\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\t\treturn setAttributes({ aside: value });\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t(hasRelatedLinks(related) || isSelected) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tmultiline: 'li',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tplaceholder: __('Enter Related Stories List…'),\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ related: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/link'])\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t),\n\t\t\twp.element.createElement(\n\t\t\t\tInspectorControls,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelBody,\n\t\t\t\t\t{ title: __('Display Options') },\n\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\tlabel: __('Show Bottom Divider'),\n\t\t\t\t\t\tchecked: divider,\n\t\t\t\t\t\tonChange: function onChange() {\n\t\t\t\t\t\t\treturn setAttributes({ divider: !divider });\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\tsave: function save(props) {\n\t\t// Get the block properties we need.\n\t\tvar attributes = props.attributes;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t className = attributes.className,\n\t\t divider = attributes.divider;\n\n\t\t// Return the block rendering for the front end.\n\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\tnumber && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\tnumber\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tvalue: hed\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tvalue: dek\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tmultiline: 'p'\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t!RichText.isEmpty(aside) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tvalue: aside\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\thasRelatedLinks(related) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tmultiline: 'li'\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\n\n\tdeprecated: __WEBPACK_IMPORTED_MODULE_7__deprecated__[\"a\" /* default */]\n\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYmxvY2tzL2xpc3RpY2xlL2xpc3RpY2xlLmpzP2M5YmUiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9zbGljZWRUb0FycmF5ID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBzbGljZUl0ZXJhdG9yKGFyciwgaSkgeyB2YXIgX2FyciA9IFtdOyB2YXIgX24gPSB0cnVlOyB2YXIgX2QgPSBmYWxzZTsgdmFyIF9lID0gdW5kZWZpbmVkOyB0cnkgeyBmb3IgKHZhciBfaSA9IGFycltTeW1ib2wuaXRlcmF0b3JdKCksIF9zOyAhKF9uID0gKF9zID0gX2kubmV4dCgpKS5kb25lKTsgX24gPSB0cnVlKSB7IF9hcnIucHVzaChfcy52YWx1ZS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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///59\n"); /***/ }), /* 60 */ @@ -950,5 +950,17 @@ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourc eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvY29tcG9uZW50cy9wYXJhZ3JhcGgtZW5kLW9mLWFydGljbGUtc3R5bGUvZWRpdG9yLnNjc3M/OGYzNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvcGFyYWdyYXBoLWVuZC1vZi1hcnRpY2xlLXN0eWxlL2VkaXRvci5zY3NzXG4vLyBtb2R1bGUgaWQgPSA4MlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///82\n"); +/***/ }), +/* 83 */ +/*!*******************************************!*\ + !*** ./src/blocks/listicle/deprecated.js ***! + \*******************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__(/*! ./style.scss */ 60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 61);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_background__ = __webpack_require__(/*! ../../components/background */ 4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_share_tools__ = __webpack_require__(/*! ../../components/share-tools */ 62);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__ = __webpack_require__(/*! ../../global/allowed-formats */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_block_icons__ = __webpack_require__(/*! ../../components/block-icons */ 1);\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\n/**\n * BLOCK: editorial/listicle\n *\n * Register a listicle block with Gutenberg.\n */\n\n// External dependencies.\n\n\n// Import CSS.\n\n\n\n// Internal dependencies.\n\n\n\n\n\n// WordPress dependencies.\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n ToggleControl = _wp$components.ToggleControl;\n\nvar _ref = 'undefined' === typeof wp.blockEditor ? wp.editor : wp.blockEditor,\n InspectorControls = _ref.InspectorControls,\n RichText = _ref.RichText,\n PlainText = _ref.PlainText;\n\nvar _wp$element = wp.element,\n useEffect = _wp$element.useEffect,\n useState = _wp$element.useState;\n\n/**\n * Returns the class list for the block based on the current settings.\n *\n * @param {string} className Default classes assigned to the block.\n * @param {string} number Value of the number attribute.\n * @param {string} aside Whether the block has aside content.\n * @param {number} backgroundUrl The URL of the background media assigned to the block.\n * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay.\n */\n\nvar getClasses = function getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) {\n\treturn __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, {\n\t\t'has-number': number,\n\t\t'has-sidebar': aside,\n\t\t'has-media': backgroundUrl,\n\t\t'has-video-as-loop': backgroundAutoplay,\n\t\t'has-no-bottom-divider': !divider\n\t});\n};\n\n/**\n * Determine if the related links list is empty.\n *\n * @param {string} related The value of the `related` attribute.\n */\nvar hasRelatedLinks = function hasRelatedLinks(related) {\n\tif ('undefined' === typeof related || '<li></li>' === related || RichText.isEmpty(related)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\nvar deprecated = [{\n\ttitle: __('Listicle'),\n\tdescription: __('An individual item for an article that uses a list as its thematic structure.'),\n\ticon: Object(__WEBPACK_IMPORTED_MODULE_6__components_block_icons__[\"a\" /* default */])('listicle'),\n\tcategory: 'bu-editorial',\n\tattributes: Object.assign({\n\t\thed: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-hed'\n\t\t},\n\t\tdek: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-dek'\n\t\t},\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-content'\n\t\t},\n\t\taside: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-aside p'\n\t\t},\n\t\tnumber: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-number'\n\t\t},\n\t\trelated: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-footer-list'\n\t\t},\n\t\tcredit: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-caption-text'\n\t\t},\n\t\tclassName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tdivider: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true\n\t\t}\n\t}, __WEBPACK_IMPORTED_MODULE_3__components_background__[\"a\" /* BackgroundAttributes */], __WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"a\" /* ShareToolsAttributes */]),\n\n\tedit: function edit(props) {\n\t\t// Get the block properties.\n\t\tvar attributes = props.attributes,\n\t\t setAttributes = props.setAttributes,\n\t\t className = props.className,\n\t\t isSelected = props.isSelected;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t backgroundCaption = attributes.backgroundCaption,\n\t\t divider = attributes.divider;\n\n\t\tvar _useState = useState(false),\n\t\t _useState2 = _slicedToArray(_useState, 2),\n\t\t isUploading = _useState2[0],\n\t\t setIsUploading = _useState2[1];\n\n\t\t/**\n * Update credit attribute with the caption of the selected image.\n *\n * @param {object} prevProps The property values before the change.\n */\n\n\n\t\tuseEffect(function () {\n\t\t\t// Stop here if the `backgroundCaption` attribute hasn't changed.\n\t\t\tif (backgroundCaption === backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Stop here if the `credit` attribute is already set.\n\t\t\tif (!!credit || !backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update the `credit` attribute using the caption from the selected image.\n\t\t\tsetAttributes({ credit: backgroundCaption });\n\t\t}, []);\n\n\t\t// Check if the block has aside content (extra condition due to use of multiline).\n\t\tvar hasAsideContent = !RichText.isEmpty(aside) && aside !== '<br>';\n\n\t\t/**\n * Get a value to use for the inline width of the number input.\n *\n * Returns either 100% if the field is empty, or `{n}ch`,\n * where `{n}` is the number of characters in the input.\n *\n */\n\t\tvar getNumberInputWidth = number ? number.length + 'ch' : '100%';\n\n\t\t// Return the block editing interface.\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, hasAsideContent, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"b\" /* BackgroundControls */], {\n\t\t\t\tblockProps: props,\n\t\t\t\tinlinePlaceholder: true,\n\t\t\t\tsetIsUploading: setIsUploading,\n\t\t\t\toptions: []\n\t\t\t}),\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"b\" /* ShareToolsControls */], {\n\t\t\t\tblockProps: props\n\t\t\t}),\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props,\n\t\t\t\t\t\tisUploading: isUploading\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ credit: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tplaceholder: __('Add Photo or Video Credit…'),\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link']),\n\t\t\t\t\t\tkeepPlaceholderOnFocus: true\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\t(number || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\twp.element.createElement(PlainText, {\n\t\t\t\t\t\t\tplaceholder: __('Add Item Number (Optional)…'),\n\t\t\t\t\t\t\tvalue: number,\n\t\t\t\t\t\t\tonChange: function onChange(number) {\n\t\t\t\t\t\t\t\treturn setAttributes({ number: number });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\twidth: getNumberInputWidth\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tplaceholder: __('Add Title…'),\n\t\t\t\t\t\t\tvalue: hed,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ hed: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tplaceholder: __('Add Subtitle…'),\n\t\t\t\t\t\t\tvalue: dek,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ dek: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tmultiline: 'p',\n\t\t\t\t\t\tplaceholder: __('Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.'),\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ content: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t(hasAsideContent || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tplaceholder: __('Add Sidebar (Optional)…'),\n\t\t\t\t\t\t\t\tvalue: aside,\n\t\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\t\treturn setAttributes({ aside: value });\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t(hasRelatedLinks(related) || isSelected) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tmultiline: 'li',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tplaceholder: __('Enter Related Stories List…'),\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ related: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/link'])\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t),\n\t\t\twp.element.createElement(\n\t\t\t\tInspectorControls,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelBody,\n\t\t\t\t\t{ title: __('Display Options') },\n\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\tlabel: __('Show Bottom Divider'),\n\t\t\t\t\t\tchecked: divider,\n\t\t\t\t\t\tonChange: function onChange() {\n\t\t\t\t\t\t\treturn setAttributes({ divider: !divider });\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\tsave: function save(props) {\n\t\t// Get the block properties we need.\n\t\tvar attributes = props.attributes;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t className = attributes.className,\n\t\t divider = attributes.divider;\n\n\t\t// Return the block rendering for the front end.\n\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\tnumber && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\tnumber\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tvalue: hed\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tvalue: dek\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tmultiline: 'p'\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t!RichText.isEmpty(aside) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tvalue: aside\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\thasRelatedLinks(related) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tmultiline: 'li'\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}\n}];\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (deprecated);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYmxvY2tzL2xpc3RpY2xlL2RlcHJlY2F0ZWQuanM/NmNhMiJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgX3NsaWNlZFRvQXJyYXkgPSBmdW5jdGlvbiAoKSB7IGZ1bmN0aW9uIHNsaWNlSXRlcmF0b3IoYXJyLCBpKSB7IHZhciBfYXJyID0gW107IHZhciBfbiA9IHRydWU7IHZhciBfZCA9IGZhbHNlOyB2YXIgX2UgPSB1bmRlZmluZWQ7IHRyeSB7IGZvciAodmFyIF9pID0gYXJyW1N5bWJvbC5pdGVyYXRvcl0oKSwgX3M7ICEoX24gPSAoX3MgPSBfaS5uZXh0KCkpLmRvbmUpOyBfbiA9IHRydWUpIHsgX2Fyci5wdXNoKF9zLnZhbHVlKTsgaWYgKGkgJiYgX2Fyci5sZW5ndGggPT09IGkpIGJyZW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BQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///83\n"); + /***/ }) /******/ ]); \ No newline at end of file From 972089b0723493b18a786463c77f1c3b4b0a31ad Mon Sep 17 00:00:00 2001 From: acketon <acketon@gmail.com> Date: Wed, 23 Aug 2023 11:34:09 -0400 Subject: [PATCH 3/3] only output markup if there is content for that. Eliminates empty Heading tags causing accessiblity issues --- dist/blocks.build.js | 2 +- src/blocks/listicle/listicle.js | 62 +++++++++++++++++++-------------- 2 files changed, 37 insertions(+), 27 deletions(-) diff --git a/dist/blocks.build.js b/dist/blocks.build.js index 52d4bb0e..82e6bf34 100644 --- a/dist/blocks.build.js +++ b/dist/blocks.build.js @@ -706,7 +706,7 @@ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourc /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__(/*! ./style.scss */ 60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 61);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_background__ = __webpack_require__(/*! ../../components/background */ 4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_share_tools__ = __webpack_require__(/*! ../../components/share-tools */ 62);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__ = __webpack_require__(/*! ../../global/allowed-formats */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_block_icons__ = __webpack_require__(/*! ../../components/block-icons */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__deprecated__ = __webpack_require__(/*! ./deprecated */ 83);\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\n/**\n * BLOCK: editorial/listicle\n *\n * Register a listicle block with Gutenberg.\n */\n\n// External dependencies.\n\n\n// Import CSS.\n\n\n\n// Internal dependencies.\n\n\n\n\n\n\n\n// WordPress dependencies.\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n ToggleControl = _wp$components.ToggleControl;\n\nvar _ref = 'undefined' === typeof wp.blockEditor ? wp.editor : wp.blockEditor,\n InspectorControls = _ref.InspectorControls,\n RichText = _ref.RichText,\n PlainText = _ref.PlainText;\n\nvar _wp$element = wp.element,\n useEffect = _wp$element.useEffect,\n useState = _wp$element.useState;\n\n/**\n * Returns the class list for the block based on the current settings.\n *\n * @param {string} className Default classes assigned to the block.\n * @param {string} number Value of the number attribute.\n * @param {string} aside Whether the block has aside content.\n * @param {number} backgroundUrl The URL of the background media assigned to the block.\n * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay.\n */\n\nvar getClasses = function getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) {\n\treturn __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, {\n\t\t'has-number': number,\n\t\t'has-sidebar': aside,\n\t\t'has-media': backgroundUrl,\n\t\t'has-video-as-loop': backgroundAutoplay,\n\t\t'has-no-bottom-divider': !divider\n\t});\n};\n\n/**\n * Determine if the related links list is empty.\n *\n * @param {string} related The value of the `related` attribute.\n */\nvar hasRelatedLinks = function hasRelatedLinks(related) {\n\tif ('undefined' === typeof related || '<li></li>' === related || RichText.isEmpty(related)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\n// Register the block.\nregisterBlockType('editorial/listicle', {\n\ttitle: __('Listicle'),\n\tdescription: __('An individual item for an article that uses a list as its thematic structure.'),\n\ticon: Object(__WEBPACK_IMPORTED_MODULE_6__components_block_icons__[\"a\" /* default */])('listicle'),\n\tcategory: 'bu-editorial',\n\tattributes: Object.assign({\n\t\thed: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-hed'\n\t\t},\n\t\tdek: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-dek'\n\t\t},\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-content'\n\t\t},\n\t\taside: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-aside p'\n\t\t},\n\t\tnumber: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-number'\n\t\t},\n\t\trelated: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-footer-list'\n\t\t},\n\t\tcredit: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-caption-text'\n\t\t},\n\t\tclassName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tdivider: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true\n\t\t}\n\t}, __WEBPACK_IMPORTED_MODULE_3__components_background__[\"a\" /* BackgroundAttributes */], __WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"a\" /* ShareToolsAttributes */]),\n\n\tedit: function edit(props) {\n\t\t// Get the block properties.\n\t\tvar attributes = props.attributes,\n\t\t setAttributes = props.setAttributes,\n\t\t className = props.className,\n\t\t isSelected = props.isSelected;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t backgroundCaption = attributes.backgroundCaption,\n\t\t divider = attributes.divider;\n\n\t\tvar _useState = useState(false),\n\t\t _useState2 = _slicedToArray(_useState, 2),\n\t\t isUploading = _useState2[0],\n\t\t setIsUploading = _useState2[1];\n\n\t\t/**\n * Update credit attribute with the caption of the selected image.\n *\n * @param {object} prevProps The property values before the change.\n */\n\n\n\t\tuseEffect(function () {\n\t\t\t// Stop here if the `backgroundCaption` attribute hasn't changed.\n\t\t\tif (backgroundCaption === backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Stop here if the `credit` attribute is already set.\n\t\t\tif (!!credit || !backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update the `credit` attribute using the caption from the selected image.\n\t\t\tsetAttributes({ credit: backgroundCaption });\n\t\t}, []);\n\n\t\t// Check if the block has aside content (extra condition due to use of multiline).\n\t\tvar hasAsideContent = !RichText.isEmpty(aside) && aside !== '<br>';\n\n\t\t/**\n * Get a value to use for the inline width of the number input.\n *\n * Returns either 100% if the field is empty, or `{n}ch`,\n * where `{n}` is the number of characters in the input.\n *\n */\n\t\tvar getNumberInputWidth = number ? number.length + 'ch' : '100%';\n\n\t\t// Return the block editing interface.\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, hasAsideContent, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"b\" /* BackgroundControls */], {\n\t\t\t\tblockProps: props,\n\t\t\t\tinlinePlaceholder: true,\n\t\t\t\tsetIsUploading: setIsUploading,\n\t\t\t\toptions: []\n\t\t\t}),\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"b\" /* ShareToolsControls */], {\n\t\t\t\tblockProps: props\n\t\t\t}),\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props,\n\t\t\t\t\t\tisUploading: isUploading\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ credit: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tplaceholder: __('Add Photo or Video Credit…'),\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link']),\n\t\t\t\t\t\tkeepPlaceholderOnFocus: true\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\t(number || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\twp.element.createElement(PlainText, {\n\t\t\t\t\t\t\tplaceholder: __('Add Item Number (Optional)…'),\n\t\t\t\t\t\t\tvalue: number,\n\t\t\t\t\t\t\tonChange: function onChange(number) {\n\t\t\t\t\t\t\t\treturn setAttributes({ number: number });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\twidth: getNumberInputWidth\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tplaceholder: __('Add Title…'),\n\t\t\t\t\t\t\tvalue: hed,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ hed: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tplaceholder: __('Add Subtitle…'),\n\t\t\t\t\t\t\tvalue: dek,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ dek: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tmultiline: 'p',\n\t\t\t\t\t\tplaceholder: __('Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.'),\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ content: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t(hasAsideContent || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tplaceholder: __('Add Sidebar (Optional)…'),\n\t\t\t\t\t\t\t\tvalue: aside,\n\t\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\t\treturn setAttributes({ aside: value });\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t(hasRelatedLinks(related) || isSelected) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tmultiline: 'li',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tplaceholder: __('Enter Related Stories List…'),\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ related: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/link'])\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t),\n\t\t\twp.element.createElement(\n\t\t\t\tInspectorControls,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelBody,\n\t\t\t\t\t{ title: __('Display Options') },\n\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\tlabel: __('Show Bottom Divider'),\n\t\t\t\t\t\tchecked: divider,\n\t\t\t\t\t\tonChange: function onChange() {\n\t\t\t\t\t\t\treturn setAttributes({ divider: !divider });\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\tsave: function save(props) {\n\t\t// Get the block properties we need.\n\t\tvar attributes = props.attributes;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t className = attributes.className,\n\t\t divider = attributes.divider;\n\n\t\t// Return the block rendering for the front end.\n\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\tnumber && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\tnumber\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tvalue: hed\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tvalue: dek\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tmultiline: 'p'\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t!RichText.isEmpty(aside) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tvalue: aside\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\thasRelatedLinks(related) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tmultiline: 'li'\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\n\n\tdeprecated: __WEBPACK_IMPORTED_MODULE_7__deprecated__[\"a\" /* default */]\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IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__(/*! ./style.scss */ 60);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 61);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_background__ = __webpack_require__(/*! ../../components/background */ 4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_share_tools__ = __webpack_require__(/*! ../../components/share-tools */ 62);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__ = __webpack_require__(/*! ../../global/allowed-formats */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_block_icons__ = __webpack_require__(/*! ../../components/block-icons */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__deprecated__ = __webpack_require__(/*! ./deprecated */ 83);\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\n/**\n * BLOCK: editorial/listicle\n *\n * Register a listicle block with Gutenberg.\n */\n\n// External dependencies.\n\n\n// Import CSS.\n\n\n\n// Internal dependencies.\n\n\n\n\n\n\n\n// WordPress dependencies.\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n ToggleControl = _wp$components.ToggleControl;\n\nvar _ref = 'undefined' === typeof wp.blockEditor ? wp.editor : wp.blockEditor,\n InspectorControls = _ref.InspectorControls,\n RichText = _ref.RichText,\n PlainText = _ref.PlainText;\n\nvar _wp$element = wp.element,\n useEffect = _wp$element.useEffect,\n useState = _wp$element.useState;\n\n/**\n * Returns the class list for the block based on the current settings.\n *\n * @param {string} className Default classes assigned to the block.\n * @param {string} number Value of the number attribute.\n * @param {string} aside Whether the block has aside content.\n * @param {number} backgroundUrl The URL of the background media assigned to the block.\n * @param {boolean} backgroundAutoplay Whether the background video is set to autoplay.\n */\n\nvar getClasses = function getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) {\n\treturn __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, {\n\t\t'has-number': number,\n\t\t'has-sidebar': aside,\n\t\t'has-media': backgroundUrl,\n\t\t'has-video-as-loop': backgroundAutoplay,\n\t\t'has-no-bottom-divider': !divider\n\t});\n};\n\n/**\n * Determine if the related links list is empty.\n *\n * @param {string} related The value of the `related` attribute.\n */\nvar hasRelatedLinks = function hasRelatedLinks(related) {\n\tif ('undefined' === typeof related || '<li></li>' === related || RichText.isEmpty(related)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\n// Register the block.\nregisterBlockType('editorial/listicle', {\n\ttitle: __('Listicle'),\n\tdescription: __('An individual item for an article that uses a list as its thematic structure.'),\n\ticon: Object(__WEBPACK_IMPORTED_MODULE_6__components_block_icons__[\"a\" /* default */])('listicle'),\n\tcategory: 'bu-editorial',\n\tattributes: Object.assign({\n\t\thed: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-hed'\n\t\t},\n\t\tdek: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-content-dek'\n\t\t},\n\t\tcontent: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-content'\n\t\t},\n\t\taside: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-section-aside p'\n\t\t},\n\t\tnumber: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-header-number'\n\t\t},\n\t\trelated: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-block-editorial-listicle-footer-list'\n\t\t},\n\t\tcredit: {\n\t\t\ttype: 'string',\n\t\t\tsource: 'html',\n\t\t\tselector: '.wp-caption-text'\n\t\t},\n\t\tclassName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tdivider: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: true\n\t\t}\n\t}, __WEBPACK_IMPORTED_MODULE_3__components_background__[\"a\" /* BackgroundAttributes */], __WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"a\" /* ShareToolsAttributes */]),\n\n\tedit: function edit(props) {\n\t\t// Get the block properties.\n\t\tvar attributes = props.attributes,\n\t\t setAttributes = props.setAttributes,\n\t\t className = props.className,\n\t\t isSelected = props.isSelected;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t backgroundCaption = attributes.backgroundCaption,\n\t\t divider = attributes.divider;\n\n\t\tvar _useState = useState(false),\n\t\t _useState2 = _slicedToArray(_useState, 2),\n\t\t isUploading = _useState2[0],\n\t\t setIsUploading = _useState2[1];\n\n\t\t/**\n * Update credit attribute with the caption of the selected image.\n *\n * @param {object} prevProps The property values before the change.\n */\n\n\n\t\tuseEffect(function () {\n\t\t\t// Stop here if the `backgroundCaption` attribute hasn't changed.\n\t\t\tif (backgroundCaption === backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Stop here if the `credit` attribute is already set.\n\t\t\tif (!!credit || !backgroundCaption) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update the `credit` attribute using the caption from the selected image.\n\t\t\tsetAttributes({ credit: backgroundCaption });\n\t\t}, []);\n\n\t\t// Check if the block has aside content (extra condition due to use of multiline).\n\t\tvar hasAsideContent = !RichText.isEmpty(aside) && aside !== '<br>';\n\n\t\t/**\n * Get a value to use for the inline width of the number input.\n *\n * Returns either 100% if the field is empty, or `{n}ch`,\n * where `{n}` is the number of characters in the input.\n *\n */\n\t\tvar getNumberInputWidth = number ? number.length + 'ch' : '100%';\n\n\t\t// Return the block editing interface.\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, hasAsideContent, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"b\" /* BackgroundControls */], {\n\t\t\t\tblockProps: props,\n\t\t\t\tinlinePlaceholder: true,\n\t\t\t\tsetIsUploading: setIsUploading,\n\t\t\t\toptions: []\n\t\t\t}),\n\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"b\" /* ShareToolsControls */], {\n\t\t\t\tblockProps: props\n\t\t\t}),\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props,\n\t\t\t\t\t\tisUploading: isUploading\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ credit: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tplaceholder: __('Add Photo or Video Credit…'),\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link']),\n\t\t\t\t\t\tkeepPlaceholderOnFocus: true\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\t(number || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\twp.element.createElement(PlainText, {\n\t\t\t\t\t\t\tplaceholder: __('Add Item Number (Optional)…'),\n\t\t\t\t\t\t\tvalue: number,\n\t\t\t\t\t\t\tonChange: function onChange(number) {\n\t\t\t\t\t\t\t\treturn setAttributes({ number: number });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\twidth: getNumberInputWidth\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tplaceholder: __('Add Title…'),\n\t\t\t\t\t\t\tvalue: hed,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ hed: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tplaceholder: __('Add Subtitle…'),\n\t\t\t\t\t\t\tvalue: dek,\n\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\treturn setAttributes({ dek: value });\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic']),\n\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic'])\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tmultiline: 'p',\n\t\t\t\t\t\tplaceholder: __('Add Content… lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer in dictum felis. Nullam gravida dui nunc, vitae tristique ex pellentesque at. Suspendisse id porttitor metus. Nullam et ipsum hendrerit urna mattis porttitor at in leo.'),\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ content: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t(hasAsideContent || isSelected) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tplaceholder: __('Add Sidebar (Optional)…'),\n\t\t\t\t\t\t\t\tvalue: aside,\n\t\t\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\t\t\treturn setAttributes({ aside: value });\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['bold', 'italic', 'link']),\n\t\t\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/bold', 'core/italic', 'core/link'])\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t(hasRelatedLinks(related) || isSelected) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tmultiline: 'li',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tplaceholder: __('Enter Related Stories List…'),\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tonChange: function onChange(value) {\n\t\t\t\t\t\t\treturn setAttributes({ related: value });\n\t\t\t\t\t\t},\n\t\t\t\t\t\tformattingControls: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('formattingControls', ['link']),\n\t\t\t\t\t\tallowedFormats: Object(__WEBPACK_IMPORTED_MODULE_5__global_allowed_formats__[\"a\" /* default */])('allowedFormats', ['core/link'])\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t),\n\t\t\twp.element.createElement(\n\t\t\t\tInspectorControls,\n\t\t\t\tnull,\n\t\t\t\twp.element.createElement(\n\t\t\t\t\tPanelBody,\n\t\t\t\t\t{ title: __('Display Options') },\n\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\tlabel: __('Show Bottom Divider'),\n\t\t\t\t\t\tchecked: divider,\n\t\t\t\t\t\tonChange: function onChange() {\n\t\t\t\t\t\t\treturn setAttributes({ divider: !divider });\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\tsave: function save(props) {\n\t\t// Get the block properties we need.\n\t\tvar attributes = props.attributes;\n\n\t\t// Get the block attributes.\n\n\t\tvar hed = attributes.hed,\n\t\t dek = attributes.dek,\n\t\t content = attributes.content,\n\t\t aside = attributes.aside,\n\t\t number = attributes.number,\n\t\t related = attributes.related,\n\t\t credit = attributes.credit,\n\t\t backgroundUrl = attributes.backgroundUrl,\n\t\t backgroundAutoplay = attributes.backgroundAutoplay,\n\t\t className = attributes.className,\n\t\t divider = attributes.divider;\n\n\t\t// Return the block rendering for the front end.\n\n\t\treturn wp.element.createElement(\n\t\t\t'section',\n\t\t\t{ className: getClasses(className, number, aside, backgroundUrl, backgroundAutoplay, divider) },\n\t\t\twp.element.createElement(\n\t\t\t\t'article',\n\t\t\t\t{ className: 'wp-block-editorial-listicle-article' },\n\t\t\t\t(backgroundUrl || credit) && wp.element.createElement(\n\t\t\t\t\t'figure',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-figure' },\n\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_background__[\"c\" /* default */], {\n\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t}),\n\t\t\t\t\tcredit && wp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'figcaption',\n\t\t\t\t\t\tclassName: 'wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption',\n\t\t\t\t\t\tvalue: credit\n\t\t\t\t\t})\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'header',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header' },\n\t\t\t\t\tnumber && wp.element.createElement(\n\t\t\t\t\t\t'h2',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-number' },\n\t\t\t\t\t\tnumber\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-header-content' },\n\t\t\t\t\t\thed && wp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h3',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-hed',\n\t\t\t\t\t\t\tvalue: hed\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tdek && wp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\ttagName: 'h4',\n\t\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-header-content-dek',\n\t\t\t\t\t\t\tvalue: dek\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp.element.createElement(\n\t\t\t\t\t'section',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section' },\n\t\t\t\t\t!RichText.isEmpty(content) && wp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'div',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-section-content',\n\t\t\t\t\t\tvalue: content,\n\t\t\t\t\t\tmultiline: 'p'\n\t\t\t\t\t}),\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-meta' },\n\t\t\t\t\t\t!RichText.isEmpty(aside) && wp.element.createElement(\n\t\t\t\t\t\t\t'aside',\n\t\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-section-aside' },\n\t\t\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\t\t\ttagName: 'p',\n\t\t\t\t\t\t\t\tvalue: aside\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(__WEBPACK_IMPORTED_MODULE_4__components_share_tools__[\"c\" /* default */], {\n\t\t\t\t\t\t\tblockProps: props\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\thasRelatedLinks(related) && wp.element.createElement(\n\t\t\t\t\t'footer',\n\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t'h3',\n\t\t\t\t\t\t{ className: 'wp-block-editorial-listicle-footer-title' },\n\t\t\t\t\t\t'Related Stories'\n\t\t\t\t\t),\n\t\t\t\t\twp.element.createElement(RichText.Content, {\n\t\t\t\t\t\ttagName: 'ul',\n\t\t\t\t\t\tclassName: 'wp-block-editorial-listicle-footer-list',\n\t\t\t\t\t\tvalue: related,\n\t\t\t\t\t\tmultiline: 'li'\n\t\t\t\t\t})\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t},\n\n\n\tdeprecated: __WEBPACK_IMPORTED_MODULE_7__deprecated__[\"a\" /* default */]\n\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvYmxvY2tzL2xpc3RpY2xlL2xpc3RpY2xlLmpzP2M5YmUiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9zbGljZWRUb0FycmF5ID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBzbGljZUl0ZXJhdG9yKGFyciwgaSkgeyB2YXIgX2FyciA9IFtdOyB2YXIgX24gPSB0cnVlOyB2YXIgX2QgPSBmYWxzZTsgdmFyIF9lID0gdW5kZWZpbmVkOyB0cnkgeyBmb3IgKHZhciBfaSA9IGFycltTeW1ib2wuaXRlcmF0b3JdKCksIF9zOyAhKF9uID0gKF9zID0gX2kubmV4dCgpKS5kb25lKTsgX24gPSB0cnVlKSB7IF9hcnIucHVzaChfcy52YWx1ZSk7IGlmIChpICYmIF9hcnIubGVuZ3RoID09PSBpKSBicmVhazsgfSB9IGNhdGNoIChlcnIpIHsgX2QgPSB0cnVlOyBfZSA9IGVycjsgfSBmaW5hbGx5IHsgdHJ5IHsgaWYgKCFfbiAmJiBfaVtcInJldHVyblwiXSkgX2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E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///59\n"); /***/ }), /* 60 */ diff --git a/src/blocks/listicle/listicle.js b/src/blocks/listicle/listicle.js index c10d3825..772f047d 100644 --- a/src/blocks/listicle/listicle.js +++ b/src/blocks/listicle/listicle.js @@ -332,40 +332,50 @@ registerBlockType( 'editorial/listicle', { return ( <section className={ getClasses( className, number, aside, backgroundUrl, backgroundAutoplay, divider ) }> <article className="wp-block-editorial-listicle-article"> - <figure className="wp-block-editorial-listicle-figure"> - <Background - blockProps={ props } - /> - <RichText.Content - tagName="figcaption" - className="wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption" - value={ credit } - /> - </figure> + { ( backgroundUrl || credit ) && ( + <figure className="wp-block-editorial-listicle-figure"> + <Background + blockProps={ props } + /> + { credit && ( + <RichText.Content + tagName="figcaption" + className="wp-caption-text wp-block-editorial-listicle-caption wp-prepress-component-caption" + value={ credit } + /> + )} + </figure> + )} <header className="wp-block-editorial-listicle-header"> { number && ( <h2 className="wp-block-editorial-listicle-header-number">{ number }</h2> ) } <div className="wp-block-editorial-listicle-header-content"> - <RichText.Content - tagName="h3" - className="wp-block-editorial-listicle-header-content-hed" - value={ hed } - /> - <RichText.Content - tagName="h4" - className="wp-block-editorial-listicle-header-content-dek" - value={ dek } - /> + { hed && ( + <RichText.Content + tagName="h3" + className="wp-block-editorial-listicle-header-content-hed" + value={ hed } + /> + )} + { dek && ( + <RichText.Content + tagName="h4" + className="wp-block-editorial-listicle-header-content-dek" + value={ dek } + /> + )} </div> </header> <section className="wp-block-editorial-listicle-section"> - <RichText.Content - tagName="div" - className="wp-block-editorial-listicle-section-content" - value={ content } - multiline="p" - /> + { ! RichText.isEmpty( content ) && ( + <RichText.Content + tagName="div" + className="wp-block-editorial-listicle-section-content" + value={ content } + multiline="p" + /> + )} <div className="wp-block-editorial-listicle-section-meta"> { ! RichText.isEmpty( aside ) && ( <aside className="wp-block-editorial-listicle-section-aside">