e.title?"object"==typeof e.title&&e.title.rendered?(0,i.decodeEntities)(e.title.rendered.trim()):void 0:"";renderInspectorControls=()=>{const{attributes:e,setAttributes:t,textColor:n,setTextColor:r}=this.props,{authors:c,specificPosts:i,postsToShow:l,categories:u,includeSubcategories:p,customTaxonomies:d,columns:m,colGap:f,postType:h,showImage:g,showCaption:w,showCredit:v,imageScale:b,mobileStack:S,minHeight:R,moreButton:x,showExcerpt:C,showReadMore:j,readMoreLabel:T,excerptLength:P,showSubtitle:A,typeScale:I,showDate:O,showAuthor:N,showAvatar:M,showCategory:L,postLayout:B,mediaPosition:Z,specificMode:V,tags:z,tagExclusions:H,categoryExclusions:F,customTaxonomyExclusions:D}=e,U=[{value:1,label:/* translators: label for small size option */__("Small","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for small size */__("S","jetpack-mu-wpcom")},{value:2,label:/* translators: label for medium size option */__("Medium","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for medium size */__("M","jetpack-mu-wpcom")},{value:3,label:/* translators: label for large size option */__("Large","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for large size */__("L","jetpack-mu-wpcom")},{value:4,label:/* translators: label for extra large size option */__("Extra Large","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for extra large size */__("XL","jetpack-mu-wpcom")}],$=[{value:1,label:/* translators: label for small size option */__("Small","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for small size */__("S","jetpack-mu-wpcom")},{value:2,label:/* translators: label for medium size option */__("Medium","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for medium size */__("M","jetpack-mu-wpcom")},{value:3,label:/* translators: label for large size option */__("Large","jetpack-mu-wpcom"),shortName:/* translators: abbreviation for large size */__("L","jetpack-mu-wpcom")}],q=e=>n=>t({[e]:n});return React.createElement(s.Fragment,null,React.createElement(a.PanelBody,{title:__("Display Settings","jetpack-mu-wpcom"),initialOpen:!0},React.createElement(k.Z,{numberOfItems:l,onNumberOfItemsChange:e=>t({postsToShow:e||1}),specificMode:V,onSpecificModeChange:q("specificMode"),specificPosts:i,onSpecificPostsChange:q("specificPosts"),authors:c,onAuthorsChange:q("authors"),categories:u,onCategoriesChange:q("categories"),includeSubcategories:p,onIncludeSubcategoriesChange:q("includeSubcategories"),tags:z,onTagsChange:q("tags"),onCustomTaxonomiesChange:q("customTaxonomies"),customTaxonomies:d,tagExclusions:H,onTagExclusionsChange:q("tagExclusions"),categoryExclusions:F,onCategoryExclusionsChange:q("categoryExclusions"),customTaxonomyExclusions:D,onCustomTaxonomyExclusionsChange:q("customTaxonomyExclusions"),postType:h}),"grid"===B&&React.createElement(s.Fragment,null,React.createElement(a.RangeControl,{label:__("Columns","jetpack-mu-wpcom"),value:m,onChange:q("columns"),min:2,max:6,required:!0}),React.createElement(a.BaseControl,{label:__("Columns Gap","jetpack-mu-wpcom"),id:"newspackcolumns-col-gap"},React.createElement(a.PanelRow,null,React.createElement(a.ButtonGroup,{id:"newspackcolumns-col-gap","aria-label":__("Columns Gap","jetpack-mu-wpcom")},$.map((e=>{const n=f===e.value;return React.createElement(a.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,key:e.value,onClick:()=>t({colGap:e.value})},e.shortName)})))))),!V&&(0,E.pM)()?React.createElement("i",null,__('This blog is private, therefore the "Load more posts" feature is not active.',"jetpack-mu-wpcom")):!V&&React.createElement(a.ToggleControl,{label:__('Show "Load more posts" Button',"jetpack-mu-wpcom"),checked:x,onChange:()=>t({moreButton:!x})}),React.createElement(a.ToggleControl,{label:__("Allow duplicate stories","jetpack-mu-wpcom"),help:__("If checked, this block will be excluded from the page's de-duplication logic. Duplicate stories may appear.","jetpack-mu-wpcom"),checked:!e.deduplicate,onChange:e=>t({deduplicate:!e}),className:"newspack-blocks-deduplication-toggle"})),React.createElement(a.PanelBody,{title:__("Featured Image Settings","jetpack-mu-wpcom")},React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Featured Image","jetpack-mu-wpcom"),checked:g,onChange:()=>t({showImage:!g})})),g&&React.createElement(React.Fragment,null,React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Featured Image Caption","jetpack-mu-wpcom"),checked:w,onChange:()=>t({showCaption:!w})})),React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Featured Image Credit","jetpack-mu-wpcom"),checked:v,onChange:()=>t({showCredit:!v})}))),g&&"top"!==Z&&"behind"!==Z&&React.createElement(s.Fragment,null,React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Stack on mobile","jetpack-mu-wpcom"),checked:S,onChange:()=>t({mobileStack:!S})})),React.createElement(a.BaseControl,{label:__("Featured Image Size","jetpack-mu-wpcom"),id:"newspackfeatured-image-size"},React.createElement(a.PanelRow,null,React.createElement(a.ButtonGroup,{id:"newspackfeatured-image-size","aria-label":__("Featured Image Size","jetpack-mu-wpcom")},U.map((e=>{const n=b===e.value;return React.createElement(a.Button,{isPrimary:n,"aria-pressed":n,"aria-label":e.label,key:e.value,onClick:()=>t({imageScale:e.value})},e.shortName)})))))),g&&"behind"===Z&&React.createElement(a.RangeControl,{label:__("Minimum height","jetpack-mu-wpcom"),help:__("Sets a minimum height for the block, using a percentage of the screen's current height.","jetpack-mu-wpcom"),value:R,onChange:e=>t({minHeight:e}),min:0,max:100,required:!0})),React.createElement(a.PanelBody,{title:__("Post Control Settings","jetpack-mu-wpcom")},_&&React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Subtitle","jetpack-mu-wpcom"),checked:A,onChange:()=>t({showSubtitle:!A})})),React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Excerpt","jetpack-mu-wpcom"),checked:C,onChange:()=>t({showExcerpt:!C})})),C&&React.createElement(a.RangeControl,{label:__("Max number of words in excerpt","jetpack-mu-wpcom"),value:P,onChange:e=>t({excerptLength:e}),min:10,max:100}),React.createElement(a.ToggleControl,{label:__('Add a "Read More" link',"jetpack-mu-wpcom"),checked:j,onChange:()=>t({showReadMore:!j})}),j&&React.createElement(a.TextControl,{label:__('"Read More" link text',"jetpack-mu-wpcom"),value:T,placeholder:T,onChange:e=>t({readMoreLabel:e})}),React.createElement(a.RangeControl,{className:"type-scale-slider",label:__("Type Scale","jetpack-mu-wpcom"),value:I,onChange:e=>t({typeScale:e}),min:1,max:10,required:!0})),React.createElement(o.PanelColorSettings,{title:__("Color Settings","jetpack-mu-wpcom"),initialOpen:!0,colorSettings:[{value:n.color,onChange:r,label:__("Text Color","jetpack-mu-wpcom")}]}),React.createElement(a.PanelBody,{title:__("Post Meta Settings","jetpack-mu-wpcom")},React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Date","jetpack-mu-wpcom"),checked:O,onChange:()=>t({showDate:!O})})),React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Category","jetpack-mu-wpcom"),checked:L,onChange:()=>t({showCategory:!L})})),React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Author","jetpack-mu-wpcom"),checked:N,onChange:()=>t({showAuthor:!N})})),N&&React.createElement(a.PanelRow,null,React.createElement(a.ToggleControl,{label:__("Show Author Avatar","jetpack-mu-wpcom"),checked:M,onChange:()=>t({showAvatar:!M})}))),React.createElement(y.L,{attributes:e,setAttributes:t}),React.createElement(y.H,{attributes:e,setAttributes:t}))};componentDidMount(){this.props.triggerReflow()}componentDidUpdate(e){(0,E.Ou)(e,this.props)&&this.props.triggerReflow()}componentWillUnmount(){this.props.triggerReflow()}render(){const{attributes:e,className:t,setAttributes:n,isSelected:r,latestPosts:c,textColor:i,error:l}=this.props,{showImage:y,imageShape:k,postLayout:b,mediaPosition:_,moreButton:C,moreButtonText:j,columns:T,colGap:P,typeScale:A,imageScale:I,mobileStack:O,sectionHeader:N,showCaption:M,showCategory:L,specificMode:B,textAlign:Z}=e,V=(0,v.Z)(t,{"is-grid":"grid"===b,"show-image":y,[`columns-${T}`]:"grid"===b,[`colgap-${P}`]:"grid"===b,[`ts-${A}`]:A,[`image-align${_}`]:y,[`is-${I}`]:y,"mobile-stack":O,[`is-${k}`]:y,"has-text-color":""!==i.color,"show-caption":M,"show-category":L,[`has-text-align-${Z}`]:Z,wpnbha:!0}),z=[{icon:React.createElement(u.Z,{icon:p.Z}),title:__("List View","jetpack-mu-wpcom"),onClick:()=>n({postLayout:"list"}),isActive:"list"===b},{icon:React.createElement(u.Z,{icon:d.Z}),title:__("Grid View","jetpack-mu-wpcom"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===b}],H=[{icon:React.createElement(u.Z,{icon:m.Z}),title:__("Show media on top","jetpack-mu-wpcom"),isActive:"top"===_,onClick:()=>n({mediaPosition:"top"})},{icon:React.createElement(u.Z,{icon:f.Z}),title:__("Show media on left","jetpack-mu-wpcom"),isActive:"left"===_,onClick:()=>n({mediaPosition:"left"})},{icon:React.createElement(u.Z,{icon:h.Z}),title:__("Show media on right","jetpack-mu-wpcom"),isActive:"right"===_,onClick:()=>n({mediaPosition:"right"})},{icon:React.createElement(u.Z,{icon:g.Z}),title:__("Show media behind","jetpack-mu-wpcom"),isActive:"behind"===_,onClick:()=>n({mediaPosition:"behind"})}],F=[{icon:S,title:__("Landscape Image Shape","jetpack-mu-wpcom"),isActive:"landscape"===k,onClick:()=>n({imageShape:"landscape"})},{icon:R,title:__("portrait Image Shape","jetpack-mu-wpcom"),isActive:"portrait"===k,onClick:()=>n({imageShape:"portrait"})},{icon:x,title:__("Square Image Shape","jetpack-mu-wpcom"),isActive:"square"===k,onClick:()=>n({imageShape:"square"})},{icon:React.createElement(u.Z,{icon:w.Z}),title:__("Uncropped","jetpack-mu-wpcom"),isActive:"uncropped"===k,onClick:()=>n({imageShape:"uncropped"})}];return React.createElement(s.Fragment,null,React.createElement("div",{className:V,style:{color:i.color}},React.createElement("div",null,c&&(!o.RichText.isEmpty(N)||r)&&React.createElement(o.RichText,{onChange:e=>n({sectionHeader:e}),placeholder:__("Write header…","jetpack-mu-wpcom"),value:N,tagName:"h2",className:"article-section-title"}),c&&!c.length&&React.createElement(a.Placeholder,null,__("Sorry, no posts were found.","jetpack-mu-wpcom")),!c&&!l&&React.createElement(a.Placeholder,{icon:React.createElement(a.Spinner,null),className:"component-placeholder__align-center"}),!c&&l&&React.createElement(a.Placeholder,{className:"component-placeholder__align-center newspack-block--error"},l),c&&c.map((e=>this.renderPost(e))))),!B&&c&&C&&!(0,E.pM)()&&React.createElement("div",{className:"editor-styles-wrapper wpnbha__wp-block-button__wrapper"},React.createElement("div",{className:"wp-block-button"},React.createElement(o.RichText,{placeholder:__("Load more posts","jetpack-mu-wpcom"),value:j,onChange:e=>n({moreButtonText:e}),className:"wp-block-button__link",allowedFormats:[]}))),React.createElement(o.BlockControls,null,React.createElement(a.Toolbar,null,React.createElement(o.AlignmentControl,{value:Z,onChange:e=>{n({textAlign:e})}})),React.createElement(a.Toolbar,{controls:z}),y&&React.createElement(a.Toolbar,{controls:H}),y&&React.createElement(a.Toolbar,{controls:F})),React.createElement(o.InspectorControls,null,this.renderInspectorControls()))}}const j=(0,r.compose)([(0,o.withColors)({textColor:"color"}),(0,c.withSelect)(E.b9),(0,c.withDispatch)(E.eL)])(C)},75077:(e,t,n)=>{n.d(t,{Xd:()=>d});var o=n(4981),a=n(55609),r=n(92694),c=n(65736),s=n(23741),i=n(8501);const __=c.__,_x=c._x,{name:l,attributes:u,category:p}=i,d={title:__("Homepage Posts","jetpack-mu-wpcom"),icon:{src:React.createElement(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement(a.Path,{d:"M6.5 14.25H11v-1.5H6.5zM14.5 11.25h-8v-1.5h8zM6.5 8.25h8v-1.5h-8z"}),React.createElement(a.Path,{clipRule:"evenodd",d:"M4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.272 3.728 18 4.625 18h11.75c.897 0 1.625-.728 1.625-1.625V4.625C18 3.728 17.272 3 16.375 3zm11.75 1.5H4.625a.125.125 0 00-.125.125v11.75c0 .069.056.125.125.125h11.75a.125.125 0 00.125-.125V4.625a.125.125 0 00-.125-.125z",fillRule:"evenodd"}),React.createElement(a.Path,{d:"M20.25 8v11c0 .69-.56 1.25-1.249 1.25H6v1.5h13.001A2.749 2.749 0 0021.75 19V8z"})),foreground:"#36f"},attributes:u,category:p,keywords:[__("posts","jetpack-mu-wpcom"),__("articles","jetpack-mu-wpcom"),__("latest","jetpack-mu-wpcom")],description:__("A block for displaying homepage posts.","jetpack-mu-wpcom"),styles:[{name:"default",label:_x("Default","block style","jetpack-mu-wpcom"),isDefault:!0},{name:"borders",label:_x("Borders","block style","jetpack-mu-wpcom")}],supports:{html:!1,align:["wide","full"],default:""},edit:s.Z,save:()=>null,transforms:{from:[{type:"block",blocks:["core/latest-posts"],transform:({displayPostContent:e,displayPostDate:t,postLayout:n,columns:a,postsToShow:c,categories:s})=>(0,o.createBlock)((0,r.applyFilters)("blocks.transforms_from_name","newspack-blocks/homepage-articles"),{showExcerpt:e,showDate:t,postLayout:n,columns:a,postsToShow:c,showAuthor:!1,categories:s?[s]:[]})}],to:[{type:"block",blocks:["core/latest-posts"],transform:({showExcerpt:e,showDate:t,postLayout:n,columns:a,postsToShow:r,categories:c})=>(0,o.createBlock)("core/latest-posts",{displayPostContent:e,displayPostDate:t,postLayout:n,columns:a,postsToShow:r,categories:c[0]||""})}]}}},38151:(e,t,n)=>{n.d(t,{$:()=>f,f:()=>R});var o=n(86989),a=n.n(o),r=n(9818),c=n(96483),s=n(92819),i=n(835),l=n(46008),u=n(17652),p=n(8501),d=n(96738);const{name:m}=p,f=`newspack-blocks/${m}`,h={postsByBlock:{},errorsByBlock:{}},g={reflow:()=>{y.dispatch({type:"REFLOW"})}},w={getPosts:({clientId:e})=>y.getState().postsByBlock[e],getError:({clientId:e})=>y.getState().errorsByBlock[e],isUIDisabled:()=>y.getState().isUIDisabled},v=(0,l.ZP)(),y=(0,i.MT)(((e=h,t)=>{switch(t.type){case"DISABLE_UI":return(0,s.set)(e,"isUIDisabled",!0);case"ENABLE_UI":return(0,s.set)(e,"isUIDisabled",!1);case"UPDATE_BLOCK_POSTS":return(0,s.set)(e,["postsByBlock",t.clientId],t.posts);case"UPDATE_BLOCK_ERROR":return(0,s.set)(e,["errorsByBlock",t.clientId],t.error)}return e}),(0,i.md)(v)),k={getSelectors:()=>w,getActions:()=>g,...y},b={},E=JSON.stringify;function*_(e){const t=E(e.postsQuery),n=window.newspack_blocks_data.posts_rest_url;let o=b[t];if(void 0===o){const r=(0,c.addQueryArgs)(n,{...e.postsQuery,context:"edit"});o=yield(0,u.RE)(a(),{url:r}),b[t]=o}const r=o.map((e=>e.id));return yield(0,u.gz)({type:"UPDATE_BLOCK_POSTS",clientId:e.clientId,posts:o}),r}function S(e){const{getBlock:t}=(0,r.select)("core/block-editor"),n=t(e);return n?.attributes?.deduplicate}const R=e=>{(0,r.register)({name:f,instantiate:()=>k}),v.run((e=>{function*t(){yield(0,u.gw)(300);const{getBlocks:t}=(0,r.select)("core/block-editor"),{getCurrentPostId:n}=(0,r.select)("core/editor");yield(0,u.gz)({type:"DISABLE_UI"});const o=t().map((e=>{const t=(0,r.select)("core/block-editor").getBlocks(e.clientId);return{...e,innerBlocks:t}})),a=(0,d.Pi)(o,e),c=a.reduce(((e,{clientId:t,postsQuery:n})=>(S(t)&&n.include&&(e=[...e,...n.include]),e)),[]);let s=(0,d.Oi)([...c,n()]);for(;a.length;){const e=a.shift(),t=S(e.clientId);t&&(e.postsQuery.exclude=s);let n=[];try{n=yield(0,u.RE)(_,e)}catch(t){yield(0,u.gz)({type:"UPDATE_BLOCK_ERROR",clientId:e.clientId,error:t.message})}t&&(s=[...s,...n])}yield(0,u.gz)({type:"ENABLE_UI"})}return function*(){yield(0,u.Fm)("REFLOW",t)}})(e))}},96738:(e,t,n)=>{n.d(t,{Oi:()=>l,Ou:()=>i,Pi:()=>p,b9:()=>g,eL:()=>w,pM:()=>c});var o=n(65736),a=n(92819),r=n(38151);const __=o.__,c=()=>"object"==typeof window&&window.wpcomGutenberg&&-1===Number(window.wpcomGutenberg.blogPublic),s=["postsToShow","authors","categories","includeSubcategories","excerptLength","tags","customTaxonomies","showExcerpt","specificPosts","specificMode","tagExclusions","categoryExclusions","customTaxonomyExclusions","postType","includedPostStatuses","deduplicate","showCaption","showCredit"],i=(e,t)=>!(0,a.isEqual)((0,a.pick)(e.attributes,s),(0,a.pick)(t.attributes,s))||!(0,a.isEqual)(e.topBlocksClientIdsInOrder,t.topBlocksClientIdsInOrder),l=e=>e.map((e=>parseInt(e))).filter((e=>e>0)),u=e=>(0,a.pickBy)(e,(e=>!(0,a.isUndefined)(e)&&!(0,a.isNull)(e))),p=(e,t)=>e.flatMap((e=>{const n=[];if(t.indexOf(e.name)>=0){const t=(e=>{const{postsToShow:t,authors:n,categories:o,includeSubcategories:r,excerptLength:c,postType:i,showExcerpt:p,showCaption:d,showCredit:m,tags:f,customTaxonomies:h,specificPosts:g=[],specificMode:w,tagExclusions:v,categoryExclusions:y,customTaxonomyExclusions:k,includedPostStatuses:b}=(0,a.pick)(e,s),E=l(g),_=w&&E&&E.length,S=(0,a.pickBy)(_?{include:E,postsToShow:g.length,postType:i}:{postsToShow:t,categories:u(o),includeSubcategories:r,authors:u(n),tags:u(f),tagExclusions:u(v),categoryExclusions:u(y),customTaxonomyExclusions:k,customTaxonomies:h,postType:i,includedPostStatuses:b},(e=>!(0,a.isUndefined)(e)));return S.excerptLength=c,S.showExcerpt=p,S.showCaption=d,S.showCredit=m,S})(e.attributes);n.push({postsQuery:t,clientId:e.clientId})}return n.concat(p(e.innerBlocks,t))})),d=e=>e.flatMap((e=>{const t=[];return t.push(e.clientId),t.concat(d(e.innerBlocks))})),m=window.newspack_blocks_data.assets_path,f=e=>{const t=new Date;return t.setHours(12,0,0,0),{author:1,content:{rendered:""+__("The post content.","jetpack-mu-wpcom")+"
"},date:t.toISOString(),date_formatted:t.toLocaleString(),article_meta_footer:"",excerpt:{rendered:""+__("The post excerpt.","jetpack-mu-wpcom")+"
"},post_link:"/",featured_media:"1",id:e,post_type:"post",meta:{newspack_post_subtitle:__("Post Subtitle","jetpack-mu-wpcom")},title:{rendered:__("Post Title","jetpack-mu-wpcom")},newspack_article_classes:"type-post",newspack_author_info:[{display_name:__("Author Name","jetpack-mu-wpcom"),avatar:'',id:1,author_link:"/"}],newspack_category_info:__("Category","jetpack-mu-wpcom"),newspack_featured_image_caption:__("Featured image caption","jetpack-mu-wpcom"),newspack_featured_image_src:{large:`${m}/newspack-1024x536.jpg`,landscape:`${m}/newspack-800x600.jpg`,portrait:`${m}/newspack-600x800.jpg`,square:`${m}/newspack-800x800.jpg`,uncropped:`${m}/newspack-1024x536.jpg`},newspack_has_custom_excerpt:!1,newspack_sponsors_show_categories:!1,newspack_sponsors_show_author:!1}},h=e=>(0,a.times)(e.postsToShow,f),g=(e,{clientId:t,attributes:n})=>{const{getBlocks:o}=e("core/block-editor"),{getEditedPostAttribute:a}=e("core/editor"),c=a("blocks")||[],s=[];for(const e of c)"core/block"===e.name?s.push(...o(e.clientId)):s.push(e);const i=d(s),l=o(),u=l.some((e=>"core/widget-area"===e.name)),p=0===i.length||i.indexOf(t)>=0||u,{getPosts:m,getError:f,isUIDisabled:g}=e(r.$);return{isEditorBlock:p,isUIDisabled:g(),error:f({clientId:t}),topBlocksClientIdsInOrder:l.map((e=>e.clientId)),latestPosts:p?m({clientId:t}):h(n)}},w=(e,{isEditorBlock:t})=>({triggerReflow:t?e(r.$).reflow:()=>{}})},527:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(55609),a=n(69307),r=n(92819);class c extends a.Component{constructor(e){super(e),this.state={suggestions:[],validValues:{},loading:this.isFetchingInfoOnLoad()},this.debouncedUpdateSuggestions=(0,r.debounce)(this.updateSuggestions,500)}isFetchingInfoOnLoad=()=>{const{tokens:e,fetchSavedInfo:t}=this.props;return Boolean(e.length&&t)};componentDidMount(){if(this.isFetchingInfoOnLoad()){const{tokens:e,fetchSavedInfo:t}=this.props;t(e).then((e=>{const{validValues:t}=this.state;e.forEach((e=>{t[e.value]=e.label})),this.setState({validValues:t,loading:!1})}))}}componentWillUnmount(){delete this.suggestionsRequest,this.debouncedUpdateSuggestions.cancel()}getLabelsForValues(e){const{validValues:t}=this.state;return e.reduce(((e,n)=>t[n]?[...e,t[n]]:e),[])}getValuesForLabels(e){const{validValues:t}=this.state;return e.map((e=>Object.keys(t).find((n=>t[n]===e)))).filter((e=>!!e))}updateSuggestions(e){const{fetchSuggestions:t}=this.props;t&&this.setState({loading:!0},(()=>{const n=t(e);n.then((e=>{if(this.suggestionsRequest!==n)return;const{validValues:t}=this.state,o=[];e.forEach((e=>{const n=e.label.trim();o.indexOf(n)>=0&&(e.label=`${n} (${e.value})`),o.push(n),t[e.value]=n})),this.setState({suggestions:o,validValues:t,loading:!1})})).catch((()=>{this.suggestionsRequest===n&&this.setState({loading:!1})})),this.suggestionsRequest=n}))}handleOnChange(e){const{onChange:t}=this.props;t(this.getValuesForLabels(e))}getTokens(){const{tokens:e}=this.props;return this.getLabelsForValues(e)}render(){const{help:e,label:t=""}=this.props,{suggestions:n,loading:a}=this.state;return React.createElement("div",{className:"autocomplete-tokenfield"},React.createElement(o.FormTokenField,{value:this.getTokens(),suggestions:n,onChange:e=>this.handleOnChange(e),onInputChange:e=>this.debouncedUpdateSuggestions(e),label:t}),a&&React.createElement(o.Spinner,null),e&&React.createElement("p",{className:"autocomplete-tokenfield__help"},e))}}const s=c},66799:(e,t,n)=>{n.d(t,{H:()=>i,L:()=>s});var o=n(55609),a=n(9818),r=n(65736);const __=r.__,c=({options:e,values:t,onChange:n})=>Array.isArray(e)?e.map((({name:e,slug:a})=>React.createElement(o.PanelRow,{key:a},React.createElement(o.CheckboxControl,{label:e,checked:t.indexOf(a)>-1,onChange:e=>{const o=[...new Set(t)];e&&-1===o.indexOf(a)?o.push(a):!e&&o.indexOf(a)>-1&&o.splice(o.indexOf(a),1),n(o)}})))):React.createElement(o.Spinner,null),s=({attributes:e,setAttributes:t})=>{const{availablePostTypes:n}=(0,a.useSelect)((e=>{const{getPostTypes:t}=e("core"),n=__("Listings","jetpack-mu-wpcom");return{availablePostTypes:t({per_page:-1})?.filter((({supports:{newspack_blocks:e}})=>e))?.map((e=>(0===e.slug.indexOf("newspack_lst")&&"newspack_lst_generic"!==e.slug&&-1===e.name.indexOf(n)&&(e.name=`${e.name} ${n}`),e)))}}));return React.createElement(o.PanelBody,{title:__("Post Types","jetpack-mu-wpcom")},React.createElement(c,{options:n,values:e.postType,onChange:e=>t({postType:e})}))},i=({attributes:e,setAttributes:t})=>React.createElement(o.PanelBody,{title:__("Additional Post Statuses","jetpack-mu-wpcom")},React.createElement(o.PanelRow,null,React.createElement("i",null,__("Selection here has effect only for editors, regular users will only see published posts.","jetpack-mu-wpcom"))),React.createElement(c,{values:e.includedPostStatuses,options:[{name:"Draft",slug:"draft"},{name:"Scheduled",slug:"future"}],onChange:e=>t({includedPostStatuses:e})}))},77168:(e,t,n)=>{n.d(t,{Z:()=>f});var o=n(86989),a=n.n(o),r=n(55609),c=n(69307),s=n(22629),i=n(65736),l=n(96483),u=n(527);const __=i.__,p=e=>(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom"),d=e=>(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom");class m extends c.Component{state={showAdvancedFilters:!1};fetchPostSuggestions=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.specific_posts_rest_url;return a()({url:(0,l.addQueryArgs)(n,{search:e,postsToShow:20,_fields:"id,title",type:"post",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.title)||__("(no title)","jetpack-mu-wpcom")})))}))};fetchSavedPosts=e=>{const{postType:t}=this.props,n=window.newspack_blocks_data.posts_rest_url;return a()({url:(0,l.addQueryArgs)(n,{postsToShow:100,include:e.join(","),_fields:"id,title",postType:t})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.title.rendered)||__("(no title)","jetpack-mu-wpcom")})))}))};fetchAuthorSuggestions=e=>{const t=window.newspack_blocks_data.authors_rest_url;return a()({url:(0,l.addQueryArgs)(t,{search:e,per_page:20,fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no name)","jetpack-mu-wpcom")})))}))};fetchSavedAuthors=e=>{const t=window.newspack_blocks_data.authors_rest_url;return a()({url:(0,l.addQueryArgs)(t,{per_page:100,include:e.join(","),fields:"id,name"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no name)","jetpack-mu-wpcom")})))}))};fetchCategorySuggestions=e=>a()({path:(0,l.addQueryArgs)("/wp/v2/categories",{search:e,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((e=>Promise.all(e.map((e=>e.parent>0?a()({path:(0,l.addQueryArgs)(`/wp/v2/categories/${e.parent}`,{_fields:"name"})}).then((t=>({value:e.id,label:`${p(e)} – ${p(t)}`}))):Promise.resolve({value:e.id,label:p(e)}))))));fetchSavedCategories=e=>a()({path:(0,l.addQueryArgs)("/wp/v2/categories",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom")})))}));fetchTagSuggestions=e=>a()({path:(0,l.addQueryArgs)("/wp/v2/tags",{search:e,per_page:20,_fields:"id,name",orderby:"count",order:"desc"})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom")})))}));fetchSavedTags=e=>a()({path:(0,l.addQueryArgs)("/wp/v2/tags",{per_page:100,_fields:"id,name",include:e.join(",")})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom")})))}));fetchCustomTaxonomiesSuggestions=(e,t)=>a()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{search:t,per_page:20,_fields:"id,name,parent",orderby:"count",order:"desc"})}).then((t=>Promise.all(t.map((t=>t.parent>0?a()({path:(0,l.addQueryArgs)(`/wp/v2/${e}/${t.parent}`,{_fields:"name"})}).then((e=>({value:t.id,label:`${d(t)} – ${d(e)}`}))):Promise.resolve({value:t.id,label:d(t)}))))));fetchSavedCustomTaxonomies=(e,t)=>a()({path:(0,l.addQueryArgs)(`/wp/v2/${e}`,{per_page:100,_fields:"id,name",include:t.join(",")})}).then((function(e){return e.map((e=>({value:e.id,label:(0,s.decodeEntities)(e.name)||__("(no title)","jetpack-mu-wpcom")})))}));render=()=>{const{specificMode:e,onSpecificModeChange:t,specificPosts:n,onSpecificPostsChange:o,authors:a,onAuthorsChange:c,categories:s,onCategoriesChange:l,includeSubcategories:p,onIncludeSubcategoriesChange:d,tags:m,onTagsChange:f,customTaxonomies:h,onCustomTaxonomiesChange:g,tagExclusions:w,onTagExclusionsChange:v,categoryExclusions:y,onCategoryExclusionsChange:k,customTaxonomyExclusions:b,onCustomTaxonomyExclusionsChange:E,enableSpecific:_}=this.props,{showAdvancedFilters:S}=this.state,R=window.newspack_blocks_data?.custom_taxonomies,x=(e,t,n,o)=>{let a=e.filter((e=>e.slug!==n));a=[...a,{slug:n,terms:o}],t(a)},C=(e,t)=>{const n=e.find((e=>e.slug===t));return n?n.terms:[]};return React.createElement(React.Fragment,null,_&&React.createElement(r.ToggleControl,{checked:e,onChange:t,label:__("Choose Specific Posts","jetpack-mu-wpcom")}),e?React.createElement(u.Z,{tokens:n||[],onChange:o,fetchSuggestions:this.fetchPostSuggestions,fetchSavedInfo:this.fetchSavedPosts,label:__("Posts","jetpack-mu-wpcom"),help:__("Begin typing post title, click autocomplete result to select.","jetpack-mu-wpcom")}):React.createElement(React.Fragment,null,React.createElement(r.QueryControls,this.props),c&&React.createElement(u.Z,{tokens:a||[],onChange:c,fetchSuggestions:this.fetchAuthorSuggestions,fetchSavedInfo:this.fetchSavedAuthors,label:__("Authors","jetpack-mu-wpcom")}),l&&React.createElement(u.Z,{tokens:s||[],onChange:l,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories,label:__("Categories","jetpack-mu-wpcom")}),d&&React.createElement(r.ToggleControl,{checked:p,onChange:d,label:__("Include subcategories ","jetpack-mu-wpcom")}),f&&React.createElement(u.Z,{tokens:m||[],onChange:f,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:__("Tags","jetpack-mu-wpcom")}),g&&R.map((e=>React.createElement(u.Z,{key:`${h[e.slug]}-selector`,tokens:C(h,e.slug),onChange:t=>{x(h,g,e.slug,t)},fetchSuggestions:t=>this.fetchCustomTaxonomiesSuggestions(e.slug,t),fetchSavedInfo:t=>this.fetchSavedCustomTaxonomies(e.slug,t),label:e.label}))),v&&React.createElement("p",null,React.createElement(r.Button,{isLink:!0,onClick:()=>this.setState({showAdvancedFilters:!S})},S?__("Hide Advanced Filters","jetpack-mu-wpcom"):__("Show Advanced Filters","jetpack-mu-wpcom",0))),S&&React.createElement(React.Fragment,null,v&&React.createElement(u.Z,{tokens:w||[],onChange:v,fetchSuggestions:this.fetchTagSuggestions,fetchSavedInfo:this.fetchSavedTags,label:__("Excluded Tags","jetpack-mu-wpcom")}),k&&React.createElement(u.Z,{tokens:y||[],onChange:k,fetchSuggestions:this.fetchCategorySuggestions,fetchSavedInfo:this.fetchSavedCategories,label:__("Excluded Categories","jetpack-mu-wpcom")}),R&&E&&R.map((({label:e,slug:t})=>React.createElement(u.Z,{fetchSavedInfo:e=>this.fetchSavedCustomTaxonomies(t,e),fetchSuggestions:e=>this.fetchCustomTaxonomiesSuggestions(t,e),key:`${t}-exclusions-selector`,label:(0,i.sprintf)(
// translators: %s is the custom taxonomy label.
-__("Excluded %s","jetpack-mu-wpcom"),e),onChange:e=>x(b,E,t,e),tokens:C(b,t)}))))))}}m.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],customTaxonomies:[],tagExclusions:[],customTaxonomyExclusions:[]};const f=m},260:(e,t,n)=>{n.d(t,{FX:()=>c,Q$:()=>i,b2:()=>s,fC:()=>l,lW:()=>r});var o=n(9307),a=n(5736);const _x=a._x,__=a.__,r=e=>e.map((e=>React.createElement("span",{className:"avatar author-avatar",key:e.id},React.createElement("a",{className:"url fn n",href:e.author_link},React.createElement(o.RawHTML,null,e.avatar))))),c=e=>React.createElement("span",{className:"byline"},React.createElement("span",{className:"author-prefix"},_x("by","post author","jetpack-mu-wpcom"))," ",e.reduce(((t,n,o)=>[...t,React.createElement("span",{className:"author vcard",key:n.id},React.createElement("a",{className:"url fn n",href:n.author_link},n.display_name)),o1&&o===e.length-2&&_x(" and ","post author","jetpack-mu-wpcom")]),[])),s=e=>React.createElement("span",{className:"sponsor-logos"},e.map((e=>React.createElement(o.Fragment,{key:e.id},e.src&&React.createElement("a",{href:e.sponsor_url},React.createElement("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))))),i=e=>React.createElement("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce(((t,n,o)=>[...t,React.createElement("span",{className:"author",key:n.id},React.createElement("a",{href:n.author_link},n.sponsor_name)),o1&&o===e.length-2&&_x(" and ","post author","jetpack-mu-wpcom")]),[])),l=(e={})=>"publish"!==e.post_status?React.createElement("div",{className:"newspack-preview-label"},{draft:__("Draft","jetpack-mu-wpcom"),future:__("Scheduled","jetpack-mu-wpcom")}[e.post_status]):null},9196:e=>{e.exports=window.React},2819:e=>{e.exports=window.lodash},6989:e=>{e.exports=window.wp.apiFetch},2175:e=>{e.exports=window.wp.blockEditor},4981:e=>{e.exports=window.wp.blocks},5609:e=>{e.exports=window.wp.components},4333:e=>{e.exports=window.wp.compose},9818:e=>{e.exports=window.wp.data},9307:e=>{e.exports=window.wp.element},2694:e=>{e.exports=window.wp.hooks},2629:e=>{e.exports=window.wp.htmlEntities},5736:e=>{e.exports=window.wp.i18n},444:e=>{e.exports=window.wp.primitives},6483:e=>{e.exports=window.wp.url},2650:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(9800);function a(e,t,n){return(t=(0,o.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},255:(e,t,n)=>{function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;to})},8617:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(2650);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t{function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{Z:()=>o})},8191:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(7381);function a(e,t){if("object"!=(0,o.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,o.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},9800:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(7381),a=n(8191);function r(e){var t=(0,a.Z)(e,"string");return"symbol"==(0,o.Z)(t)?t:t+""}},7381:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{Z:()=>o})},3228:(e,t,n)=>{function o(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;ta});const a=function(){for(var e,t,n=0,a="",r=arguments.length;n{e.exports=JSON.parse('{"name":"homepage-articles","category":"newspack","attributes":{"className":{"type":"string","default":""},"showExcerpt":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55},"showReadMore":{"type":"boolean","default":false},"readMoreLabel":{"type":"string","default":"Keep reading"},"showDate":{"type":"boolean","default":true},"showImage":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"showCredit":{"type":"boolean","default":false},"disableImageLazyLoad":{"type":"boolean","default":false},"fetchPriority":{"type":"string","default":""},"imageShape":{"type":"string","default":"landscape"},"minHeight":{"type":"integer","default":0},"moreButton":{"type":"boolean","default":false},"moreButtonText":{"type":"string","default":""},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCategory":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"integer","default":3},"colGap":{"type":"integer","default":3},"postsToShow":{"type":"integer","default":3},"mediaPosition":{"type":"string","default":"top"},"authors":{"type":"array","default":[],"items":{"type":"integer"}},"categories":{"type":"array","default":[],"items":{"type":"integer"}},"includeSubcategories":{"type":"boolean","default":true},"tags":{"type":"array","default":[],"items":{"type":"integer"}},"customTaxonomies":{"type":"array","default":[],"items":{"type":"object","properties":{"slug":{"type":"string"},"terms":{"type":"array","items":{"type":"integer"}}}}},"tagExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"categoryExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"customTaxonomyExclusions":{"type":"array","default":[],"items":{"type":"object","properties":{"slug":{"type":"string"},"terms":{"type":"array","items":{"type":"integer"}}}}},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"typeScale":{"type":"integer","default":4},"imageScale":{"type":"integer","default":3},"mobileStack":{"type":"boolean","default":false},"sectionHeader":{"type":"string","default":""},"specificMode":{"type":"boolean","default":false},"textColor":{"type":"string","default":""},"customTextColor":{"type":"string","default":""},"singleMode":{"type":"boolean","default":false},"showSubtitle":{"type":"boolean","default":false},"postType":{"type":"array","default":["post"],"items":{"type":"string"}},"textAlign":{"type":"string","default":"left"},"includedPostStatuses":{"type":"array","default":["publish"],"items":{"type":"string"}},"deduplicate":{"type":"boolean","default":true}}}')}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=n(4981),t=n(2694),o=n(5736),a=n(2634),r=n(5077),c=n(8151);const __=o.__,s="a8c/blog-posts";(0,t.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:s})),(0,e.registerBlockType)(s,{...r.Xd,title:__("Blog Posts","jetpack-mu-wpcom"),category:"widgets"}),(0,c.f)([s,a.T])})()})();
\ No newline at end of file
+__("Excluded %s","jetpack-mu-wpcom"),e),onChange:e=>x(b,E,t,e),tokens:C(b,t)}))))))}}m.defaultProps={enableSpecific:!0,specificPosts:[],authors:[],categories:[],tags:[],customTaxonomies:[],tagExclusions:[],customTaxonomyExclusions:[]};const f=m},260:(e,t,n)=>{n.d(t,{FX:()=>c,Q$:()=>i,b2:()=>s,fC:()=>l,lW:()=>r});var o=n(69307),a=n(65736);const _x=a._x,__=a.__,r=e=>e.map((e=>React.createElement("span",{className:"avatar author-avatar",key:e.id},React.createElement("a",{className:"url fn n",href:e.author_link},React.createElement(o.RawHTML,null,e.avatar))))),c=e=>React.createElement("span",{className:"byline"},React.createElement("span",{className:"author-prefix"},_x("by","post author","jetpack-mu-wpcom"))," ",e.reduce(((t,n,o)=>[...t,React.createElement("span",{className:"author vcard",key:n.id},React.createElement("a",{className:"url fn n",href:n.author_link},n.display_name)),o1&&o===e.length-2&&_x(" and ","post author","jetpack-mu-wpcom")]),[])),s=e=>React.createElement("span",{className:"sponsor-logos"},e.map((e=>React.createElement(o.Fragment,{key:e.id},e.src&&React.createElement("a",{href:e.sponsor_url},React.createElement("img",{src:e.src,width:e.img_width,height:e.img_height,alt:e.sponsor_name})))))),i=e=>React.createElement("span",{className:"byline sponsor-byline"},e[0].byline_prefix," ",e.reduce(((t,n,o)=>[...t,React.createElement("span",{className:"author",key:n.id},React.createElement("a",{href:n.author_link},n.sponsor_name)),o1&&o===e.length-2&&_x(" and ","post author","jetpack-mu-wpcom")]),[])),l=(e={})=>"publish"!==e.post_status?React.createElement("div",{className:"newspack-preview-label"},{draft:__("Draft","jetpack-mu-wpcom"),future:__("Scheduled","jetpack-mu-wpcom")}[e.post_status]):null},99196:e=>{e.exports=window.React},92819:e=>{e.exports=window.lodash},86989:e=>{e.exports=window.wp.apiFetch},52175:e=>{e.exports=window.wp.blockEditor},4981:e=>{e.exports=window.wp.blocks},55609:e=>{e.exports=window.wp.components},94333:e=>{e.exports=window.wp.compose},9818:e=>{e.exports=window.wp.data},69307:e=>{e.exports=window.wp.element},92694:e=>{e.exports=window.wp.hooks},22629:e=>{e.exports=window.wp.htmlEntities},65736:e=>{e.exports=window.wp.i18n},70444:e=>{e.exports=window.wp.primitives},96483:e=>{e.exports=window.wp.url},62650:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(59800);function a(e,t,n){return(t=(0,o.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},80255:(e,t,n)=>{function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;to})},38617:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(62650);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t{function o(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}n.d(t,{Z:()=>o})},18191:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(57381);function a(e,t){if("object"!=(0,o.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,o.Z)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},59800:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(57381),a=n(18191);function r(e){var t=(0,a.Z)(e,"string");return"symbol"==(0,o.Z)(t)?t:t+""}},57381:(e,t,n)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{Z:()=>o})},3228:(e,t,n)=>{function o(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;ta});const a=function(){for(var e,t,n=0,a="",r=arguments.length;n{e.exports=JSON.parse('{"name":"homepage-articles","category":"newspack","attributes":{"className":{"type":"string","default":""},"showExcerpt":{"type":"boolean","default":true},"excerptLength":{"type":"number","default":55},"showReadMore":{"type":"boolean","default":false},"readMoreLabel":{"type":"string","default":"Keep reading"},"showDate":{"type":"boolean","default":true},"showImage":{"type":"boolean","default":true},"showCaption":{"type":"boolean","default":false},"showCredit":{"type":"boolean","default":false},"disableImageLazyLoad":{"type":"boolean","default":false},"fetchPriority":{"type":"string","default":""},"imageShape":{"type":"string","default":"landscape"},"minHeight":{"type":"integer","default":0},"moreButton":{"type":"boolean","default":false},"moreButtonText":{"type":"string","default":""},"showAuthor":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showCategory":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"integer","default":3},"colGap":{"type":"integer","default":3},"postsToShow":{"type":"integer","default":3},"mediaPosition":{"type":"string","default":"top"},"authors":{"type":"array","default":[],"items":{"type":"integer"}},"categories":{"type":"array","default":[],"items":{"type":"integer"}},"includeSubcategories":{"type":"boolean","default":true},"tags":{"type":"array","default":[],"items":{"type":"integer"}},"customTaxonomies":{"type":"array","default":[],"items":{"type":"object","properties":{"slug":{"type":"string"},"terms":{"type":"array","items":{"type":"integer"}}}}},"tagExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"categoryExclusions":{"type":"array","default":[],"items":{"type":"integer"}},"customTaxonomyExclusions":{"type":"array","default":[],"items":{"type":"object","properties":{"slug":{"type":"string"},"terms":{"type":"array","items":{"type":"integer"}}}}},"specificPosts":{"type":"array","default":[],"items":{"type":"integer"}},"typeScale":{"type":"integer","default":4},"imageScale":{"type":"integer","default":3},"mobileStack":{"type":"boolean","default":false},"sectionHeader":{"type":"string","default":""},"specificMode":{"type":"boolean","default":false},"textColor":{"type":"string","default":""},"customTextColor":{"type":"string","default":""},"singleMode":{"type":"boolean","default":false},"showSubtitle":{"type":"boolean","default":false},"postType":{"type":"array","default":["post"],"items":{"type":"string"}},"textAlign":{"type":"string","default":"left"},"includedPostStatuses":{"type":"array","default":["publish"],"items":{"type":"string"}},"deduplicate":{"type":"boolean","default":true}}}')}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=n(4981),t=n(92694),o=n(65736),a=n(52634),r=n(75077),c=n(38151);const __=o.__,s="a8c/blog-posts";(0,t.addFilter)("blocks.transforms_from_name","set-transformed-block-name",(function(e){return"newspack-blocks/homepage-articles"!==e?e:s})),(0,e.registerBlockType)(s,{...r.Xd,title:__("Blog Posts","jetpack-mu-wpcom"),category:"widgets"}),(0,c.f)([s,a.T])})()})();
\ No newline at end of file
diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.asset.php
index 08bbd4f0..d2e18506 100644
--- a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.asset.php
+++ b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.asset.php
@@ -1 +1 @@
- array(), 'version' => '8aec2b5d6500891dc317');
+ array(), 'version' => '76bcf2d0732e13958a34');
diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.js b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.js
index 8c89d7cf..e8bab038 100644
--- a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.js
+++ b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-blog-posts-view/newspack-blocks-blog-posts-view.js
@@ -1 +1 @@
-(()=>{"use strict";var t={9013:()=>{function t(e,r){const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState){if(s.status>=200&&s.status<300){const t=JSON.parse(s.responseText);return e.onSuccess(t)}return r?t(e,r-1):e.onError()}},s.open("GET",e.url),s.send()}function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}Array.prototype.forEach.call(document.querySelectorAll(".wp-block-newspack-blocks-homepage-articles.has-more-button"),(function(r){const s=r.querySelector("[data-next]");if(!s)return;const n=r.querySelector("[data-posts]");let o=!1,i=!1;s.addEventListener("click",(()=>{if(o||i)return!1;o=!0,r.classList.remove("is-error"),r.classList.add("is-loading");function a(){o=!1,r.classList.remove("is-loading"),r.classList.add("is-error")}t({url:s.getAttribute("data-next")+"&exclude_ids="+function(){const t=document.querySelectorAll("[class^='wp-block-newspack-blocks'] [data-post-id]"),e=Array.from(t).map((t=>t.getAttribute("data-post-id")));return e.push(document.querySelector("div[data-current-post-id]").getAttribute("data-current-post-id")),[...new Set(e)]}().join(","),onSuccess:function(t){if(!function(t){let r=!1;t&&e(t,"items")&&Array.isArray(t.items)&&e(t,"next")&&"string"==typeof t.next&&(r=!0,!t.items.length||e(t.items[0],"html")&&"string"==typeof t.items[0].html||(r=!1));return r}(t))return a();if(t.items.length){const e=t.items.map((t=>t.html)).join("");n.insertAdjacentHTML("beforeend",e)}t.next&&s.setAttribute("data-next",t.next);t.items.length&&t.next||(i=!0,r.classList.remove("has-more-button"));o=!1,r.classList.remove("is-loading")},onError:a},3)}))}))}},e={};function r(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,r),o.exports}r(9013)})();
\ No newline at end of file
+(()=>{"use strict";var t={56657:()=>{function t(e,r){const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState){if(s.status>=200&&s.status<300){const t=JSON.parse(s.responseText);return e.onSuccess(t)}return r?t(e,r-1):e.onError()}},s.open("GET",e.url),s.send()}function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}Array.prototype.forEach.call(document.querySelectorAll(".wp-block-newspack-blocks-homepage-articles.has-more-button"),(function(r){const s=r.querySelector("[data-next]");if(!s)return;const n=r.querySelector("[data-posts]");let o=!1,i=!1;s.addEventListener("click",(()=>{if(o||i)return!1;o=!0,r.classList.remove("is-error"),r.classList.add("is-loading");function a(){o=!1,r.classList.remove("is-loading"),r.classList.add("is-error")}t({url:s.getAttribute("data-next")+"&exclude_ids="+function(){const t=document.querySelectorAll("[class^='wp-block-newspack-blocks'] [data-post-id]"),e=Array.from(t).map((t=>t.getAttribute("data-post-id")));return e.push(document.querySelector("div[data-current-post-id]").getAttribute("data-current-post-id")),[...new Set(e)]}().join(","),onSuccess:function(t){if(!function(t){let r=!1;t&&e(t,"items")&&Array.isArray(t.items)&&e(t,"next")&&"string"==typeof t.next&&(r=!0,!t.items.length||e(t.items[0],"html")&&"string"==typeof t.items[0].html||(r=!1));return r}(t))return a();if(t.items.length){const e=t.items.map((t=>t.html)).join("");n.insertAdjacentHTML("beforeend",e)}t.next&&s.setAttribute("data-next",t.next);t.items.length&&t.next||(i=!0,r.classList.remove("has-more-button"));o=!1,r.classList.remove("is-loading")},onError:a},3)}))}))}},e={};function r(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,r),o.exports}r(56657)})();
\ No newline at end of file
diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.asset.php b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.asset.php
index 30018229..25bb0fd2 100644
--- a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.asset.php
+++ b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.asset.php
@@ -1 +1 @@
- array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-url'), 'version' => 'c4fe1d3def3e17729da7');
+ array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-url'), 'version' => '5bd77d06fb3ed1939959');
diff --git a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.js b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.js
index 5f02546b..3a8abfc6 100644
--- a/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.js
+++ b/vendor/automattic/jetpack-mu-wpcom/src/build/newspack-blocks-carousel-editor/newspack-blocks-carousel-editor.js
@@ -1,5 +1,5 @@
-(()=>{"use strict";var e,t,a,s,n={8393:(e,t,a)=>{a.d(t,{A:()=>I,B:()=>k,C:()=>z,D:()=>v,E:()=>y,F:()=>A,G:()=>G,H:()=>c,J:()=>L,P:()=>O,R:()=>R,S:()=>N,T:()=>Z,a:()=>_,b:()=>j,d:()=>D,e:()=>P,f:()=>B,g:()=>H,h:()=>X,i:()=>w,j:()=>T,k:()=>o,l:()=>S,m:()=>b,o:()=>f,p:()=>d,q:()=>g,r:()=>u,s:()=>C,t:()=>l,u:()=>p,v:()=>$,y:()=>x,z:()=>E});var s=a(6135),n=a(255),r=a(396),i=a(2654),o=function(e){return function(){return e}}(!0),l=function(){};var c=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var d=function(e,t){(0,n.Z)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(a){e[a]=t[a]}))},p=function(e,t){var a;return(a=[]).concat.apply(a,t.map(e))};function u(e,t){var a=e.indexOf(t);a>=0&&e.splice(a,1)}function f(e){var t=!1;return function(){t||(t=!0,e())}}var h=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,a){void 0===t&&(t=h),void 0===a&&(a="iterator");var s={meta:{name:a},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(s[Symbol.iterator]=function(){return s}),s}function v(e,t){var a=t.sagaStack;console.error(e),console.error(a)}var w=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},b=function(e){return Array.apply(null,new Array(e))},y=function(e){return function(t){return e(Object.defineProperty(t,s.Nm,{value:!0}))}},E=function(e){return e===s.EO},x=function(e){return e===s.Wd},C=function(e){return E(e)||x(e)};function S(e,t){var a=Object.keys(e),s=a.length;var n,i=0,o=(0,r.IX)(e)?b(s):{},c={};return a.forEach((function(e){var a=function(a,r){n||(r||C(a)?(t.cancel(),t(a,r)):(o[e]=a,++i===s&&(n=!0,t(o))))};a.cancel=l,c[e]=a})),t.cancel=function(){n||(n=!0,a.forEach((function(e){return c[e].cancel()})))},c}function T(e){return{name:e.name||"anonymous",location:$(e)}}function $(e){return e[s.b_]}function k(){for(var e=arguments.length,t=new Array(e),a=0;a{a.d(t,{ZP:()=>W});var s=a(6135),n=a(255),r=a(7921),i=a(396),o=a(8393),l=a(918),c=[],d=0;function p(e){try{h(),e()}finally{m()}}function u(e){c.push(e),d||(h(),g())}function f(e){try{return h(),e()}finally{g()}}function h(){d++}function m(){d--}function g(){var e;for(m();!d&&void 0!==(e=c.shift());)p(e)}var v=function(e){return function(t){return e.some((function(e){return x(e)(t)}))}},w=function(e){return function(t){return e(t)}},b=function(e){return function(t){return t.type===String(e)}},y=function(e){return function(t){return t.type===e}},E=function(){return o.k};function x(e){var t="*"===e?E:(0,i.Z_)(e)?b:(0,i.IX)(e)?v:(0,i.eR)(e)?b:(0,i.Yl)(e)?w:(0,i.NA)(e)?y:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var C={type:s.sZ},S=function(e){return e&&e.type===s.sZ};function T(e){void 0===e&&(e=(0,o.e)());var t=!1,a=[];return{take:function(s){t&&e.isEmpty()?s(C):e.isEmpty()?(a.push(s),s.cancel=function(){(0,o.r)(a,s)}):s(e.take())},put:function(s){if(!t){if(0===a.length)return e.put(s);a.shift()(s)}},flush:function(a){t&&e.isEmpty()?a(C):a(e.flush())},close:function(){if(!t){t=!0;var e=a;a=[];for(var s=0,n=e.length;s2?h-2:0),g=2;g{a(396),a(8393)},918:(e,t,a)=>{function s(){var e={};return e.promise=new Promise((function(t,a){e.resolve=t,e.reject=a})),e}a.d(t,{Z:()=>n});const n=s},2654:(e,t,a)=>{a.d(t,{Z:()=>n});var s=a(6135);const n=function(e,t){var a;void 0===t&&(t=!0);var n=new Promise((function(s){a=setTimeout(s,Math.min(2147483647,e),t)}));return n[s.n1]=function(){clearTimeout(a)},n}},396:(e,t,a)=>{a.d(t,{IX:()=>o,MC:()=>l,NA:()=>p,Yl:()=>r,Z_:()=>i,d5:()=>n,eR:()=>d,hZ:()=>c,sR:()=>s});var s=function(e){return null==e},n=function(e){return null!=e},r=function(e){return"function"==typeof e},i=function(e){return"string"==typeof e},o=Array.isArray,l=function(e){return e&&r(e.then)},c=function(e){return e&&r(e.next)&&r(e.throw)},d=function(e){return r(e)&&e.hasOwnProperty("toString")},p=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype}},6135:(e,t,a)=>{a.d(t,{AS:()=>l,Cs:()=>p,EO:()=>f,IO:()=>i,Nm:()=>c,Wd:()=>u,b_:()=>h,n1:()=>n,sC:()=>d,sZ:()=>r,uq:()=>o});var s=function(e){return"@@redux-saga/"+e},n=s("CANCEL_PROMISE"),r=s("CHANNEL_END"),i=s("IO"),o=s("MATCH"),l=s("MULTICAST"),c=s("SAGA_ACTION"),d=s("SELF_CANCELLATION"),p=s("TASK"),u=s("TASK_CANCEL"),f=s("TERMINATE"),h=s("LOCATION")},6008:(e,t,a)=>{a.d(t,{ZP:()=>s});const s=a(6545).ZP},7652:(e,t,a)=>{a(5052)},835:(e,t,a)=>{a.d(t,{MT:()=>c,md:()=>p});var s=a(8617);function n(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var r="function"==typeof Symbol&&Symbol.observable||"@@observable",i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,a){var s;if("function"==typeof t&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error(n(1));return a(c)(e,t)}if("function"!=typeof e)throw new Error(n(2));var i=e,d=t,p=[],u=p,f=!1;function h(){u===p&&(u=p.slice())}function m(){if(f)throw new Error(n(3));return d}function g(e){if("function"!=typeof e)throw new Error(n(4));if(f)throw new Error(n(5));var t=!0;return h(),u.push(e),function(){if(t){if(f)throw new Error(n(6));t=!1,h();var a=u.indexOf(e);u.splice(a,1),p=null}}}function v(e){if(!l(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if(f)throw new Error(n(9));try{f=!0,d=i(d,e)}finally{f=!1}for(var t=p=u,a=0;a{a.d(t,{T:()=>s});const s="a8c/posts-carousel"},9120:(e,t,a)=>{a.d(t,{Z:()=>p});var s=a(5158),n=a(1975),r=a(5736),i=a(9938);const __=r.__,o="wp-block-newspack-blocks-carousel__autoplay-playing";function l(e,t){Array.prototype.forEach.call(e,t)}function c(e){e&&(e.setAttribute("aria-hidden","false"),l(e.querySelectorAll("a"),(e=>e.removeAttribute("tabindex"))))}function d(e){e&&(e.setAttribute("aria-hidden","true"),l(e.querySelectorAll("a"),(e=>e.setAttribute("tabindex","-1"))))}function p(e,t={}){if(!(0`