From 287e2263932045ab701a8eedde2a78ae9a7566f0 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Fri, 22 Mar 2024 11:11:12 -0700 Subject: [PATCH 01/12] Bump WP required version to 6.1 --- hrswp-blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrswp-blocks.php b/hrswp-blocks.php index 4f3be8a..62ab413 100644 --- a/hrswp-blocks.php +++ b/hrswp-blocks.php @@ -8,7 +8,7 @@ * Plugin URI: https://github.com/washingtonstateuniversity/hrswp-plugin-blocks * Update URI: https://api.github.com/repos/washingtonstateuniversity/hrswp-plugin-blocks/releases/latest * Text Domain: hrswp-blocks - * Requires at least: 5.9 + * Requires at least: 6.1 * Tested up to: 6.4.1 * Requires PHP: 7.4 * From 90fcba77d5aa5e0432782fd6c26da657701bf81d Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Fri, 22 Mar 2024 11:11:58 -0700 Subject: [PATCH 02/12] :bookmark: 3.6.0-rc.1 --- CHANGELOG.md | 2 ++ hrswp-blocks.php | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab1c6e0..bc46dc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ Changelog formatting (http://semver.org/): ### Security (in case of vulnerabilities.) --> +## 3.6.0-rc.1 (:construction: TBD) + ## 3.5.0 (2023-11-16) ### Changed diff --git a/hrswp-blocks.php b/hrswp-blocks.php index 62ab413..2088b0a 100644 --- a/hrswp-blocks.php +++ b/hrswp-blocks.php @@ -1,7 +1,7 @@ Date: Fri, 22 Mar 2024 11:51:16 -0700 Subject: [PATCH 03/12] Update changelog --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc46dc0..0813be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,34 @@ Changelog formatting (http://semver.org/): ## 3.6.0-rc.1 (:construction: TBD) +### Changed + +- Include linting step in default build process. (9524183) +- Fix #139 upgrade Node.js to v20 and NPM and use `.nvmrc` to track version. (5110d24, 1709f73) +- Update phpcs config rules. (e8a3bee) +- Upgrade @wordpress/scripts from 25.3.0 to 27.4.0. (901afee) +- Upgrade prettier from wp-prettier@2.6.2-beta-1 to wp-prettier@3.0.3. (139d943) +- Upgrade cssnano from 5.0.17 to 6.1.1. (f8556e6) +- Upgrade postcss-import from 15.1.0 to 16.1.0. (541d5fb, 9d2e0f4) +- Upgrade postcss-preset-env from 8.0.1 to 9.5.2. (dcb6d8f) +- Update @wordpress/icons from 9.17.0 to 9.44.0. (54cf331) +- Update classnames from 2.3.1 to 2.5.1. (3dbbeba) +- Update composer dependencies. (e8a3bee) + +### Fixed + +- Fix #143 Posts List block: disable links in the editor. (05bf298) +- Fix #144 replace experimental date settings with production version. (435fd47) +- Fix #141 use `.nvmrc` in GitHub Action. (11d143a) +- Fix `__construct` should not return value. (e8a3bee) +- Fix #140 replace get_page_by_title with get_posts. (e8a3bee) +- Fix #135 deprecated value attribute on list block. (ef67d84) + +### Security + +- Bump follow-redirects from 1.15.4 to 1.15.6 (#136) +- Bump follow-redirects from 1.15.2 to 1.15.4 (#131) + ## 3.5.0 (2023-11-16) ### Changed From c4d4878a74225c0910b9239dafe501abedc0e81f Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Mon, 25 Mar 2024 11:46:33 -0700 Subject: [PATCH 04/12] Update gitattributes export-ignore rules --- .gitattributes | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 6938d44..a45913e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,14 +6,15 @@ .gitignore export-ignore .markdownlintignore export-ignore .npmpackagejsonlintrc.json export-ignore +.npmrc export-ignore +.nvmrc export-ignore .prettierrc.js export-ignore .stylelintrc.json export-ignore -.travis.yml export-ignore composer.json export-ignore composer.lock export-ignore CONTRIBUTING.md export-ignore -package.json export-ignore package-lock.json export-ignore +package.json export-ignore phpcs.xml.dist export-ignore postcss.config.js export-ignore webpack.config.js export-ignore From 397f2b24f8dcb5fb73b38e8b023c145fbfe42a39 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:43:00 -0700 Subject: [PATCH 05/12] Posts List block: Add offset controls --- src/blocks/posts-list/block.json | 4 ++++ src/blocks/posts-list/edit.js | 15 ++++++++++++++- src/blocks/posts-list/index.php | 1 + src/blocks/posts-list/style.css | 2 -- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/blocks/posts-list/block.json b/src/blocks/posts-list/block.json index 1f04bc5..9855ebc 100644 --- a/src/blocks/posts-list/block.json +++ b/src/blocks/posts-list/block.json @@ -82,6 +82,10 @@ "addLinkToFeaturedImage": { "type": "boolean", "default": false + }, + "offsetPostsNumber": { + "type": "integer", + "default": 0 } }, "supports": { diff --git a/src/blocks/posts-list/edit.js b/src/blocks/posts-list/edit.js index 82cc8bd..d0628c4 100755 --- a/src/blocks/posts-list/edit.js +++ b/src/blocks/posts-list/edit.js @@ -78,6 +78,7 @@ export default function PostsListEdit( { attributes, setAttributes } ) { displayPostTaxonomy, postLayout, columns, + offsetPostsNumber, order, orderBy, selectedTermLists, @@ -105,6 +106,7 @@ export default function PostsListEdit( { attributes, setAttributes } ) { order, orderby: orderBy, per_page: postsToShow, + offset: offsetPostsNumber, _embed: 'wp:featuredmedia', }, ( value ) => ! isUndefined( value ) @@ -161,6 +163,7 @@ export default function PostsListEdit( { attributes, setAttributes } ) { postsToShow, order, orderBy, + offsetPostsNumber, selectedTermLists, ] ); @@ -402,6 +405,16 @@ export default function PostsListEdit( { attributes, setAttributes } ) { } /> + + setAttributes( { offsetPostsNumber: value } ) + } + min={ 0 } + max={ 100 } + /> + { postLayout === 'grid' && ( setAttributes( { columns: value } ) } - min={ 2 } + min={ 1 } max={ ! hasPosts ? MAX_POSTS_COLUMNS diff --git a/src/blocks/posts-list/index.php b/src/blocks/posts-list/index.php index a2a0d5a..6adbdc6 100644 --- a/src/blocks/posts-list/index.php +++ b/src/blocks/posts-list/index.php @@ -68,6 +68,7 @@ public function render( $attributes ) { 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], + 'offset' => $attributes['offsetPostsNumber'], 'suppress_filters' => false, ); diff --git a/src/blocks/posts-list/style.css b/src/blocks/posts-list/style.css index 4bcf3fc..0fda83f 100644 --- a/src/blocks/posts-list/style.css +++ b/src/blocks/posts-list/style.css @@ -272,8 +272,6 @@ @media (min-width: 576px) { - .hrswp-block-posts-list.is-grid, - .hrswp-block-posts-list.is-grid.columns-1, .hrswp-block-posts-list.is-grid.columns-2, .hrswp-block-posts-list.is-grid.columns-3, .hrswp-block-posts-list.is-grid.columns-4, From 1004f2d9371bfa81adebf01316a7fd5c4917689f Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:43:53 -0700 Subject: [PATCH 06/12] :package: Update built files --- build/blocks/posts-list/block.json | 4 ++++ build/blocks/posts-list/index.php | 1 + build/index.asset.php | 2 +- build/index.js | 2 +- build/style-index.css | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build/blocks/posts-list/block.json b/build/blocks/posts-list/block.json index 5f0c5b7..d890289 100644 --- a/build/blocks/posts-list/block.json +++ b/build/blocks/posts-list/block.json @@ -89,6 +89,10 @@ "addLinkToFeaturedImage": { "type": "boolean", "default": false + }, + "offsetPostsNumber": { + "type": "integer", + "default": 0 } }, "supports": { diff --git a/build/blocks/posts-list/index.php b/build/blocks/posts-list/index.php index a2a0d5a..6adbdc6 100644 --- a/build/blocks/posts-list/index.php +++ b/build/blocks/posts-list/index.php @@ -68,6 +68,7 @@ public function render( $attributes ) { 'post_status' => 'publish', 'order' => $attributes['order'], 'orderby' => $attributes['orderBy'], + 'offset' => $attributes['offsetPostsNumber'], 'suppress_filters' => false, ); diff --git a/build/index.asset.php b/build/index.asset.php index 516016e..7b2e22f 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-server-side-render'), 'version' => '22d7a32a964f03e2a048'); + array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-server-side-render'), 'version' => '181f42b03927b9fb3810'); diff --git a/build/index.js b/build/index.js index 1af1a53..28fe4a1 100644 --- a/build/index.js +++ b/build/index.js @@ -10,7 +10,7 @@ panelHeadingContent:(0,E.__)("An accordion panel title"),level:2},innerBlocks:[{ /* translators: example text. */ content:(0,E.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}}]},{name:"hrswp/accordion-section",attributes:{ /* translators: example text. */ -panelHeadingContent:(0,E.__)("Another accordion panel title"),level:2},innerBlocks:[{name:"core/list-item",attributes:{content:(0,E.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The Cheshire Cat.")}}]}]},edit:e=>{const{clientId:t}=e,a=(0,w.useSelect)((e=>e(x.store).getBlocks(t).length>0),[t])?O:F;return(0,C.createElement)(a,{...e})},save:function(){return(0,C.createElement)("div",{...x.useBlockProps.save()},(0,C.createElement)(x.InnerBlocks.Content,null))}};var K=a(942),Y=a.n(K);const Q=window.wp.compose,X=e=>{if(!(0,f.isObject)(e)||Array.isArray(e))return e;const t=(0,f.pickBy)((0,f.mapValues)(e,X),f.identity);return(0,f.isEmpty)(t)?void 0:t},ee=X;function te(e){if(!e?.style?.typography?.fontFamily)return e;const t=(0,f.cloneDeep)(e),a=t.style.typography.fontFamily.split("|").pop();return delete t.style.typography.fontFamily,t.style=ee(t.style),{...t,fontFamily:a}}const ae=e=>{const{borderRadius:t,...a}=e,r=[t,a.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return r?{...a,style:{...a.style,border:{...a.style?.border,radius:`${r}px`}}}:a},re=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...(0,f.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},le=e=>re((0,f.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),ne={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},oe=[{attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},migrate:te,isEligible:({style:e})=>e?.typography?.fontFamily},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=n?.border?.radius,m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=Y()("wp-block-button__link",m.className,{"no-border-radius":0===n?.border?.radius}),d={borderRadius:u||void 0,...m.style},h=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:h})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:i,title:s,style:d,value:o,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:a,rel:r,text:l,title:n,url:o}=e,s=Y()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return(0,C.createElement)(x.RichText.Content,{tagName:"a",className:s,href:o,title:n,style:i,value:l,target:a,rel:r})},migrate:ae},{supports:{align:!0,alignWide:!1},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:(0,Q.compose)(ae,re),save({attributes:e}){const{backgroundColor:t,borderRadius:a,customBackgroundColor:r,customTextColor:l,customGradient:n,linkTarget:o,gradient:s,rel:i,text:c,textColor:u,title:m,url:p}=e,d=(0,x.getColorClassName)("color",u),h=!n&&(0,x.getColorClassName)("background-color",t),g=(0,x.__experimentalGetGradientClass)(s),b=Y()("wp-block-button__link",{"has-text-color":u||l,[d]:d,"has-background":t||r||n||s,[h]:h,"no-border-radius":0===a,[g]:g}),y={background:n||void 0,backgroundColor:h||n||s?void 0:r,color:d?void 0:l,borderRadius:a?a+"px":void 0};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:b,href:p,title:m,style:y,value:c,target:o,rel:i}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),ae(re({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:a,customTextColor:r,linkTarget:l,rel:n,text:o,textColor:s,title:i,url:c}=e,u=(0,x.getColorClassName)("color",s),m=(0,x.getColorClassName)("background-color",t),p=Y()("wp-block-button__link",{"has-text-color":s||r,[u]:u,"has-background":t||a,[m]:m}),d={backgroundColor:m?void 0:a,color:u?void 0:r};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:c,title:i,style:d,value:o,target:l,rel:n}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:le,save({attributes:e}){const{url:t,text:a,title:r,backgroundColor:l,textColor:n,customBackgroundColor:o,customTextColor:s}=e,i=(0,x.getColorClassName)("color",n),c=(0,x.getColorClassName)("background-color",l),u=Y()("wp-block-button__link",{"has-text-color":n||s,[i]:i,"has-background":l||o,[c]:c}),m={backgroundColor:c?void 0:o,color:i?void 0:s};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:t,title:r,style:m,value:a}))}},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e,s={backgroundColor:n,color:o};return(0,C.createElement)("div",{className:`align${l}`},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:r,style:s,value:a}))},migrate:le},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e;return(0,C.createElement)("div",{className:`align${l}`,style:{backgroundColor:n}},(0,C.createElement)(x.RichText.Content,{tagName:"a",href:t,title:r,style:{color:o},value:a}))},migrate:le}],se=window.wp.element,ie=window.wp.keycodes,ce=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),ue=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),me=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),pe="noreferrer noopener";function de({selectedWidth:e,setAttributes:t}){return(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Width settings")},(0,C.createElement)(B.ButtonGroup,{"aria-label":(0,E.__)("Button width")},[25,50,75,100].map((a=>(0,C.createElement)(B.Button,{key:a,isSmall:!0,variant:a===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=a)?void 0:r})}},a,"%")))))}const he=JSON.parse('{"apiVersion":2,"name":"hrswp/button","title":"Button","category":"design","parent":["hrswp/buttons"],"description":"Prompt visitors to take action.","keywords":["link"],"textdomain":"default","attributes":{"url":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"title":{"type":"string","source":"attribute","selector":"a","attribute":"title"},"text":{"type":"string","source":"html","selector":"a"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"align":true,"alignWide":false,"color":false,"typography":false,"reusable":false,"spacing":false,"__experimentalBorder":false,"__experimentalSelector":".wp-block-button__link"},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"},{"name":"text","label":"Text"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:ge}=he,be={icon:ce,example:{attributes:{className:"is-style-fill",text:(0,E.__)("Call to Action")}},edit:function(e){const{attributes:t,setAttributes:a,className:r,isSelected:l,onReplace:n,mergeBlocks:o}=e,{linkTarget:s,placeholder:i,rel:c,style:u,text:m,url:p,width:d}=t,h=(0,se.useCallback)((e=>{a({rel:e})}),[a]),[g]=(0,se.useState)(null),b=(0,x.__experimentalUseBorderProps)(t),y=(0,x.__experimentalUseColorProps)(t),v=(0,x.__experimentalGetSpacingClassesAndStyles)(t),_=(0,se.useRef)(),w=(0,se.useRef)(),f=(0,x.useBlockProps)({ref:_,onKeyDown:function(e){ie.isKeyboardEvent.primary(e,"k")?z(e):ie.isKeyboardEvent.primaryShift(e,"k")&&(A(),w.current?.focus())}}),[S,P]=(0,se.useState)(!1),T=!!p,N="_blank"===s;function z(e){e.preventDefault(),P(!0)}function A(){a({url:void 0,linkTarget:void 0,rel:void 0}),P(!1)}return(0,se.useEffect)((()=>{l||P(!1)}),[l]),(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{...f,className:Y()(f.className,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":f.style.fontSize})},(0,C.createElement)(x.RichText,{ref:w,"aria-label":(0,E.__)("Button text"),placeholder:i||(0,E.__)("Add text…"),value:m,onChange:e=>{a({text:e.replace(/<\/?a[^>]*>/g,"")})},allowedFormats:[],className:Y()(r,"wp-block-button__link",y.className,b.className,{"no-border-radius":0===u?.border?.radius}),style:{...b.style,...y.style,...v.style},onSplit:e=>(0,k.createBlock)("hrswp/button",{...t,text:e}),onReplace:n,onMerge:o,identifier:"text"})),(0,C.createElement)(x.BlockControls,{group:"block"},!T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:ue,title:(0,E.__)("Link"),shortcut:ie.displayShortcut.primary("k"),onClick:z}),T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:me,title:(0,E.__)("Unlink"),shortcut:ie.displayShortcut.primaryShift("k"),onClick:A,isActive:!0})),l&&(S||T)&&(0,C.createElement)(B.Popover,{position:"bottom center",onClose:()=>{P(!1),w.current?.focus()},anchor:g,focusOnMount:!!S&&"firstElement"},(0,C.createElement)(x.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:p,opensInNewTab:N},onChange:({url:e="",opensInNewTab:t})=>{a({url:e}),N!==t&&function(e){const t=e?"_blank":void 0;let r=c;t&&!c?r=pe:t||c!==pe||(r=void 0),a({linkTarget:t,rel:r})}(t)},onRemove:()=>{A(),w.current?.focus()},forceIsEditingLink:S})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(de,{selectedWidth:d,setAttributes:a})),(0,C.createElement)(x.InspectorControls,{group:"advanced"},(0,C.createElement)(B.TextControl,{label:(0,E.__)("Link rel"),value:c||"",onChange:h})))},save:function({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},deprecated:oe,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},ye=e=>{if(e.layout)return e;const{contentJustification:t,orientation:a,...r}=e;return(t||a)&&Object.assign(r,{layout:{type:"flex",...t&&{justifyContent:t},...a&&{orientation:a}}}),r},ve=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:ye,save:({attributes:{contentJustification:e,orientation:t}})=>(0,C.createElement)("div",{...x.useBlockProps.save({className:Y()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,C.createElement)(x.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,C.createElement)("div",null,(0,C.createElement)(x.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>ye({...e,align:void 0,contentJustification:e.align})}],_e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/buttons","title":"Buttons","category":"design","description":"Prompt visitors to take action with one or more buttons.","keywords":["link"],"textdomain":"default","attributes":{"supportsPosition":{"type":"boolean","default":false},"contentPosition":{"type":"string","default":"bottomRight"}},"supports":{"anchor":true,"align":["wide","full"],"__experimentalExposeControlsToChildren":true,"spacing":{"blockGap":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"__experimentalLayout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}}},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:we}=_e,ke={from:[{type:"block",blocks:["core/buttons"],transform:(e,t)=>(0,k.createBlock)(we,e,t.map((e=>(0,k.createBlock)("hrswp/button",e.attributes))))},{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>(0,k.createBlock)("hrswp/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelector("a"),l=r?.getAttribute("href");return(0,k.createBlock)("core/button",{text:a,url:l})}))),isMatch:e=>e.every((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelectorAll("a");return a.length<=30&&r.length<=1}))}]},fe=ke,Ee=[ge],Ce={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},xe={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Se=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"})),{name:Be}=((0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),_e),Pe={icon:Se,example:{innerBlocks:[{name:"hrswp/button",attributes:{text:(0,E.__)("Find out more")}},{name:"hrswp/button",attributes:{text:(0,E.__)("Contact us")}}]},deprecated:ve,transforms:fe,edit:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},setAttributes:n,className:o}=e,{orientation:s,justifyContent:i}=a,c=Y()(o,{[`is-content-justification-${i}`]:i,[`is-${s}`]:s,"has-position-support":l,[null!==(t=Ce[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),u=(0,x.useBlockProps)({className:c}),m=(0,w.useSelect)((e=>{const t=e(x.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[ge]}),[]),p=(0,x.useInnerBlocksProps)(u,{allowedBlocks:Ee,template:[[ge,{className:m&&`is-style-${m}`}]],__experimentalLayout:a,templateInsertUpdatesSelection:!0});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.BlockControls,{group:"block"},(0,C.createElement)(x.__experimentalBlockAlignmentMatrixControl,{label:(0,E.__)("Change content position"),value:r,onChange:e=>n({contentPosition:e})})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Positioning")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Fixed position"),checked:l,onChange:()=>n({supportsPosition:!l})}))),(0,C.createElement)("div",{...p}))},save:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},className:n}=e,{orientation:o,justifyContent:s}=a,i=Y()(n,{[`is-content-justification-${s}`]:s,[`is-${o}`]:o,"has-position-support":l,[null!==(t=xe[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),c=x.useBlockProps.save({className:i}),u=x.useInnerBlocksProps.save(c);return(0,C.createElement)("div",{...u})}},Te=window.wp.primitives,Ne=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})),ze=(0,C.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(Te.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ae=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),Ve=window.wp.notices,He=window.wp.coreData,Ie=window.wp.date,De=e=>{const{terms:t,taxonomySlug:a,post:r,prefix:l,instanceId:n}=e;let o;o="category"===a||"post_tag"===a?"category"===a?"categories":"tags":a;const s=r[o],i=Array.isArray(s)&&s.length,{createWarningNotice:c,removeNotice:u}=(0,w.useDispatch)(Ve.store);let m;const p=e=>{e.preventDefault(),u(m),m=`block-library/hrswp-blocks/posts-list/redirection-prevented/${n}`,c((0,E.__)("Links are disabled in the editor."),{id:m,type:"snackbar"})};if(!i)return null;const d=(0,f.filter)(t[a],(e=>(0,f.includes)(s,e.id)));return(0,C.createElement)("p",{className:`hrswp-block-posts-list__${a}-list`},(0,C.createElement)("span",null,l),d.map(((e,t)=>{const a=t>0?", ":"";return(0,C.createElement)(se.Fragment,{key:t},a,(0,C.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener",onClick:p},e.name))})))},Me=e=>{const{displayPostCategory:t,displayPostDate:a,displayPostTag:r,displayPostTaxonomy:l,post:n,taxonomies:o,termLists:s,instanceId:i}=e,c=(0,Ie.getSettings)().formats.date,u=t||r||l;return u&&o&&o.push(o.splice(o.findIndex((e=>"post_tag"===e.slug)),1)[0]),(0,C.createElement)("div",{className:"hrswp-block-posts-list__meta"},u&&o.map((e=>{let a;if("category"===e.slug){if(!t)return null;a=(0,E.__)("More on: ")}else if("post_tag"===e.slug){if(!r)return null;a="Tagged: "}else{if(!l)return null;a=`${e.labels.singular_name}: `}return(0,C.createElement)(De,{key:e.slug,post:n,terms:s,taxonomySlug:e.slug,prefix:a,instanceId:i})})),a&&n.date_gmt&&(0,C.createElement)("p",{className:"hrswp-block-posts-list__post-date"},(0,E.__)("Published on "),(0,C.createElement)("time",{dateTime:(0,Ie.format)("c",n.date_gmt)},(0,Ie.dateI18n)(c,n.date_gmt))))},Re={per_page:-1};function Le(e,t){return e?e[t]&&e[t].length>0?e[t].map((e=>e.id)):[]:null}const Oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/posts-list","title":"Posts List","category":"widgets","description":"Display a list of posts.","keywords":["posts","latest posts"],"textdomain":"default","attributes":{"selectedTermLists":{"type":"object"},"postsToShow":{"type":"number","default":10},"displayPostContent":{"type":"boolean","default":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":25},"displayPostDate":{"type":"boolean","default":false},"displayPostCategory":{"type":"boolean","default":false},"displayPostTag":{"type":"boolean","default":false},"displayPostTaxonomy":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"featuredImageAlign":{"type":"string","enum":["left","center","right"]},"featuredImageSizeSlug":{"type":"string","default":"thumbnail"},"featuredImageSizeWidth":{"type":"number","default":null},"featuredImageSizeHeight":{"type":"number","default":null},"addLinkToFeaturedImage":{"type":"boolean","default":false}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),Fe=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,C.createElement)(B.Path,{d:"M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z"})),{name:Ge}=Oe,$e={icon:Fe,example:{},edit:function e({attributes:t,setAttributes:a}){const r=(0,Q.useInstanceId)(e),{addLinkToFeaturedImage:l,displayFeaturedImage:n,displayPostContentRadio:o,displayPostContent:s,displayPostDate:i,displayPostCategory:c,displayPostTag:u,displayPostTaxonomy:m,postLayout:p,columns:d,order:h,orderBy:g,selectedTermLists:b,postsToShow:y,excerptLength:v,featuredImageAlign:_,featuredImageSizeSlug:k,featuredImageSizeWidth:S,featuredImageSizeHeight:P}=t,{imageSizes:T,postsList:N,defaultImageWidth:z,defaultImageHeight:A,termLists:V,taxonomies:H}=(0,w.useSelect)((e=>{const{getEntityRecords:t,getTaxonomies:a}=e(He.store),r=e(x.store).getSettings(),l=(0,f.pickBy)({order:h,orderby:g,per_page:y,_embed:"wp:featuredmedia"},(e=>!(0,f.isUndefined)(e)));(0,f.isUndefined)(b)||Object.entries(b).forEach((([e,t])=>{l[e]=t.map((e=>e.id))}));const n=a(Re),o=(0,f.filter)(n,(e=>(0,f.includes)(e.types,"post"))),s={};return o.forEach((({slug:e})=>{Object.defineProperty(s,e,{value:t("taxonomy",e,Re)})})),{defaultImageWidth:(0,f.get)(r.imageDimensions,[k,"width"],0),defaultImageHeight:(0,f.get)(r.imageDimensions,[k,"height"],0),imageSizes:r.imageSizes,postsList:t("postType","post",l),taxonomies:o,termLists:s}}),[k,y,h,g,b]),I=T.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),{createWarningNotice:D,removeNotice:M}=(0,w.useDispatch)(Ve.store);let R;const L=e=>{e.preventDefault(),M(R),R=`block-library/hrswp-blocks/posts-list/redirection-prevented/${r}`,D((0,E.__)("Links are disabled in the editor."),{id:R,type:"snackbar"})},O=!!N?.length,F=(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post content settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Post content"),checked:s,onChange:e=>a({displayPostContent:e})}),s&&(0,C.createElement)(B.RadioControl,{label:(0,E.__)("Show:"),selected:o,options:[{label:(0,E.__)("Excerpt"),value:"excerpt"},{label:(0,E.__)("Full post"),value:"full_post"}],onChange:e=>a({displayPostContentRadio:e})}),s&&"excerpt"===o&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Max number of words in excerpt"),value:v,onChange:e=>a({excerptLength:e}),min:10,max:100})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post meta settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post date"),checked:i,onChange:e=>a({displayPostDate:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post category"),checked:c,onChange:e=>a({displayPostCategory:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post tag"),checked:u,onChange:e=>a({displayPostTag:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post taxonomy"),checked:m,onChange:e=>a({displayPostTaxonomy:e})})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Featured image settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display featured image"),checked:n,onChange:e=>a({displayFeaturedImage:e})}),n&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),a(t)},slug:k,width:S,height:P,imageWidth:z,imageHeight:A,imageSizes:I,imageSizeOptions:I,onChangeImage:e=>a({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,C.createElement)(B.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,C.createElement)(B.BaseControl.VisualLabel,null,(0,E.__)("Image alignment")),(0,C.createElement)(x.BlockAlignmentToolbar,{value:_,onChange:e=>a({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Add link to featured image"),checked:l,onChange:e=>a({addLinkToFeaturedImage:e})}))),(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter",title:(0,E.__)("Filtering"),initialOpen:!1},H.map((e=>(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter--body",key:e.slug,title:e.name,initialOpen:!1},(0,C.createElement)("ul",{className:"edit__checklist"},V[e.slug]&&V[e.slug].map((t=>(0,C.createElement)("li",{key:t.id,className:"components-checkbox-control__label"},(0,C.createElement)(B.CheckboxControl,{label:t.name,checked:(0,f.includes)(Le(b,e.rest_base),t.id),onChange:()=>{((e,t)=>{var r;const l=null!=b?b:{},n=null!==(r=l[e])&&void 0!==r?r:l[e]=[],o=(0,f.includes)(Le(l,e),t.id)?(0,f.remove)(n,(e=>e.id!==t.id)):[...n,t];l[e]=o,a({selectedTermLists:l})})(e.rest_base,t)}}))))))))),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Order and number"),initialOpen:!1},(0,C.createElement)(B.QueryControls,{order:h,orderBy:g,numberOfItems:y,onOrderChange:e=>a({order:e}),onOrderByChange:e=>a({orderBy:e}),onNumberOfItemsChange:e=>a({postsToShow:e})}),"grid"===p&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Columns"),value:d,onChange:e=>a({columns:e}),min:2,max:O?Math.min(6,N.length):6,required:!0}))),G=(0,x.useBlockProps)({className:Y()({"hrswp-block-posts-list":!0,"is-grid":"grid"===p,"has-feature-image":n,"has-date":i,"has-full-content":s&&"full_post"===o,"has-excerpt":s&&"excerpt"===o,[`columns-${d}`]:"grid"===p})});if(!O)return(0,C.createElement)("div",{...G},F,(0,C.createElement)(B.Placeholder,{icon:Ne,label:(0,E.__)("Posts")},Array.isArray(N)?(0,E.__)("No posts found."):(0,C.createElement)(B.Spinner,null)));const $=N.length>y?N.slice(0,y):N,j=[{icon:ze,title:(0,E.__)("List view"),onClick:()=>a({postLayout:"list"}),isActive:"list"===p},{icon:Ae,title:(0,E.__)("Grid view"),onClick:()=>a({postLayout:"grid"}),isActive:"grid"===p}];return(0,C.createElement)(C.Fragment,null,F,(0,C.createElement)(x.BlockControls,null,(0,C.createElement)(B.ToolbarGroup,{controls:j})),(0,C.createElement)("ul",{...G},$.map(((e,t)=>{const a=(0,f.invoke)(e,["title","rendered","trim"]);let p=e.content.rendered;const d=document.createElement("div");d.innerHTML=p,p=d.textContent||d.innerText||"";const{url:h,alt:g}=function(e,t){var a;const r=(0,f.get)(e,["_embedded","wp:featuredmedia","0"]);return{url:null!==(a=r?.media_details?.sizes?.[t]?.source_url)&&void 0!==a?a:r?.source_url,alt:r?.alt_text}}(e,k),b=Y()({"hrswp-block-posts-list__featured-image":!0,[`align${_}`]:!!_}),y=n&&h,w=y&&(0,C.createElement)("img",{src:h,alt:g,style:{maxWidth:S,maxHeight:P}}),x=i||c||u||m,B=v{const{getBlockOrder:a,getBlockRootClientId:r}=t(x.store),l=r(e);return{hasChildBlocks:a(e).length>0,searchSectionIds:a(l)}}),[e]),r=(0,x.useBlockProps)(),l=t.length,n=t.indexOf(e)+1,o=(0,E.sprintf)(/* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ /* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ +panelHeadingContent:(0,E.__)("Another accordion panel title"),level:2},innerBlocks:[{name:"core/list-item",attributes:{content:(0,E.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The Cheshire Cat.")}}]}]},edit:e=>{const{clientId:t}=e,a=(0,w.useSelect)((e=>e(x.store).getBlocks(t).length>0),[t])?O:F;return(0,C.createElement)(a,{...e})},save:function(){return(0,C.createElement)("div",{...x.useBlockProps.save()},(0,C.createElement)(x.InnerBlocks.Content,null))}};var K=a(942),Y=a.n(K);const Q=window.wp.compose,X=e=>{if(!(0,f.isObject)(e)||Array.isArray(e))return e;const t=(0,f.pickBy)((0,f.mapValues)(e,X),f.identity);return(0,f.isEmpty)(t)?void 0:t},ee=X;function te(e){if(!e?.style?.typography?.fontFamily)return e;const t=(0,f.cloneDeep)(e),a=t.style.typography.fontFamily.split("|").pop();return delete t.style.typography.fontFamily,t.style=ee(t.style),{...t,fontFamily:a}}const ae=e=>{const{borderRadius:t,...a}=e,r=[t,a.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return r?{...a,style:{...a.style,border:{...a.style?.border,radius:`${r}px`}}}:a},re=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...(0,f.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},le=e=>re((0,f.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),ne={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},oe=[{attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},migrate:te,isEligible:({style:e})=>e?.typography?.fontFamily},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=n?.border?.radius,m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=Y()("wp-block-button__link",m.className,{"no-border-radius":0===n?.border?.radius}),d={borderRadius:u||void 0,...m.style},h=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:h})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:i,title:s,style:d,value:o,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:a,rel:r,text:l,title:n,url:o}=e,s=Y()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return(0,C.createElement)(x.RichText.Content,{tagName:"a",className:s,href:o,title:n,style:i,value:l,target:a,rel:r})},migrate:ae},{supports:{align:!0,alignWide:!1},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:(0,Q.compose)(ae,re),save({attributes:e}){const{backgroundColor:t,borderRadius:a,customBackgroundColor:r,customTextColor:l,customGradient:n,linkTarget:o,gradient:s,rel:i,text:c,textColor:u,title:m,url:p}=e,d=(0,x.getColorClassName)("color",u),h=!n&&(0,x.getColorClassName)("background-color",t),g=(0,x.__experimentalGetGradientClass)(s),b=Y()("wp-block-button__link",{"has-text-color":u||l,[d]:d,"has-background":t||r||n||s,[h]:h,"no-border-radius":0===a,[g]:g}),y={background:n||void 0,backgroundColor:h||n||s?void 0:r,color:d?void 0:l,borderRadius:a?a+"px":void 0};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:b,href:p,title:m,style:y,value:c,target:o,rel:i}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),ae(re({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:a,customTextColor:r,linkTarget:l,rel:n,text:o,textColor:s,title:i,url:c}=e,u=(0,x.getColorClassName)("color",s),m=(0,x.getColorClassName)("background-color",t),p=Y()("wp-block-button__link",{"has-text-color":s||r,[u]:u,"has-background":t||a,[m]:m}),d={backgroundColor:m?void 0:a,color:u?void 0:r};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:c,title:i,style:d,value:o,target:l,rel:n}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:le,save({attributes:e}){const{url:t,text:a,title:r,backgroundColor:l,textColor:n,customBackgroundColor:o,customTextColor:s}=e,i=(0,x.getColorClassName)("color",n),c=(0,x.getColorClassName)("background-color",l),u=Y()("wp-block-button__link",{"has-text-color":n||s,[i]:i,"has-background":l||o,[c]:c}),m={backgroundColor:c?void 0:o,color:i?void 0:s};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:t,title:r,style:m,value:a}))}},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e,s={backgroundColor:n,color:o};return(0,C.createElement)("div",{className:`align${l}`},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:r,style:s,value:a}))},migrate:le},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e;return(0,C.createElement)("div",{className:`align${l}`,style:{backgroundColor:n}},(0,C.createElement)(x.RichText.Content,{tagName:"a",href:t,title:r,style:{color:o},value:a}))},migrate:le}],se=window.wp.element,ie=window.wp.keycodes,ce=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),ue=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),me=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),pe="noreferrer noopener";function de({selectedWidth:e,setAttributes:t}){return(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Width settings")},(0,C.createElement)(B.ButtonGroup,{"aria-label":(0,E.__)("Button width")},[25,50,75,100].map((a=>(0,C.createElement)(B.Button,{key:a,isSmall:!0,variant:a===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=a)?void 0:r})}},a,"%")))))}const he=JSON.parse('{"apiVersion":2,"name":"hrswp/button","title":"Button","category":"design","parent":["hrswp/buttons"],"description":"Prompt visitors to take action.","keywords":["link"],"textdomain":"default","attributes":{"url":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"title":{"type":"string","source":"attribute","selector":"a","attribute":"title"},"text":{"type":"string","source":"html","selector":"a"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"align":true,"alignWide":false,"color":false,"typography":false,"reusable":false,"spacing":false,"__experimentalBorder":false,"__experimentalSelector":".wp-block-button__link"},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"},{"name":"text","label":"Text"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:ge}=he,be={icon:ce,example:{attributes:{className:"is-style-fill",text:(0,E.__)("Call to Action")}},edit:function(e){const{attributes:t,setAttributes:a,className:r,isSelected:l,onReplace:n,mergeBlocks:o}=e,{linkTarget:s,placeholder:i,rel:c,style:u,text:m,url:p,width:d}=t,h=(0,se.useCallback)((e=>{a({rel:e})}),[a]),[g]=(0,se.useState)(null),b=(0,x.__experimentalUseBorderProps)(t),y=(0,x.__experimentalUseColorProps)(t),v=(0,x.__experimentalGetSpacingClassesAndStyles)(t),_=(0,se.useRef)(),w=(0,se.useRef)(),f=(0,x.useBlockProps)({ref:_,onKeyDown:function(e){ie.isKeyboardEvent.primary(e,"k")?z(e):ie.isKeyboardEvent.primaryShift(e,"k")&&(A(),w.current?.focus())}}),[S,P]=(0,se.useState)(!1),T=!!p,N="_blank"===s;function z(e){e.preventDefault(),P(!0)}function A(){a({url:void 0,linkTarget:void 0,rel:void 0}),P(!1)}return(0,se.useEffect)((()=>{l||P(!1)}),[l]),(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{...f,className:Y()(f.className,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":f.style.fontSize})},(0,C.createElement)(x.RichText,{ref:w,"aria-label":(0,E.__)("Button text"),placeholder:i||(0,E.__)("Add text…"),value:m,onChange:e=>{a({text:e.replace(/<\/?a[^>]*>/g,"")})},allowedFormats:[],className:Y()(r,"wp-block-button__link",y.className,b.className,{"no-border-radius":0===u?.border?.radius}),style:{...b.style,...y.style,...v.style},onSplit:e=>(0,k.createBlock)("hrswp/button",{...t,text:e}),onReplace:n,onMerge:o,identifier:"text"})),(0,C.createElement)(x.BlockControls,{group:"block"},!T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:ue,title:(0,E.__)("Link"),shortcut:ie.displayShortcut.primary("k"),onClick:z}),T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:me,title:(0,E.__)("Unlink"),shortcut:ie.displayShortcut.primaryShift("k"),onClick:A,isActive:!0})),l&&(S||T)&&(0,C.createElement)(B.Popover,{position:"bottom center",onClose:()=>{P(!1),w.current?.focus()},anchor:g,focusOnMount:!!S&&"firstElement"},(0,C.createElement)(x.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:p,opensInNewTab:N},onChange:({url:e="",opensInNewTab:t})=>{a({url:e}),N!==t&&function(e){const t=e?"_blank":void 0;let r=c;t&&!c?r=pe:t||c!==pe||(r=void 0),a({linkTarget:t,rel:r})}(t)},onRemove:()=>{A(),w.current?.focus()},forceIsEditingLink:S})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(de,{selectedWidth:d,setAttributes:a})),(0,C.createElement)(x.InspectorControls,{group:"advanced"},(0,C.createElement)(B.TextControl,{label:(0,E.__)("Link rel"),value:c||"",onChange:h})))},save:function({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},deprecated:oe,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},ye=e=>{if(e.layout)return e;const{contentJustification:t,orientation:a,...r}=e;return(t||a)&&Object.assign(r,{layout:{type:"flex",...t&&{justifyContent:t},...a&&{orientation:a}}}),r},ve=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:ye,save:({attributes:{contentJustification:e,orientation:t}})=>(0,C.createElement)("div",{...x.useBlockProps.save({className:Y()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,C.createElement)(x.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,C.createElement)("div",null,(0,C.createElement)(x.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>ye({...e,align:void 0,contentJustification:e.align})}],_e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/buttons","title":"Buttons","category":"design","description":"Prompt visitors to take action with one or more buttons.","keywords":["link"],"textdomain":"default","attributes":{"supportsPosition":{"type":"boolean","default":false},"contentPosition":{"type":"string","default":"bottomRight"}},"supports":{"anchor":true,"align":["wide","full"],"__experimentalExposeControlsToChildren":true,"spacing":{"blockGap":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"__experimentalLayout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}}},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:we}=_e,ke={from:[{type:"block",blocks:["core/buttons"],transform:(e,t)=>(0,k.createBlock)(we,e,t.map((e=>(0,k.createBlock)("hrswp/button",e.attributes))))},{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>(0,k.createBlock)("hrswp/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelector("a"),l=r?.getAttribute("href");return(0,k.createBlock)("core/button",{text:a,url:l})}))),isMatch:e=>e.every((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelectorAll("a");return a.length<=30&&r.length<=1}))}]},fe=ke,Ee=[ge],Ce={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},xe={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Se=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"})),{name:Be}=((0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),_e),Pe={icon:Se,example:{innerBlocks:[{name:"hrswp/button",attributes:{text:(0,E.__)("Find out more")}},{name:"hrswp/button",attributes:{text:(0,E.__)("Contact us")}}]},deprecated:ve,transforms:fe,edit:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},setAttributes:n,className:o}=e,{orientation:s,justifyContent:i}=a,c=Y()(o,{[`is-content-justification-${i}`]:i,[`is-${s}`]:s,"has-position-support":l,[null!==(t=Ce[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),u=(0,x.useBlockProps)({className:c}),m=(0,w.useSelect)((e=>{const t=e(x.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[ge]}),[]),p=(0,x.useInnerBlocksProps)(u,{allowedBlocks:Ee,template:[[ge,{className:m&&`is-style-${m}`}]],__experimentalLayout:a,templateInsertUpdatesSelection:!0});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.BlockControls,{group:"block"},(0,C.createElement)(x.__experimentalBlockAlignmentMatrixControl,{label:(0,E.__)("Change content position"),value:r,onChange:e=>n({contentPosition:e})})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Positioning")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Fixed position"),checked:l,onChange:()=>n({supportsPosition:!l})}))),(0,C.createElement)("div",{...p}))},save:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},className:n}=e,{orientation:o,justifyContent:s}=a,i=Y()(n,{[`is-content-justification-${s}`]:s,[`is-${o}`]:o,"has-position-support":l,[null!==(t=xe[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),c=x.useBlockProps.save({className:i}),u=x.useInnerBlocksProps.save(c);return(0,C.createElement)("div",{...u})}},Te=window.wp.primitives,Ne=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})),ze=(0,C.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(Te.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ae=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),Ve=window.wp.notices,He=window.wp.coreData,Ie=window.wp.date,De=e=>{const{terms:t,taxonomySlug:a,post:r,prefix:l,instanceId:n}=e;let o;o="category"===a||"post_tag"===a?"category"===a?"categories":"tags":a;const s=r[o],i=Array.isArray(s)&&s.length,{createWarningNotice:c,removeNotice:u}=(0,w.useDispatch)(Ve.store);let m;const p=e=>{e.preventDefault(),u(m),m=`block-library/hrswp-blocks/posts-list/redirection-prevented/${n}`,c((0,E.__)("Links are disabled in the editor."),{id:m,type:"snackbar"})};if(!i)return null;const d=(0,f.filter)(t[a],(e=>(0,f.includes)(s,e.id)));return(0,C.createElement)("p",{className:`hrswp-block-posts-list__${a}-list`},(0,C.createElement)("span",null,l),d.map(((e,t)=>{const a=t>0?", ":"";return(0,C.createElement)(se.Fragment,{key:t},a,(0,C.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener",onClick:p},e.name))})))},Me=e=>{const{displayPostCategory:t,displayPostDate:a,displayPostTag:r,displayPostTaxonomy:l,post:n,taxonomies:o,termLists:s,instanceId:i}=e,c=(0,Ie.getSettings)().formats.date,u=t||r||l;return u&&o&&o.push(o.splice(o.findIndex((e=>"post_tag"===e.slug)),1)[0]),(0,C.createElement)("div",{className:"hrswp-block-posts-list__meta"},u&&o.map((e=>{let a;if("category"===e.slug){if(!t)return null;a=(0,E.__)("More on: ")}else if("post_tag"===e.slug){if(!r)return null;a="Tagged: "}else{if(!l)return null;a=`${e.labels.singular_name}: `}return(0,C.createElement)(De,{key:e.slug,post:n,terms:s,taxonomySlug:e.slug,prefix:a,instanceId:i})})),a&&n.date_gmt&&(0,C.createElement)("p",{className:"hrswp-block-posts-list__post-date"},(0,E.__)("Published on "),(0,C.createElement)("time",{dateTime:(0,Ie.format)("c",n.date_gmt)},(0,Ie.dateI18n)(c,n.date_gmt))))},Re={per_page:-1};function Le(e,t){return e?e[t]&&e[t].length>0?e[t].map((e=>e.id)):[]:null}const Oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/posts-list","title":"Posts List","category":"widgets","description":"Display a list of posts.","keywords":["posts","latest posts"],"textdomain":"default","attributes":{"selectedTermLists":{"type":"object"},"postsToShow":{"type":"number","default":10},"displayPostContent":{"type":"boolean","default":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":25},"displayPostDate":{"type":"boolean","default":false},"displayPostCategory":{"type":"boolean","default":false},"displayPostTag":{"type":"boolean","default":false},"displayPostTaxonomy":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"featuredImageAlign":{"type":"string","enum":["left","center","right"]},"featuredImageSizeSlug":{"type":"string","default":"thumbnail"},"featuredImageSizeWidth":{"type":"number","default":null},"featuredImageSizeHeight":{"type":"number","default":null},"addLinkToFeaturedImage":{"type":"boolean","default":false},"offsetPostsNumber":{"type":"integer","default":0}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),Fe=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,C.createElement)(B.Path,{d:"M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z"})),{name:Ge}=Oe,$e={icon:Fe,example:{},edit:function e({attributes:t,setAttributes:a}){const r=(0,Q.useInstanceId)(e),{addLinkToFeaturedImage:l,displayFeaturedImage:n,displayPostContentRadio:o,displayPostContent:s,displayPostDate:i,displayPostCategory:c,displayPostTag:u,displayPostTaxonomy:m,postLayout:p,columns:d,offsetPostsNumber:h,order:g,orderBy:b,selectedTermLists:y,postsToShow:v,excerptLength:_,featuredImageAlign:k,featuredImageSizeSlug:S,featuredImageSizeWidth:P,featuredImageSizeHeight:T}=t,{imageSizes:N,postsList:z,defaultImageWidth:A,defaultImageHeight:V,termLists:H,taxonomies:I}=(0,w.useSelect)((e=>{const{getEntityRecords:t,getTaxonomies:a}=e(He.store),r=e(x.store).getSettings(),l=(0,f.pickBy)({order:g,orderby:b,per_page:v,offset:h,_embed:"wp:featuredmedia"},(e=>!(0,f.isUndefined)(e)));(0,f.isUndefined)(y)||Object.entries(y).forEach((([e,t])=>{l[e]=t.map((e=>e.id))}));const n=a(Re),o=(0,f.filter)(n,(e=>(0,f.includes)(e.types,"post"))),s={};return o.forEach((({slug:e})=>{Object.defineProperty(s,e,{value:t("taxonomy",e,Re)})})),{defaultImageWidth:(0,f.get)(r.imageDimensions,[S,"width"],0),defaultImageHeight:(0,f.get)(r.imageDimensions,[S,"height"],0),imageSizes:r.imageSizes,postsList:t("postType","post",l),taxonomies:o,termLists:s}}),[S,v,g,b,h,y]),D=N.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),{createWarningNotice:M,removeNotice:R}=(0,w.useDispatch)(Ve.store);let L;const O=e=>{e.preventDefault(),R(L),L=`block-library/hrswp-blocks/posts-list/redirection-prevented/${r}`,M((0,E.__)("Links are disabled in the editor."),{id:L,type:"snackbar"})},F=!!z?.length,G=(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post content settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Post content"),checked:s,onChange:e=>a({displayPostContent:e})}),s&&(0,C.createElement)(B.RadioControl,{label:(0,E.__)("Show:"),selected:o,options:[{label:(0,E.__)("Excerpt"),value:"excerpt"},{label:(0,E.__)("Full post"),value:"full_post"}],onChange:e=>a({displayPostContentRadio:e})}),s&&"excerpt"===o&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Max number of words in excerpt"),value:_,onChange:e=>a({excerptLength:e}),min:10,max:100})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post meta settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post date"),checked:i,onChange:e=>a({displayPostDate:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post category"),checked:c,onChange:e=>a({displayPostCategory:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post tag"),checked:u,onChange:e=>a({displayPostTag:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post taxonomy"),checked:m,onChange:e=>a({displayPostTaxonomy:e})})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Featured image settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display featured image"),checked:n,onChange:e=>a({displayFeaturedImage:e})}),n&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),a(t)},slug:S,width:P,height:T,imageWidth:A,imageHeight:V,imageSizes:D,imageSizeOptions:D,onChangeImage:e=>a({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,C.createElement)(B.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,C.createElement)(B.BaseControl.VisualLabel,null,(0,E.__)("Image alignment")),(0,C.createElement)(x.BlockAlignmentToolbar,{value:k,onChange:e=>a({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Add link to featured image"),checked:l,onChange:e=>a({addLinkToFeaturedImage:e})}))),(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter",title:(0,E.__)("Filtering"),initialOpen:!1},I.map((e=>(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter--body",key:e.slug,title:e.name,initialOpen:!1},(0,C.createElement)("ul",{className:"edit__checklist"},H[e.slug]&&H[e.slug].map((t=>(0,C.createElement)("li",{key:t.id,className:"components-checkbox-control__label"},(0,C.createElement)(B.CheckboxControl,{label:t.name,checked:(0,f.includes)(Le(y,e.rest_base),t.id),onChange:()=>{((e,t)=>{var r;const l=null!=y?y:{},n=null!==(r=l[e])&&void 0!==r?r:l[e]=[],o=(0,f.includes)(Le(l,e),t.id)?(0,f.remove)(n,(e=>e.id!==t.id)):[...n,t];l[e]=o,a({selectedTermLists:l})})(e.rest_base,t)}}))))))))),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Order and number"),initialOpen:!1},(0,C.createElement)(B.QueryControls,{order:g,orderBy:b,numberOfItems:v,onOrderChange:e=>a({order:e}),onOrderByChange:e=>a({orderBy:e}),onNumberOfItemsChange:e=>a({postsToShow:e})}),(0,C.createElement)(B.RangeControl,{label:(0,E.__)("The number of items to offset."),value:h,onChange:e=>a({offsetPostsNumber:e}),min:0,max:100}),"grid"===p&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Columns"),value:d,onChange:e=>a({columns:e}),min:1,max:F?Math.min(6,z.length):6,required:!0}))),$=(0,x.useBlockProps)({className:Y()({"hrswp-block-posts-list":!0,"is-grid":"grid"===p,"has-feature-image":n,"has-date":i,"has-full-content":s&&"full_post"===o,"has-excerpt":s&&"excerpt"===o,[`columns-${d}`]:"grid"===p})});if(!F)return(0,C.createElement)("div",{...$},G,(0,C.createElement)(B.Placeholder,{icon:Ne,label:(0,E.__)("Posts")},Array.isArray(z)?(0,E.__)("No posts found."):(0,C.createElement)(B.Spinner,null)));const j=z.length>v?z.slice(0,v):z,J=[{icon:ze,title:(0,E.__)("List view"),onClick:()=>a({postLayout:"list"}),isActive:"list"===p},{icon:Ae,title:(0,E.__)("Grid view"),onClick:()=>a({postLayout:"grid"}),isActive:"grid"===p}];return(0,C.createElement)(C.Fragment,null,G,(0,C.createElement)(x.BlockControls,null,(0,C.createElement)(B.ToolbarGroup,{controls:J})),(0,C.createElement)("ul",{...$},j.map(((e,t)=>{const a=(0,f.invoke)(e,["title","rendered","trim"]);let p=e.content.rendered;const d=document.createElement("div");d.innerHTML=p,p=d.textContent||d.innerText||"";const{url:h,alt:g}=function(e,t){var a;const r=(0,f.get)(e,["_embedded","wp:featuredmedia","0"]);return{url:null!==(a=r?.media_details?.sizes?.[t]?.source_url)&&void 0!==a?a:r?.source_url,alt:r?.alt_text}}(e,S),b=Y()({"hrswp-block-posts-list__featured-image":!0,[`align${k}`]:!!k}),y=n&&h,v=y&&(0,C.createElement)("img",{src:h,alt:g,style:{maxWidth:P,maxHeight:T}}),w=i||c||u||m,x=_{const{getBlockOrder:a,getBlockRootClientId:r}=t(x.store),l=r(e);return{hasChildBlocks:a(e).length>0,searchSectionIds:a(l)}}),[e]),r=(0,x.useBlockProps)(),l=t.length,n=t.indexOf(e)+1,o=(0,E.sprintf)(/* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ /* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ (0,E.__)("%1$s (%2$s of %3$s)"),r["aria-label"],n,l),s=(0,x.useInnerBlocksProps)({...r,"aria-label":o},{templateLock:!1,renderAppender:a?void 0:x.InnerBlocks.ButtonBlockAppender});return(0,C.createElement)("div",{...s})},save:function(){const e=x.useBlockProps.save(),t=x.useInnerBlocksProps.save(e);return(0,C.createElement)("div",{...t})}},Ue=[We],Ze=[[We]],Ke=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/filter","title":"Filter","category":"widgets","description":"Search and filter a section of content by full text.","keywords":["filter","search"],"textdomain":"default","attributes":{"retainHeadings":{"type":"boolean","default":false}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","viewScript":"hrswp-blocks-filter-view","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:Ye}=Ke,Qe={icon:"filter",example:{innerBlocks:[{name:"hrswp/filter-section",innerBlocks:[{name:"core/list",attributes:{values:(0,E.__)("
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • ")}}]}]},edit:function({attributes:e,setAttributes:t,className:a}){const{retainHeadings:r}=e,l=Y()(a,{"has-retain-headings":r}),n=(0,x.useBlockProps)({className:l}),o=(0,x.useInnerBlocksProps)(n,{allowedBlocks:Ue,template:Ze,templateLock:"all",orientation:"vertical",renderAppender:!1});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Filter Settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Retain Headings"),checked:!!r,onChange:()=>t({retainHeadings:!r}),help:r?(0,E.__)("Headings not matching search term will not be hidden."):(0,E.__)("Toggle to always show headings.")}))),(0,C.createElement)("div",{...o}))},save:function({attributes:e,className:t}){const{retainHeadings:a}=e,r=Y()(t,{"has-retain-headings":a}),l=x.useBlockProps.save({className:r}),n=x.useInnerBlocksProps.save(l);return(0,C.createElement)("div",{...n})}},Xe=JSON.parse('{"apiVersion":2,"name":"hrswp/job-classifications","title":"HRS Job Classifications","category":"hrswp-blocks-external","description":"Display WSU job classification data.","textdomain":"default","attributes":{"displayAsList":{"type":"boolean","default":false},"columns":{"type":"number","default":3},"salaryDataUrl":{"type":"string","default":""},"queryTable":{"type":"string"}},"supports":{"align":true,"html":false},"styles":[{"name":"default","label":"Default Table","isDefault":true},{"name":"stripes","label":"Striped Table"}]}'),et=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,C.createElement)(B.Path,{d:"M13.2 10L11 13l-1-1.4L9 13l-2.2-3C3 11 3 13 3 16.9c0 0 3 1.1 6.4 1.1h1.2c3.4-.1 6.4-1.1 6.4-1.1 0-3.9 0-5.9-3.8-6.9zm-3.2.7L8.4 10l1.6 1.6 1.6-1.6-1.6.7zM10 2.1c-1.9 0-3 1.8-2.7 3.8.3 2 1.3 3.4 2.7 3.4s2.4-1.4 2.7-3.4c.3-2.1-.8-3.8-2.7-3.8z"})),{name:tt}=Xe,at={icon:et,example:{},edit:function({attributes:{displayAsList:e,columns:t,salaryDataUrl:a,queryTable:r},setAttributes:l}){const{jobClassificationData:n,isRequesting:o,tables:s}=(0,w.useSelect)((e=>{const{getJobClassificationData:t,getTableNames:a,isResolving:l}=e("hrswp/blocks");return{jobClassificationData:r?.length?t(r):{},isRequesting:l("getJobClassificationData",[r]),tables:a()}}),[r]),i=e=>t=>{"queryTable"===e&&(0,w.dispatch)("hrswp/blocks").invalidateResolutionForStoreSelector("getJobClassificationData"),l({[e]:t})},c=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),u=e=>e?(0,f.unescape)(e).trim():(0,E.__)("(Untitled)"),m=e=>Number.isNaN(Number(e))?u(e):c.format(e),p=(e,t)=>{const r=(0,f.escape)(a+"?filter=%22"+e+"%22");return(0,C.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},u(t))};return(0,C.createElement)("div",{...(0,x.useBlockProps)()},(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Job Classifications settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display as list"),checked:e,onChange:i("displayAsList")}),e&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("List Columns"),value:t||3,onChange:i("columns"),min:1,max:6}),(0,C.createElement)(B.SelectControl,{className:"salary-data-table-picker__select",label:(0,E.__)("Select Job Data source"),value:r,options:s?.length?s?.reduce(((e,t)=>((t.value.includes("job-class")||""===t.value)&&e.push(t),e)),[]):[],onChange:i("queryTable")}),(0,C.createElement)(B.TextControl,{label:(0,E.__)("Linked Salary Data URL"),help:(0,E.__)("The full URL to a page with a corresponding Salary Data block to link to. Leave blank to link to the current page."),value:a,onChange:i("salaryDataUrl")}))),!r&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},Array.isArray(s)?(0,E.__)("Select a job classification data group to display results."):(0,C.createElement)(B.Spinner,null)),r&&o&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},(0,C.createElement)(B.Spinner,null)),!o&&n?.length>0&&(e?(0,C.createElement)("ul",{className:`has-columns has-columns-${t}`},n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("li",{key:t},(0,C.createElement)("strong",null,u(r)),(0,C.createElement)("span",null,` (${u(a)})`),(0,C.createElement)("ul",null,(0,C.createElement)("li",null,` ${(0,E.__)("Range")}: `,p(l,s)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Min")}: `,m(o)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Max")}: `,m(n))))})(e,t)))):(0,C.createElement)("figure",{className:"wp-block-table"},(0,C.createElement)("table",null,(0,C.createElement)("thead",null,(0,C.createElement)("tr",null,(0,C.createElement)("th",null,(0,E.__)("Job Class")),(0,C.createElement)("th",null,(0,E.__)("Job Title")),(0,C.createElement)("th",null,(0,E.__)("Range")),(0,C.createElement)("th",null,(0,E.__)("Salary Min")),(0,C.createElement)("th",null,(0,E.__)("Salary Max")))),(0,C.createElement)("tbody",null,n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("tr",{key:t},(0,C.createElement)("td",null,u(a)),(0,C.createElement)("td",null,u(r)),(0,C.createElement)("td",null,p(l,s)),(0,C.createElement)("td",null,m(o)),(0,C.createElement)("td",null,m(n)))})(e,t))))))))}},rt=[["core/paragraph",{fontSize:"large",placeholder:(0,E.__)("Callout title…")}],["core/paragraph",{placeholder:(0,E.__)("Enter the callout message or replace…")}]],lt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/callout","title":"Callout","category":"layout","description":"Display content in a callout module.","keywords":["callout","message"],"textdomain":"default","supports":{"align":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"positive","label":"Positive"},{"name":"caution","label":"Caution"},{"name":"warning","label":"Warning"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),nt=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,C.createElement)(B.Path,{d:"M21,3H3C1.9,3,1,3.9,1,5v14c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V5C23,3.9,22.1,3,21,3z M21,19H3V5h18V19z M5,6h14v3H5V6z M5,11h14v6.25H5V11z"})),{name:ot}=lt,st={icon:nt,example:{innerBlocks:[{name:"core/paragraph",attributes:{fontSize:"large", /* translators: example text. */ content:(0,E.__)("Riverside Wren (Cantorchilus semibadius)")}},{name:"core/paragraph",attributes:{ diff --git a/build/style-index.css b/build/style-index.css index 871fa68..f449ea7 100644 --- a/build/style-index.css +++ b/build/style-index.css @@ -1 +1 @@ -.wp-block-hrswp-accordions.accordion-active{border-bottom:1px solid var(--wp--custom--wsu-color-black--20);margin-bottom:1.5em}.wp-block-hrswp-accordions.accordion-active .hrswp-accordion-heading{font-size:inherit;margin:0}.wp-block-hrswp-accordions.accordion-active .hrswp-accordion-heading:not(:first-of-type){border-top:1px solid var(--wp--custom--wsu-color-black--20)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-left:5px solid transparent;border-radius:0;box-shadow:none;color:inherit;cursor:pointer;display:flex;font-size:inherit;font-weight:600;justify-content:space-between;margin:0;padding:.5em .75em;text-align:left;text-transform:none;width:100%}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:after{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzQ3NTA1NSI+PHBhdGggZD0iTTI0IDI0SDBWMGgyNHYyNHoiIGZpbGw9Im5vbmUiIG9wYWNpdHk9Ii44NyIvPjxwYXRoIGQ9Ik0xNS44OCA5LjI5TDEyIDEzLjE3IDguMTIgOS4yOWMtLjM5LS4zOS0xLjAyLS4zOS0xLjQxIDAtLjM5LjM5LS4zOSAxLjAyIDAgMS40MWw0LjU5IDQuNTljLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuNTktNC41OWMuMzktLjM5LjM5LTEuMDIgMC0xLjQxLS4zOS0uMzgtMS4wMy0uMzktMS40MiAweiIvPjwvc3ZnPgo=);background-position:center 100%;background-repeat:no-repeat;background-size:cover;content:"";flex:0 0 auto;height:48px;margin-left:2em;transform:rotate(0deg);transform-origin:center center;transition:transform .2s ease-in-out;width:48px}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:focus,.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:hover{background-color:var(--wp--custom--wsu-color-black--5);border-color:var(--wp--custom--wsu-color-black--60);border-width:5px;outline:none}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:focus{box-shadow:inset 0 0 0 2px var(--wp--custom--wsu-color-core--crimson-light)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]{background-color:var(--wp--custom--wsu-color-black--5);border-color:var(--wp--custom--wsu-color-core--crimson-light)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:focus,.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:hover{background-color:var(--wp--custom--wsu-color-black--5)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:after{transform:rotate(180deg)}.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section{max-height:0;overflow:hidden;padding:0 1.5rem;transition:all .25s cubic-bezier(.4,0,.2,1);visibility:hidden}.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section[aria-hidden=false]{max-height:100vh;overflow:auto;padding:1em 1.5rem .5em;visibility:visible}.wp-block-hrswp-accordions.accordion-active .controls{display:flex;justify-content:flex-end}.wp-block-hrswp-accordions.accordion-active .controls button{background:transparent;border:1px solid transparent;box-shadow:none;color:var(--wp--preset--color--primary-crimson);font-weight:400;margin-bottom:.25em;margin-left:.25em;padding:.25em .5em;text-transform:none}.wp-block-hrswp-accordions.accordion-active .controls button:focus,.wp-block-hrswp-accordions.accordion-active .controls button:hover{background:var(--wp--custom--wsu-color-core--crimson-light);color:var(--wp--preset--color--white)}@media (prefers-reduced-motion:reduce){.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:after,.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section{transition:none}}.wp-block-hrswp-button{box-sizing:border-box}.site-header button,.site-header input[type=submit],.wp-block-button__link,.wp-block-file__button,main .button,main button,main input[type=button],main input[type=submit]{background-color:var(--wp--preset--color--primary-crimson);border:1px solid var(--wp--preset--color--primary-crimson);border-radius:3px;box-shadow:0 2px 2px 0 rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.1);box-sizing:border-box;color:var(--wp--preset--color--white);cursor:pointer;display:inline-block;font-family:inherit;font-size:var(--wp--preset--font-size--normal);line-height:1.5;word-wrap:break-word;padding:.75rem 1.5rem;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:uppercase;transition:all .3s ease;white-space:normal}.site-header button:focus,.site-header button:hover,.site-header input[type=submit]:focus,.site-header input[type=submit]:hover,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-file__button:focus,.wp-block-file__button:hover,main .button:focus,main .button:hover,main button:focus,main button:hover,main input[type=button]:focus,main input[type=button]:hover,main input[type=submit]:focus,main input[type=submit]:hover{background-color:var(--wp--preset--color--white);border-color:var(--wp--preset--color--secondary-crimson);border-width:1px;color:var(--wp--preset--color--secondary-crimson);outline:none}.site-header button:active,.site-header input[type=submit]:active,.wp-block-button__link:active,.wp-block-file__button:active,main .button:active,main button:active,main input[type=button]:active,main input[type=submit]:active{background-color:var(--wp--preset--color--light);border:1px solid var(--wp--preset--color--primary-crimson);color:var(--wp--preset--color--secondary-crimson)}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-hrswp-buttons>.wp-block-hrswp-button.has-custom-width{max-width:none}.wp-block-hrswp-buttons>.wp-block-hrswp-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-25{width:calc(25% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-50{width:calc(50% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-75{width:calc(75% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-100{margin-right:0;width:100%}.wp-block-button__link.no-border-radius{border-radius:0!important}.button.style-outline,.is-style-outline .button,.wp-block-button__link.is-style-outline,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link,main input[type=reset]{background-color:var(--wp--preset--color--white);border:1px solid var(--wp--preset--color--primary-crimson);color:var(--wp--preset--color--primary-crimson)}.button.style-outline:focus,.button.style-outline:hover,.is-style-outline .button:focus,.is-style-outline .button:hover,.wp-block-button__link.is-style-outline:focus,.wp-block-button__link.is-style-outline:hover,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:focus,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:hover,main input[type=reset]:focus,main input[type=reset]:hover{background-color:var(--wp--preset--color--secondary-crimson);border-color:var(--wp--preset--color--primary-crimson);box-shadow:0 1px 2px 1px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.1);color:var(--wp--preset--color--white)}.button.style-outline:active,.is-style-outline .button:active,.wp-block-button__link.is-style-outline:active,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:active,main input[type=reset]:active{background:darken(10%);background:darken(var(--wp--preset--color--primary-crimson,10%));border:1px solid var(--wp--preset--color--dark);box-shadow:0 1px 5px 2px rgba(0,0,0,.1);outline-width:0}.wp-block-file .wp-block-file__button{border-radius:6px;padding:.25em .75em;vertical-align:baseline}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.button.style-text,.is-style-squared>.wp-block-button__link,.is-style-text>.wp-block-button__link{background-color:transparent;border:1px solid transparent;box-shadow:none;color:var(--wp--preset--color--primary-crimson)}.button.style-text:focus,.button.style-text:hover,.is-style-squared>.wp-block-button__link:focus,.is-style-squared>.wp-block-button__link:hover,.is-style-text>.wp-block-button__link:focus,.is-style-text>.wp-block-button__link:hover{background-color:var(--wp--preset--color--secondary-crimson);color:var(--wp--preset--color--white)}.button.style-text:active,.is-style-squared>.wp-block-button__link:active,.is-style-text>.wp-block-button__link:active{background-color:darken(10%);background-color:darken(var(--wp--preset--color--primary-crimson,10%));box-shadow:0 1px 5px 2px rgba(0,0,0,.1)}.wp-block-hrswp-buttons{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:.5em;margin-bottom:.5em}.wp-block-hrswp-buttons.is-vertical{flex-direction:column}.wp-block-hrswp-buttons.is-vertical>.wp-block-hrswp-button:last-child{margin-bottom:0}.wp-block-hrswp-buttons>.wp-block-hrswp-button{display:inline-block;margin:0}.wp-block-hrswp-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-hrswp-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-hrswp-buttons.is-content-justification-center{justify-content:center}.wp-block-hrswp-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-hrswp-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-hrswp-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-hrswp-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-hrswp-buttons.aligncenter{text-align:center}.wp-block-hrswp-buttons.has-position-support{position:fixed;z-index:800}.wp-block-hrswp-buttons.has-position-support.is-position-top-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{top:10rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-center{left:50%;transform:translate(-50%)}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right,.wp-block-hrswp-buttons.has-position-support.is-position-center-right,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{right:1rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-center-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-left{transform:translate(-1rem)}.wp-block-hrswp-buttons.has-position-support.is-position-center-center,.wp-block-hrswp-buttons.has-position-support.is-position-center-left,.wp-block-hrswp-buttons.has-position-support.is-position-center-right{top:50%}.wp-block-hrswp-buttons.has-position-support.is-position-center-center{left:50%;transform:translate(-50%,-50%)}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right{bottom:4rem}.wp-block-hrswp-buttons:not(.is-content-justification-space-between):not(.is-content-justification-right):not(.is-content-justification-left):not(.is-content-justification-center) .wp-block-hrswp-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-hrswp-button.aligncenter{text-align:center}@media (min-width:34em) and (max-width:61.875em){.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right{bottom:10rem}}@media (min-width:61.875em){.wp-block-hrswp-buttons.has-position-support.is-position-top-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{top:8rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right,.wp-block-hrswp-buttons.has-position-support.is-position-center-right,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{right:2rem}}.wp-block-hrswp-callout{background-color:var(--wp--custom--wsu-color-black--5);margin-bottom:1.5em;margin-top:1.5em;padding:3rem 2.5rem;position:relative}.wp-block-hrswp-callout:before{background-color:var(--wp--preset--color--primary-crimson);content:"";display:block;height:1rem;left:0;max-width:8em;position:absolute;top:0;width:8vw}.wp-block-hrswp-callout>h2:first-of-type,.wp-block-hrswp-callout>h3:first-of-type,.wp-block-hrswp-callout>h4:first-of-type,.wp-block-hrswp-callout>p:first-of-type{border-bottom:4px solid var(--wp--custom--wsu-color-black--20);font-weight:900;margin:0 0 .75em;padding:0 0 .5em}.wp-block-hrswp-callout.is-style-positive:before{background-color:var(--wp--custom--wsu-color-accent--vineyard)}.wp-block-hrswp-callout.is-style-caution:before{background-color:var(--wp--custom--wsu-color-accent--goldfinch)}.wp-block-hrswp-callout.is-style-warning:before{background-color:var(--wp--custom--wsu-color-accent--autumn)}.wp-block-hrswp-filter .wp-block-search__inside-wrapper{max-width:24em}.wp-block-hrswp-filter-section.filtering-active :not(.show){display:none}.wp-block-hrswp-filter-section.filtering-active .show [data-markjs=true]{display:inline}.wp-block-hrswp-filter-section.filtering-active figure.show img{display:inline-block}.wp-block-hrswp-filter-section.filtering-active table.show thead{display:table-header-group}.wp-block-hrswp-filter-section.filtering-active table.show thead tr{display:table-row}.wp-block-hrswp-filter-section.filtering-active table.show thead th,.wp-block-hrswp-filter-section.filtering-active tr.show td{display:table-cell}.wp-block-hrswp-filter-section.filtering-active tr.show td *{display:inline;display:initial}.wp-block-hrswp-job-classifications{overflow:auto}.wp-block-hrswp-job-classifications .has-columns{-moz-column-count:3;column-count:3;-moz-column-gap:4rem;column-gap:4rem;list-style-type:none;margin-bottom:1em}.wp-block-hrswp-job-classifications .has-columns.has-columns-1{-moz-column-count:1;column-count:1}.wp-block-hrswp-job-classifications .has-columns.has-columns-2{-moz-column-count:2;column-count:2}.wp-block-hrswp-job-classifications .has-columns.has-columns-4{-moz-column-count:4;column-count:4}.wp-block-hrswp-job-classifications .has-columns.has-columns-5{-moz-column-count:5;column-count:5}.wp-block-hrswp-job-classifications .has-columns.has-columns-6{-moz-column-count:6;column-count:6}.hrswp-list-awards-block .awards-list{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.hrswp-list-awards-block .award-item{background-color:var(--wp--preset--color--light);border-radius:1em;display:flex;flex-basis:100%;flex-direction:column;margin:0 0 3em;overflow:hidden;position:relative}.hrswp-list-awards-block .award-item figure{align-self:center;margin-bottom:.5em}.hrswp-list-awards-block .award-description,.hrswp-list-awards-block .award-title{padding-left:1rem;padding-right:1rem}.hrswp-list-awards-block .award-title{color:var(--wp--preset--color--primary-crimson);font-size:var(--wp--preset--font-size--medium);font-weight:600;line-height:1.2;padding-bottom:.25em}.hrswp-list-awards-block .award-description{font-size:var(--wp--custom--typography--tiny);padding-bottom:3rem}.hrswp-list-awards-block .award-meta{background:var(--wp--preset--color--primary-crimson);bottom:0;color:var(--wp--preset--color--light);font-size:var(--wp--preset--font-size--small);padding:.25em;position:absolute;text-align:center;text-transform:uppercase;width:100%}@media (min-width:34em){.hrswp-list-awards-block .award-item{margin-right:2em}.hrswp-list-awards-block.has-2-columns .award-item{flex-basis:calc(50% - 1.25rem)}.hrswp-list-awards-block.has-3-columns .award-item{flex-basis:calc(33.33333% - 1.5rem)}.hrswp-list-awards-block.has-4-columns .award-item{flex-basis:calc(25% - 1.75rem)}.hrswp-list-awards-block.has-5-columns .award-item{flex-basis:calc(20% - 1.85rem)}.hrswp-list-awards-block.has-6-columns .award-item{flex-basis:calc(16.66667% - 1.9rem)}.hrswp-list-awards-block.has-2-columns .award-item:nth-child(2n),.hrswp-list-awards-block.has-3-columns .award-item:nth-child(3n),.hrswp-list-awards-block.has-4-columns .award-item:nth-child(4n),.hrswp-list-awards-block.has-5-columns .award-item:nth-child(5n),.hrswp-list-awards-block.has-6-columns .award-item:nth-child(6n){margin-right:0}}@supports (position:sticky){.hrswp-list-awards-block .award-item figure{align-items:flex-end;display:flex;justify-content:flex-start}.hrswp-list-awards-block.is-cropped .awards-list .award-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover}}@media (min-width:34em){.hrswp-list-awards-block .award-item:last-child{margin-right:0}.hrswp-list-awards-block.is-style-list .awards-list{display:block}.hrswp-list-awards-block.is-style-list .award-item{align-items:center;flex-flow:row nowrap;margin-right:0}.hrswp-list-awards-block.is-style-list .award-item figure{margin-bottom:0}.hrswp-list-awards-block.is-style-list .award-description{padding-bottom:1em;padding-top:1em}.hrswp-list-awards-block.is-style-list .award-meta{padding:.25em 1em;right:0;width:auto}}.wp-block-hrswp-notification{align-items:center;background-color:var(--wp--custom--wsu-color-black--5);border-radius:8px;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:1.5em;margin-top:1.5em;overflow:hidden;padding:2rem 2rem 2rem 2.5rem;position:relative}.wp-block-hrswp-notification:before{background-color:var(--wp--preset--color--primary-crimson);border-radius:1000px;content:"";height:10px;left:12px;position:absolute;top:12px;width:10px}.wp-block-hrswp-notification.is-style-positive:before{background-color:var(--wp--custom--wsu-color-accent--vineyard)}.wp-block-hrswp-notification.is-style-caution:before{background-color:var(--wp--custom--wsu-color-accent--goldfinch)}.wp-block-hrswp-notification.is-style-warning:before{background-color:var(--wp--custom--wsu-color-accent--autumn)}.wp-block-hrswp-notification p{margin-right:auto;max-width:100%}.wp-block-hrswp-notification img{float:left;margin-right:.5em}@media (min-width:43em){.wp-block-hrswp-notification{flex-wrap:nowrap}.wp-block-hrswp-notification p{padding:0}.wp-block-hrswp-notification.has-action-button p{max-width:70%}.wp-block-hrswp-notification .wp-block-button,.wp-block-hrswp-notification .wp-block-hrswp-button{margin:0 0 0 1em}}.hrswp-block-posts-list__list-item{margin-bottom:.7rem;position:relative}.hrswp-block-posts-list.has-full-content .hrswp-block-posts-list__list-item{border-bottom:2px solid var(--wp--custom--wsu-color-black--10);margin-bottom:2em;overflow:hidden}.hrswp-block-posts-list__post-title{font-size:var(--wp--preset--font-size--medium);line-height:1.2;margin:0 0 .25rem}#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a{color:var(--wp--custom--wsu-color-black--90);-webkit-text-decoration:none;text-decoration:none}#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a:focus,#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a:hover{color:var(--wp--preset--color--secondary-crimson);-webkit-text-decoration:underline;text-decoration:underline}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__post-title{margin:1rem 0 .5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__post-title a:after{background:none}.hrswp-block-posts-list__body{color:var(--wp--custom--wsu-color-black--60);display:flex;flex-direction:column}.hrswp-block-posts-list__post-excerpt{font-size:var(--wp--preset--font-size--normal);line-height:1.35}.hrswp-block-posts-list__meta{font-size:var(--wp--preset--font-size--small);font-weight:500;line-height:1.35;margin-top:auto}.hrswp-block-posts-list__meta span{text-transform:uppercase}.hrswp-block-posts-list__meta .hrswp-block-posts-list__post_tag-list span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link){color:var(--wp--custom--wsu-color-black--70);font-weight:400;text-decoration-color:var(--wp--custom--wsu-color-black--50);text-decoration-thickness:.1em;transition:all .2s ease}#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link):focus,#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link):hover{text-decoration-thickness:.2em}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__meta p:last-child{margin-bottom:.75rem}.hrswp-block-posts-list.has-excerpt .hrswp-block-posts-list__meta,.hrswp-block-posts-list.has-full-content .hrswp-block-posts-list__meta{padding-top:1rem}.hrswp-block-posts-list__post-date:before,.hrswp-block-posts-list__post_tag-list:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KPHBhdGggZmlsbD0iIzYwNjA2MCIgZD0iTTIxLjQxLDExLjU4bC05LTlDMTIuMDUsMi4yMiwxMS41NSwyLDExLDJINEMyLjksMiwyLDIuOSwyLDR2N2MwLDAuNTUsMC4yMiwxLjA1LDAuNTksMS40Mmw5LDkKCUMxMS45NSwyMS43NzksMTIuNDUsMjIsMTMsMjJzMS4wNS0wLjIyMSwxLjQxLTAuNTlsNy03QzIxLjc3OSwxNC4wNSwyMiwxMy41NSwyMiwxM1MyMS43NywxMS45NCwyMS40MSwxMS41OHogTTEzLDIwLjAxTDQsMTFWNGg3CglWMy45OWw5LDlMMTMsMjAuMDF6Ii8+CjxjaXJjbGUgZmlsbD0iIzYwNjA2MCIgY3g9IjYuNSIgY3k9IjYuNSIgcj0iMS41Ii8+Cjwvc3ZnPgo=);background-position:center 100%;background-repeat:no-repeat;background-size:contain;content:"";display:inline-block;height:1em;margin:0 .4em -.2em 0;width:1em}.hrswp-block-posts-list__post-date:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDBWMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBmaWxsPSIjNjA2MDYwIiBkPSJNMTkgNGgtMVYyaC0ydjJIOFYySDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDIwYzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjZjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVYxMGgxNHYxMHptMC0xMkg1VjZoMTR2MnptLTcgNWg1djVoLTV6Ii8+PC9zdmc+Cg==);margin:0 .2em -.1em 0}.hrswp-block-posts-list__meta p,.hrswp-block-posts-list__post-excerpt{padding:0}.hrswp-block-posts-list__meta .hrswp-block-posts-list__post-date:not(:first-child){margin-top:.5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__meta .hrswp-block-posts-list__post-date{margin-bottom:1.5rem;margin-top:1.5rem}.hrswp-block-posts-list.has-excerpt .hrswp-block-posts-list__list-item:not(:first-of-type){border-top:2px solid var(--wp--custom--wsu-color-black--10);padding-top:1em}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-thumbnail{width:68px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-small{width:91px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-medium{width:180px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-large{width:60%}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image img{border-radius:5px}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__list-item{display:flex}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__body{flex:1}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image{margin-right:1rem}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image.alignright{float:none;margin-left:1rem;margin-right:0;order:2}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image.alignleft{float:none;margin-right:1rem}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:before{border-left:.8rem solid var(--wp--preset--color--primary-crimson);content:"";display:inline-block;height:.8rem;opacity:.6;padding-right:8px;transition:opacity .3s ease}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:focus:before,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:hover:before{opacity:1}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__meta,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-excerpt,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-full-content{padding-left:calc(.8rem + 8px)}.hrswp-block-posts-list.is-grid{display:flex;flex-flow:row wrap;margin-left:-20px;margin-right:-20px}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type){background-color:var(--wp--preset--color--white);border:none;border-radius:5px;box-shadow:0 1px 1px 0 rgba(66,66,66,.08),0 1px 3px 1px rgba(66,66,66,.16);flex-direction:column;margin:10px;max-width:600px;min-height:150px;overflow:hidden;padding:0;transition:box-shadow 135ms cubic-bezier(.4,0,.2,1) 0ms;width:100%}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:focus,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:hover,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type):focus,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type):hover{box-shadow:0 1px 3px 1px rgba(66,66,66,.2),0 2px 8px 4px rgba(66,66,66,.1)}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image{margin:0}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.size-thumbnail{margin:1em 0 0 1.5em}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.alignright{align-self:flex-end;order:0}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.aligncenter{align-self:center}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__body{padding:0 1.5rem}.hrswp-block-posts-list.is-grid:not(.has-date) .hrswp-block-posts-list__list-item{padding-bottom:1.5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__body:first-child .hrswp-block-posts-list__post-title{padding-top:1em}@media (min-width:576px){.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-1 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-2 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-3 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(50% - 20px)}}@media (min-width:768px){.hrswp-block-posts-list.is-grid.columns-3 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(33.33333% - 20px)}}@media (min-width:900px){.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(25% - 20px)}}@media (min-width:1386px){.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item{width:calc(20% - 20px)}.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(16.66667% - 20px)}}.wp-block-hrswp-salary-data{overflow:auto}.wp-block-hrswp-sidebar{display:flex;flex-wrap:wrap;gap:2rem;margin-bottom:1.75em}.wp-block-hrswp-sidebar.are-vertically-aligned-top{align-items:flex-start}.wp-block-hrswp-sidebar.are-vertically-aligned-center{align-items:center}.wp-block-hrswp-sidebar.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-hrswp-sidebar:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%}.wp-block-hrswp-sidebar.is-not-stacked-on-mobile{flex-wrap:nowrap!important}@media (min-width:900px){.wp-block-hrswp-sidebar{flex-wrap:nowrap}.wp-block-hrswp-sidebar:not(.has-sidebar-on-the-left)>.wp-block-column:first-child,.wp-block-hrswp-sidebar:not(.is-style-sidebar-left)>.wp-block-column:first-child{flex-basis:70%!important}.wp-block-hrswp-sidebar.has-sidebar-on-the-left>.wp-block-column:first-child,.wp-block-hrswp-sidebar.is-style-sidebar-left>.wp-block-column:first-child,.wp-block-hrswp-sidebar:not(.has-sidebar-on-the-left)>.wp-block-column:last-child,.wp-block-hrswp-sidebar:not(.is-style-sidebar-left)>.wp-block-column:last-child{flex-basis:30%!important}.wp-block-hrswp-sidebar.has-sidebar-on-the-left>.wp-block-column:last-child,.wp-block-hrswp-sidebar.is-style-sidebar-left>.wp-block-column:last-child{flex-basis:70%!important}} +.wp-block-hrswp-accordions.accordion-active{border-bottom:1px solid var(--wp--custom--wsu-color-black--20);margin-bottom:1.5em}.wp-block-hrswp-accordions.accordion-active .hrswp-accordion-heading{font-size:inherit;margin:0}.wp-block-hrswp-accordions.accordion-active .hrswp-accordion-heading:not(:first-of-type){border-top:1px solid var(--wp--custom--wsu-color-black--20)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-left:5px solid transparent;border-radius:0;box-shadow:none;color:inherit;cursor:pointer;display:flex;font-size:inherit;font-weight:600;justify-content:space-between;margin:0;padding:.5em .75em;text-align:left;text-transform:none;width:100%}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:after{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iIzQ3NTA1NSI+PHBhdGggZD0iTTI0IDI0SDBWMGgyNHYyNHoiIGZpbGw9Im5vbmUiIG9wYWNpdHk9Ii44NyIvPjxwYXRoIGQ9Ik0xNS44OCA5LjI5TDEyIDEzLjE3IDguMTIgOS4yOWMtLjM5LS4zOS0xLjAyLS4zOS0xLjQxIDAtLjM5LjM5LS4zOSAxLjAyIDAgMS40MWw0LjU5IDQuNTljLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuNTktNC41OWMuMzktLjM5LjM5LTEuMDIgMC0xLjQxLS4zOS0uMzgtMS4wMy0uMzktMS40MiAweiIvPjwvc3ZnPgo=);background-position:center 100%;background-repeat:no-repeat;background-size:cover;content:"";flex:0 0 auto;height:48px;margin-left:2em;transform:rotate(0deg);transform-origin:center center;transition:transform .2s ease-in-out;width:48px}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:focus,.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:hover{background-color:var(--wp--custom--wsu-color-black--5);border-color:var(--wp--custom--wsu-color-black--60);border-width:5px;outline:none}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:focus{box-shadow:inset 0 0 0 2px var(--wp--custom--wsu-color-core--crimson-light)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]{background-color:var(--wp--custom--wsu-color-black--5);border-color:var(--wp--custom--wsu-color-core--crimson-light)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:focus,.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:hover{background-color:var(--wp--custom--wsu-color-black--5)}.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger[aria-expanded=true]:after{transform:rotate(180deg)}.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section{max-height:0;overflow:hidden;padding:0 1.5rem;transition:all .25s cubic-bezier(.4,0,.2,1);visibility:hidden}.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section[aria-hidden=false]{max-height:100vh;overflow:auto;padding:1em 1.5rem .5em;visibility:visible}.wp-block-hrswp-accordions.accordion-active .controls{display:flex;justify-content:flex-end}.wp-block-hrswp-accordions.accordion-active .controls button{background:transparent;border:1px solid transparent;box-shadow:none;color:var(--wp--preset--color--primary-crimson);font-weight:400;margin-bottom:.25em;margin-left:.25em;padding:.25em .5em;text-transform:none}.wp-block-hrswp-accordions.accordion-active .controls button:focus,.wp-block-hrswp-accordions.accordion-active .controls button:hover{background:var(--wp--custom--wsu-color-core--crimson-light);color:var(--wp--preset--color--white)}@media (prefers-reduced-motion:reduce){.wp-block-hrswp-accordions.accordion-active .accordion-panel-trigger:after,.wp-block-hrswp-accordions.accordion-active .wp-block-hrswp-accordion-section{transition:none}}.wp-block-hrswp-button{box-sizing:border-box}.site-header button,.site-header input[type=submit],.wp-block-button__link,.wp-block-file__button,main .button,main button,main input[type=button],main input[type=submit]{background-color:var(--wp--preset--color--primary-crimson);border:1px solid var(--wp--preset--color--primary-crimson);border-radius:3px;box-shadow:0 2px 2px 0 rgba(0,0,0,.16),0 0 0 1px rgba(0,0,0,.1);box-sizing:border-box;color:var(--wp--preset--color--white);cursor:pointer;display:inline-block;font-family:inherit;font-size:var(--wp--preset--font-size--normal);line-height:1.5;word-wrap:break-word;padding:.75rem 1.5rem;text-align:center;-webkit-text-decoration:none;text-decoration:none;text-transform:uppercase;transition:all .3s ease;white-space:normal}.site-header button:focus,.site-header button:hover,.site-header input[type=submit]:focus,.site-header input[type=submit]:hover,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-file__button:focus,.wp-block-file__button:hover,main .button:focus,main .button:hover,main button:focus,main button:hover,main input[type=button]:focus,main input[type=button]:hover,main input[type=submit]:focus,main input[type=submit]:hover{background-color:var(--wp--preset--color--white);border-color:var(--wp--preset--color--secondary-crimson);border-width:1px;color:var(--wp--preset--color--secondary-crimson);outline:none}.site-header button:active,.site-header input[type=submit]:active,.wp-block-button__link:active,.wp-block-file__button:active,main .button:active,main button:active,main input[type=button]:active,main input[type=submit]:active{background-color:var(--wp--preset--color--light);border:1px solid var(--wp--preset--color--primary-crimson);color:var(--wp--preset--color--secondary-crimson)}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-hrswp-buttons>.wp-block-hrswp-button.has-custom-width{max-width:none}.wp-block-hrswp-buttons>.wp-block-hrswp-button.has-custom-width .wp-block-button__link{width:100%}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-25{width:calc(25% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-50{width:calc(50% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-75{width:calc(75% - .5em)}.wp-block-hrswp-buttons>.wp-block-hrswp-button.wp-block-button__width-100{margin-right:0;width:100%}.wp-block-button__link.no-border-radius{border-radius:0!important}.button.style-outline,.is-style-outline .button,.wp-block-button__link.is-style-outline,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link,main input[type=reset]{background-color:var(--wp--preset--color--white);border:1px solid var(--wp--preset--color--primary-crimson);color:var(--wp--preset--color--primary-crimson)}.button.style-outline:focus,.button.style-outline:hover,.is-style-outline .button:focus,.is-style-outline .button:hover,.wp-block-button__link.is-style-outline:focus,.wp-block-button__link.is-style-outline:hover,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:focus,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:hover,main input[type=reset]:focus,main input[type=reset]:hover{background-color:var(--wp--preset--color--secondary-crimson);border-color:var(--wp--preset--color--primary-crimson);box-shadow:0 1px 2px 1px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.1);color:var(--wp--preset--color--white)}.button.style-outline:active,.is-style-outline .button:active,.wp-block-button__link.is-style-outline:active,.wp-block-hrswp-buttons .is-style-outline>.wp-block-button__link:active,main input[type=reset]:active{background:darken(10%);background:darken(var(--wp--preset--color--primary-crimson,10%));border:1px solid var(--wp--preset--color--dark);box-shadow:0 1px 5px 2px rgba(0,0,0,.1);outline-width:0}.wp-block-file .wp-block-file__button{border-radius:6px;padding:.25em .75em;vertical-align:baseline}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.button.style-text,.is-style-squared>.wp-block-button__link,.is-style-text>.wp-block-button__link{background-color:transparent;border:1px solid transparent;box-shadow:none;color:var(--wp--preset--color--primary-crimson)}.button.style-text:focus,.button.style-text:hover,.is-style-squared>.wp-block-button__link:focus,.is-style-squared>.wp-block-button__link:hover,.is-style-text>.wp-block-button__link:focus,.is-style-text>.wp-block-button__link:hover{background-color:var(--wp--preset--color--secondary-crimson);color:var(--wp--preset--color--white)}.button.style-text:active,.is-style-squared>.wp-block-button__link:active,.is-style-text>.wp-block-button__link:active{background-color:darken(10%);background-color:darken(var(--wp--preset--color--primary-crimson,10%));box-shadow:0 1px 5px 2px rgba(0,0,0,.1)}.wp-block-hrswp-buttons{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:.5em;margin-bottom:.5em}.wp-block-hrswp-buttons.is-vertical{flex-direction:column}.wp-block-hrswp-buttons.is-vertical>.wp-block-hrswp-button:last-child{margin-bottom:0}.wp-block-hrswp-buttons>.wp-block-hrswp-button{display:inline-block;margin:0}.wp-block-hrswp-buttons.is-content-justification-left{justify-content:flex-start}.wp-block-hrswp-buttons.is-content-justification-left.is-vertical{align-items:flex-start}.wp-block-hrswp-buttons.is-content-justification-center{justify-content:center}.wp-block-hrswp-buttons.is-content-justification-center.is-vertical{align-items:center}.wp-block-hrswp-buttons.is-content-justification-right{justify-content:flex-end}.wp-block-hrswp-buttons.is-content-justification-right.is-vertical{align-items:flex-end}.wp-block-hrswp-buttons.is-content-justification-space-between{justify-content:space-between}.wp-block-hrswp-buttons.aligncenter{text-align:center}.wp-block-hrswp-buttons.has-position-support{position:fixed;z-index:800}.wp-block-hrswp-buttons.has-position-support.is-position-top-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{top:10rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-center{left:50%;transform:translate(-50%)}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right,.wp-block-hrswp-buttons.has-position-support.is-position-center-right,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{right:1rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-center-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-left{transform:translate(-1rem)}.wp-block-hrswp-buttons.has-position-support.is-position-center-center,.wp-block-hrswp-buttons.has-position-support.is-position-center-left,.wp-block-hrswp-buttons.has-position-support.is-position-center-right{top:50%}.wp-block-hrswp-buttons.has-position-support.is-position-center-center{left:50%;transform:translate(-50%,-50%)}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right{bottom:4rem}.wp-block-hrswp-buttons:not(.is-content-justification-space-between):not(.is-content-justification-right):not(.is-content-justification-left):not(.is-content-justification-center) .wp-block-hrswp-button.aligncenter{margin-left:auto;margin-right:auto;width:100%}.wp-block-hrswp-button.aligncenter{text-align:center}@media (min-width:34em) and (max-width:61.875em){.wp-block-hrswp-buttons.has-position-support.is-position-bottom-center,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-left,.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right{bottom:10rem}}@media (min-width:61.875em){.wp-block-hrswp-buttons.has-position-support.is-position-top-center,.wp-block-hrswp-buttons.has-position-support.is-position-top-left,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{top:8rem}.wp-block-hrswp-buttons.has-position-support.is-position-bottom-right,.wp-block-hrswp-buttons.has-position-support.is-position-center-right,.wp-block-hrswp-buttons.has-position-support.is-position-top-right{right:2rem}}.wp-block-hrswp-callout{background-color:var(--wp--custom--wsu-color-black--5);margin-bottom:1.5em;margin-top:1.5em;padding:3rem 2.5rem;position:relative}.wp-block-hrswp-callout:before{background-color:var(--wp--preset--color--primary-crimson);content:"";display:block;height:1rem;left:0;max-width:8em;position:absolute;top:0;width:8vw}.wp-block-hrswp-callout>h2:first-of-type,.wp-block-hrswp-callout>h3:first-of-type,.wp-block-hrswp-callout>h4:first-of-type,.wp-block-hrswp-callout>p:first-of-type{border-bottom:4px solid var(--wp--custom--wsu-color-black--20);font-weight:900;margin:0 0 .75em;padding:0 0 .5em}.wp-block-hrswp-callout.is-style-positive:before{background-color:var(--wp--custom--wsu-color-accent--vineyard)}.wp-block-hrswp-callout.is-style-caution:before{background-color:var(--wp--custom--wsu-color-accent--goldfinch)}.wp-block-hrswp-callout.is-style-warning:before{background-color:var(--wp--custom--wsu-color-accent--autumn)}.wp-block-hrswp-filter .wp-block-search__inside-wrapper{max-width:24em}.wp-block-hrswp-filter-section.filtering-active :not(.show){display:none}.wp-block-hrswp-filter-section.filtering-active .show [data-markjs=true]{display:inline}.wp-block-hrswp-filter-section.filtering-active figure.show img{display:inline-block}.wp-block-hrswp-filter-section.filtering-active table.show thead{display:table-header-group}.wp-block-hrswp-filter-section.filtering-active table.show thead tr{display:table-row}.wp-block-hrswp-filter-section.filtering-active table.show thead th,.wp-block-hrswp-filter-section.filtering-active tr.show td{display:table-cell}.wp-block-hrswp-filter-section.filtering-active tr.show td *{display:inline;display:initial}.wp-block-hrswp-job-classifications{overflow:auto}.wp-block-hrswp-job-classifications .has-columns{-moz-column-count:3;column-count:3;-moz-column-gap:4rem;column-gap:4rem;list-style-type:none;margin-bottom:1em}.wp-block-hrswp-job-classifications .has-columns.has-columns-1{-moz-column-count:1;column-count:1}.wp-block-hrswp-job-classifications .has-columns.has-columns-2{-moz-column-count:2;column-count:2}.wp-block-hrswp-job-classifications .has-columns.has-columns-4{-moz-column-count:4;column-count:4}.wp-block-hrswp-job-classifications .has-columns.has-columns-5{-moz-column-count:5;column-count:5}.wp-block-hrswp-job-classifications .has-columns.has-columns-6{-moz-column-count:6;column-count:6}.hrswp-list-awards-block .awards-list{display:flex;flex-wrap:wrap;list-style-type:none;padding:0}.hrswp-list-awards-block .award-item{background-color:var(--wp--preset--color--light);border-radius:1em;display:flex;flex-basis:100%;flex-direction:column;margin:0 0 3em;overflow:hidden;position:relative}.hrswp-list-awards-block .award-item figure{align-self:center;margin-bottom:.5em}.hrswp-list-awards-block .award-description,.hrswp-list-awards-block .award-title{padding-left:1rem;padding-right:1rem}.hrswp-list-awards-block .award-title{color:var(--wp--preset--color--primary-crimson);font-size:var(--wp--preset--font-size--medium);font-weight:600;line-height:1.2;padding-bottom:.25em}.hrswp-list-awards-block .award-description{font-size:var(--wp--custom--typography--tiny);padding-bottom:3rem}.hrswp-list-awards-block .award-meta{background:var(--wp--preset--color--primary-crimson);bottom:0;color:var(--wp--preset--color--light);font-size:var(--wp--preset--font-size--small);padding:.25em;position:absolute;text-align:center;text-transform:uppercase;width:100%}@media (min-width:34em){.hrswp-list-awards-block .award-item{margin-right:2em}.hrswp-list-awards-block.has-2-columns .award-item{flex-basis:calc(50% - 1.25rem)}.hrswp-list-awards-block.has-3-columns .award-item{flex-basis:calc(33.33333% - 1.5rem)}.hrswp-list-awards-block.has-4-columns .award-item{flex-basis:calc(25% - 1.75rem)}.hrswp-list-awards-block.has-5-columns .award-item{flex-basis:calc(20% - 1.85rem)}.hrswp-list-awards-block.has-6-columns .award-item{flex-basis:calc(16.66667% - 1.9rem)}.hrswp-list-awards-block.has-2-columns .award-item:nth-child(2n),.hrswp-list-awards-block.has-3-columns .award-item:nth-child(3n),.hrswp-list-awards-block.has-4-columns .award-item:nth-child(4n),.hrswp-list-awards-block.has-5-columns .award-item:nth-child(5n),.hrswp-list-awards-block.has-6-columns .award-item:nth-child(6n){margin-right:0}}@supports (position:sticky){.hrswp-list-awards-block .award-item figure{align-items:flex-end;display:flex;justify-content:flex-start}.hrswp-list-awards-block.is-cropped .awards-list .award-item img{flex:1;height:100%;-o-object-fit:cover;object-fit:cover}}@media (min-width:34em){.hrswp-list-awards-block .award-item:last-child{margin-right:0}.hrswp-list-awards-block.is-style-list .awards-list{display:block}.hrswp-list-awards-block.is-style-list .award-item{align-items:center;flex-flow:row nowrap;margin-right:0}.hrswp-list-awards-block.is-style-list .award-item figure{margin-bottom:0}.hrswp-list-awards-block.is-style-list .award-description{padding-bottom:1em;padding-top:1em}.hrswp-list-awards-block.is-style-list .award-meta{padding:.25em 1em;right:0;width:auto}}.wp-block-hrswp-notification{align-items:center;background-color:var(--wp--custom--wsu-color-black--5);border-radius:8px;display:flex;flex-wrap:wrap;justify-content:flex-start;margin-bottom:1.5em;margin-top:1.5em;overflow:hidden;padding:2rem 2rem 2rem 2.5rem;position:relative}.wp-block-hrswp-notification:before{background-color:var(--wp--preset--color--primary-crimson);border-radius:1000px;content:"";height:10px;left:12px;position:absolute;top:12px;width:10px}.wp-block-hrswp-notification.is-style-positive:before{background-color:var(--wp--custom--wsu-color-accent--vineyard)}.wp-block-hrswp-notification.is-style-caution:before{background-color:var(--wp--custom--wsu-color-accent--goldfinch)}.wp-block-hrswp-notification.is-style-warning:before{background-color:var(--wp--custom--wsu-color-accent--autumn)}.wp-block-hrswp-notification p{margin-right:auto;max-width:100%}.wp-block-hrswp-notification img{float:left;margin-right:.5em}@media (min-width:43em){.wp-block-hrswp-notification{flex-wrap:nowrap}.wp-block-hrswp-notification p{padding:0}.wp-block-hrswp-notification.has-action-button p{max-width:70%}.wp-block-hrswp-notification .wp-block-button,.wp-block-hrswp-notification .wp-block-hrswp-button{margin:0 0 0 1em}}.hrswp-block-posts-list__list-item{margin-bottom:.7rem;position:relative}.hrswp-block-posts-list.has-full-content .hrswp-block-posts-list__list-item{border-bottom:2px solid var(--wp--custom--wsu-color-black--10);margin-bottom:2em;overflow:hidden}.hrswp-block-posts-list__post-title{font-size:var(--wp--preset--font-size--medium);line-height:1.2;margin:0 0 .25rem}#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a{color:var(--wp--custom--wsu-color-black--90);-webkit-text-decoration:none;text-decoration:none}#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a:focus,#wsuwp-main .hrswp-block-posts-list .hrswp-block-posts-list__post-title a:hover{color:var(--wp--preset--color--secondary-crimson);-webkit-text-decoration:underline;text-decoration:underline}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__post-title{margin:1rem 0 .5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__post-title a:after{background:none}.hrswp-block-posts-list__body{color:var(--wp--custom--wsu-color-black--60);display:flex;flex-direction:column}.hrswp-block-posts-list__post-excerpt{font-size:var(--wp--preset--font-size--normal);line-height:1.35}.hrswp-block-posts-list__meta{font-size:var(--wp--preset--font-size--small);font-weight:500;line-height:1.35;margin-top:auto}.hrswp-block-posts-list__meta span{text-transform:uppercase}.hrswp-block-posts-list__meta .hrswp-block-posts-list__post_tag-list span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link){color:var(--wp--custom--wsu-color-black--70);font-weight:400;text-decoration-color:var(--wp--custom--wsu-color-black--50);text-decoration-thickness:.1em;transition:all .2s ease}#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link):focus,#wsuwp-main .hrswp-block-posts-list__body .hrswp-block-posts-list__meta a:not(.wp-block-button__link):hover{text-decoration-thickness:.2em}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__meta p:last-child{margin-bottom:.75rem}.hrswp-block-posts-list.has-excerpt .hrswp-block-posts-list__meta,.hrswp-block-posts-list.has-full-content .hrswp-block-posts-list__meta{padding-top:1rem}.hrswp-block-posts-list__post-date:before,.hrswp-block-posts-list__post_tag-list:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KPHBhdGggZmlsbD0iIzYwNjA2MCIgZD0iTTIxLjQxLDExLjU4bC05LTlDMTIuMDUsMi4yMiwxMS41NSwyLDExLDJINEMyLjksMiwyLDIuOSwyLDR2N2MwLDAuNTUsMC4yMiwxLjA1LDAuNTksMS40Mmw5LDkKCUMxMS45NSwyMS43NzksMTIuNDUsMjIsMTMsMjJzMS4wNS0wLjIyMSwxLjQxLTAuNTlsNy03QzIxLjc3OSwxNC4wNSwyMiwxMy41NSwyMiwxM1MyMS43NywxMS45NCwyMS40MSwxMS41OHogTTEzLDIwLjAxTDQsMTFWNGg3CglWMy45OWw5LDlMMTMsMjAuMDF6Ii8+CjxjaXJjbGUgZmlsbD0iIzYwNjA2MCIgY3g9IjYuNSIgY3k9IjYuNSIgcj0iMS41Ii8+Cjwvc3ZnPgo=);background-position:center 100%;background-repeat:no-repeat;background-size:contain;content:"";display:inline-block;height:1em;margin:0 .4em -.2em 0;width:1em}.hrswp-block-posts-list__post-date:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCBkPSJNMCAwaDI0djI0SDBWMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBmaWxsPSIjNjA2MDYwIiBkPSJNMTkgNGgtMVYyaC0ydjJIOFYySDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDIwYzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjZjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVYxMGgxNHYxMHptMC0xMkg1VjZoMTR2MnptLTcgNWg1djVoLTV6Ii8+PC9zdmc+Cg==);margin:0 .2em -.1em 0}.hrswp-block-posts-list__meta p,.hrswp-block-posts-list__post-excerpt{padding:0}.hrswp-block-posts-list__meta .hrswp-block-posts-list__post-date:not(:first-child){margin-top:.5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__meta .hrswp-block-posts-list__post-date{margin-bottom:1.5rem;margin-top:1.5rem}.hrswp-block-posts-list.has-excerpt .hrswp-block-posts-list__list-item:not(:first-of-type){border-top:2px solid var(--wp--custom--wsu-color-black--10);padding-top:1em}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-thumbnail{width:68px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-small{width:91px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-medium{width:180px}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image.size-large{width:60%}.hrswp-block-posts-list:not(.is-grid) .hrswp-block-posts-list__featured-image img{border-radius:5px}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__list-item{display:flex}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__body{flex:1}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image{margin-right:1rem}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image.alignright{float:none;margin-left:1rem;margin-right:0;order:2}.hrswp-block-posts-list:not(.has-full-content) .hrswp-block-posts-list__featured-image.alignleft{float:none;margin-right:1rem}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:before{border-left:.8rem solid var(--wp--preset--color--primary-crimson);content:"";display:inline-block;height:.8rem;opacity:.6;padding-right:8px;transition:opacity .3s ease}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:focus:before,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-title:hover:before{opacity:1}.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__meta,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-excerpt,.hrswp-block-posts-list:not(.has-feature-image):not(.is-grid) .hrswp-block-posts-list__post-full-content{padding-left:calc(.8rem + 8px)}.hrswp-block-posts-list.is-grid{display:flex;flex-flow:row wrap;margin-left:-20px;margin-right:-20px}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type){background-color:var(--wp--preset--color--white);border:none;border-radius:5px;box-shadow:0 1px 1px 0 rgba(66,66,66,.08),0 1px 3px 1px rgba(66,66,66,.16);flex-direction:column;margin:10px;max-width:600px;min-height:150px;overflow:hidden;padding:0;transition:box-shadow 135ms cubic-bezier(.4,0,.2,1) 0ms;width:100%}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:focus,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:hover,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type):focus,.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__list-item:not(:first-of-type):hover{box-shadow:0 1px 3px 1px rgba(66,66,66,.2),0 2px 8px 4px rgba(66,66,66,.1)}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image{margin:0}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.size-thumbnail{margin:1em 0 0 1.5em}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.alignright{align-self:flex-end;order:0}.hrswp-block-posts-list.is-grid.has-feature-image .hrswp-block-posts-list__featured-image.aligncenter{align-self:center}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__body{padding:0 1.5rem}.hrswp-block-posts-list.is-grid:not(.has-date) .hrswp-block-posts-list__list-item{padding-bottom:1.5rem}.hrswp-block-posts-list.is-grid .hrswp-block-posts-list__body:first-child .hrswp-block-posts-list__post-title{padding-top:1em}@media (min-width:576px){.hrswp-block-posts-list.is-grid.columns-2 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-3 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(50% - 20px)}}@media (min-width:768px){.hrswp-block-posts-list.is-grid.columns-3 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(33.33333% - 20px)}}@media (min-width:900px){.hrswp-block-posts-list.is-grid.columns-4 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item,.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(25% - 20px)}}@media (min-width:1386px){.hrswp-block-posts-list.is-grid.columns-5 .hrswp-block-posts-list__list-item{width:calc(20% - 20px)}.hrswp-block-posts-list.is-grid.columns-6 .hrswp-block-posts-list__list-item{width:calc(16.66667% - 20px)}}.wp-block-hrswp-salary-data{overflow:auto}.wp-block-hrswp-sidebar{display:flex;flex-wrap:wrap;gap:2rem;margin-bottom:1.75em}.wp-block-hrswp-sidebar.are-vertically-aligned-top{align-items:flex-start}.wp-block-hrswp-sidebar.are-vertically-aligned-center{align-items:center}.wp-block-hrswp-sidebar.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-hrswp-sidebar:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%}.wp-block-hrswp-sidebar.is-not-stacked-on-mobile{flex-wrap:nowrap!important}@media (min-width:900px){.wp-block-hrswp-sidebar{flex-wrap:nowrap}.wp-block-hrswp-sidebar:not(.has-sidebar-on-the-left)>.wp-block-column:first-child,.wp-block-hrswp-sidebar:not(.is-style-sidebar-left)>.wp-block-column:first-child{flex-basis:70%!important}.wp-block-hrswp-sidebar.has-sidebar-on-the-left>.wp-block-column:first-child,.wp-block-hrswp-sidebar.is-style-sidebar-left>.wp-block-column:first-child,.wp-block-hrswp-sidebar:not(.has-sidebar-on-the-left)>.wp-block-column:last-child,.wp-block-hrswp-sidebar:not(.is-style-sidebar-left)>.wp-block-column:last-child{flex-basis:30%!important}.wp-block-hrswp-sidebar.has-sidebar-on-the-left>.wp-block-column:last-child,.wp-block-hrswp-sidebar.is-style-sidebar-left>.wp-block-column:last-child{flex-basis:70%!important}} From 3648fb151d09e72c3cbdaf723a8b506e1fba2c68 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:47:14 -0700 Subject: [PATCH 07/12] Fix #146 replace deprecated value attribute with inner blocks --- src/blocks/filter/index.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/blocks/filter/index.js b/src/blocks/filter/index.js index 0cb4c04..762376d 100644 --- a/src/blocks/filter/index.js +++ b/src/blocks/filter/index.js @@ -23,11 +23,26 @@ export const settings = { innerBlocks: [ { name: 'core/list', - attributes: { - values: __( - '
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • ' - ), - }, + innerBlocks: [ + { + name: 'core/list-item', + attributes: { + content: __( 'Alice.' ), + }, + }, + { + name: 'core/list-item', + attributes: { + content: __( 'The White Rabbit.' ), + }, + }, + { + name: 'core/list-item', + attributes: { + content: __( 'The Cheshire Cat.' ), + }, + }, + ], }, ], }, From 9bfce4d8bd867cc6ca45bdc41d9d62ab637f7a0b Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:47:57 -0700 Subject: [PATCH 08/12] :package: Update built files --- build/index.asset.php | 2 +- build/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/index.asset.php b/build/index.asset.php index 7b2e22f..f0a257f 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-server-side-render'), 'version' => '181f42b03927b9fb3810'); + array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-server-side-render'), 'version' => '959cae0c456c73eee7ea'); diff --git a/build/index.js b/build/index.js index 28fe4a1..e391ca8 100644 --- a/build/index.js +++ b/build/index.js @@ -11,7 +11,7 @@ panelHeadingContent:(0,E.__)("An accordion panel title"),level:2},innerBlocks:[{ content:(0,E.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}}]},{name:"hrswp/accordion-section",attributes:{ /* translators: example text. */ panelHeadingContent:(0,E.__)("Another accordion panel title"),level:2},innerBlocks:[{name:"core/list-item",attributes:{content:(0,E.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The Cheshire Cat.")}}]}]},edit:e=>{const{clientId:t}=e,a=(0,w.useSelect)((e=>e(x.store).getBlocks(t).length>0),[t])?O:F;return(0,C.createElement)(a,{...e})},save:function(){return(0,C.createElement)("div",{...x.useBlockProps.save()},(0,C.createElement)(x.InnerBlocks.Content,null))}};var K=a(942),Y=a.n(K);const Q=window.wp.compose,X=e=>{if(!(0,f.isObject)(e)||Array.isArray(e))return e;const t=(0,f.pickBy)((0,f.mapValues)(e,X),f.identity);return(0,f.isEmpty)(t)?void 0:t},ee=X;function te(e){if(!e?.style?.typography?.fontFamily)return e;const t=(0,f.cloneDeep)(e),a=t.style.typography.fontFamily.split("|").pop();return delete t.style.typography.fontFamily,t.style=ee(t.style),{...t,fontFamily:a}}const ae=e=>{const{borderRadius:t,...a}=e,r=[t,a.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return r?{...a,style:{...a.style,border:{...a.style?.border,radius:`${r}px`}}}:a},re=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...(0,f.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},le=e=>re((0,f.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),ne={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},oe=[{attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},migrate:te,isEligible:({style:e})=>e?.typography?.fontFamily},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible:({style:e})=>"number"==typeof e?.border?.radius,save({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=n?.border?.radius,m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=Y()("wp-block-button__link",m.className,{"no-border-radius":0===n?.border?.radius}),d={borderRadius:u||void 0,...m.style},h=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:h})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:i,title:s,style:d,value:o,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:a,linkTarget:r,rel:l,text:n,title:o,url:s,width:i}=e,c=(0,x.__experimentalGetColorClassesAndStyles)(e),u=Y()("wp-block-button__link",c.className,{"no-border-radius":0===a}),m={borderRadius:a?a+"px":void 0,...c.style},p=Y()(t,{[`has-custom-width wp-block-button__width-${i}`]:i});return(0,C.createElement)("div",{...x.useBlockProps.save({className:p})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:s,title:o,style:m,value:n,target:r,rel:l}))},migrate:(0,Q.compose)(te,ae)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:a,rel:r,text:l,title:n,url:o}=e,s=Y()("wp-block-button__link",{"no-border-radius":0===t}),i={borderRadius:t?t+"px":void 0};return(0,C.createElement)(x.RichText.Content,{tagName:"a",className:s,href:o,title:n,style:i,value:l,target:a,rel:r})},migrate:ae},{supports:{align:!0,alignWide:!1},attributes:{...ne,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient,migrate:(0,Q.compose)(ae,re),save({attributes:e}){const{backgroundColor:t,borderRadius:a,customBackgroundColor:r,customTextColor:l,customGradient:n,linkTarget:o,gradient:s,rel:i,text:c,textColor:u,title:m,url:p}=e,d=(0,x.getColorClassName)("color",u),h=!n&&(0,x.getColorClassName)("background-color",t),g=(0,x.__experimentalGetGradientClass)(s),b=Y()("wp-block-button__link",{"has-text-color":u||l,[d]:d,"has-background":t||r||n||s,[h]:h,"no-border-radius":0===a,[g]:g}),y={background:n||void 0,backgroundColor:h||n||s?void 0:r,color:d?void 0:l,borderRadius:a?a+"px":void 0};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:b,href:p,title:m,style:y,value:c,target:o,rel:i}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible:e=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),ae(re({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:a,customTextColor:r,linkTarget:l,rel:n,text:o,textColor:s,title:i,url:c}=e,u=(0,x.getColorClassName)("color",s),m=(0,x.getColorClassName)("background-color",t),p=Y()("wp-block-button__link",{"has-text-color":s||r,[u]:u,"has-background":t||a,[m]:m}),d={backgroundColor:m?void 0:a,color:u?void 0:r};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:p,href:c,title:i,style:d,value:o,target:l,rel:n}))}},{attributes:{...ne,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:le,save({attributes:e}){const{url:t,text:a,title:r,backgroundColor:l,textColor:n,customBackgroundColor:o,customTextColor:s}=e,i=(0,x.getColorClassName)("color",n),c=(0,x.getColorClassName)("background-color",l),u=Y()("wp-block-button__link",{"has-text-color":n||s,[i]:i,"has-background":l||o,[c]:c}),m={backgroundColor:c?void 0:o,color:i?void 0:s};return(0,C.createElement)("div",null,(0,C.createElement)(x.RichText.Content,{tagName:"a",className:u,href:t,title:r,style:m,value:a}))}},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e,s={backgroundColor:n,color:o};return(0,C.createElement)("div",{className:`align${l}`},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:r,style:s,value:a}))},migrate:le},{attributes:{...ne,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:a,title:r,align:l,color:n,textColor:o}=e;return(0,C.createElement)("div",{className:`align${l}`,style:{backgroundColor:n}},(0,C.createElement)(x.RichText.Content,{tagName:"a",href:t,title:r,style:{color:o},value:a}))},migrate:le}],se=window.wp.element,ie=window.wp.keycodes,ce=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),ue=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),me=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"})),pe="noreferrer noopener";function de({selectedWidth:e,setAttributes:t}){return(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Width settings")},(0,C.createElement)(B.ButtonGroup,{"aria-label":(0,E.__)("Button width")},[25,50,75,100].map((a=>(0,C.createElement)(B.Button,{key:a,isSmall:!0,variant:a===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=a)?void 0:r})}},a,"%")))))}const he=JSON.parse('{"apiVersion":2,"name":"hrswp/button","title":"Button","category":"design","parent":["hrswp/buttons"],"description":"Prompt visitors to take action.","keywords":["link"],"textdomain":"default","attributes":{"url":{"type":"string","source":"attribute","selector":"a","attribute":"href"},"title":{"type":"string","source":"attribute","selector":"a","attribute":"title"},"text":{"type":"string","source":"html","selector":"a"},"linkTarget":{"type":"string","source":"attribute","selector":"a","attribute":"target"},"rel":{"type":"string","source":"attribute","selector":"a","attribute":"rel"},"placeholder":{"type":"string"},"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"gradient":{"type":"string"},"width":{"type":"number"}},"supports":{"anchor":true,"align":true,"alignWide":false,"color":false,"typography":false,"reusable":false,"spacing":false,"__experimentalBorder":false,"__experimentalSelector":".wp-block-button__link"},"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"},{"name":"text","label":"Text"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:ge}=he,be={icon:ce,example:{attributes:{className:"is-style-fill",text:(0,E.__)("Call to Action")}},edit:function(e){const{attributes:t,setAttributes:a,className:r,isSelected:l,onReplace:n,mergeBlocks:o}=e,{linkTarget:s,placeholder:i,rel:c,style:u,text:m,url:p,width:d}=t,h=(0,se.useCallback)((e=>{a({rel:e})}),[a]),[g]=(0,se.useState)(null),b=(0,x.__experimentalUseBorderProps)(t),y=(0,x.__experimentalUseColorProps)(t),v=(0,x.__experimentalGetSpacingClassesAndStyles)(t),_=(0,se.useRef)(),w=(0,se.useRef)(),f=(0,x.useBlockProps)({ref:_,onKeyDown:function(e){ie.isKeyboardEvent.primary(e,"k")?z(e):ie.isKeyboardEvent.primaryShift(e,"k")&&(A(),w.current?.focus())}}),[S,P]=(0,se.useState)(!1),T=!!p,N="_blank"===s;function z(e){e.preventDefault(),P(!0)}function A(){a({url:void 0,linkTarget:void 0,rel:void 0}),P(!1)}return(0,se.useEffect)((()=>{l||P(!1)}),[l]),(0,C.createElement)(C.Fragment,null,(0,C.createElement)("div",{...f,className:Y()(f.className,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":f.style.fontSize})},(0,C.createElement)(x.RichText,{ref:w,"aria-label":(0,E.__)("Button text"),placeholder:i||(0,E.__)("Add text…"),value:m,onChange:e=>{a({text:e.replace(/<\/?a[^>]*>/g,"")})},allowedFormats:[],className:Y()(r,"wp-block-button__link",y.className,b.className,{"no-border-radius":0===u?.border?.radius}),style:{...b.style,...y.style,...v.style},onSplit:e=>(0,k.createBlock)("hrswp/button",{...t,text:e}),onReplace:n,onMerge:o,identifier:"text"})),(0,C.createElement)(x.BlockControls,{group:"block"},!T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:ue,title:(0,E.__)("Link"),shortcut:ie.displayShortcut.primary("k"),onClick:z}),T&&(0,C.createElement)(B.ToolbarButton,{name:"link",icon:me,title:(0,E.__)("Unlink"),shortcut:ie.displayShortcut.primaryShift("k"),onClick:A,isActive:!0})),l&&(S||T)&&(0,C.createElement)(B.Popover,{position:"bottom center",onClose:()=>{P(!1),w.current?.focus()},anchor:g,focusOnMount:!!S&&"firstElement"},(0,C.createElement)(x.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:p,opensInNewTab:N},onChange:({url:e="",opensInNewTab:t})=>{a({url:e}),N!==t&&function(e){const t=e?"_blank":void 0;let r=c;t&&!c?r=pe:t||c!==pe||(r=void 0),a({linkTarget:t,rel:r})}(t)},onRemove:()=>{A(),w.current?.focus()},forceIsEditingLink:S})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(de,{selectedWidth:d,setAttributes:a})),(0,C.createElement)(x.InspectorControls,{group:"advanced"},(0,C.createElement)(B.TextControl,{label:(0,E.__)("Link rel"),value:c||"",onChange:h})))},save:function({attributes:e,className:t}){const{fontSize:a,linkTarget:r,rel:l,style:n,text:o,title:s,url:i,width:c}=e;if(!o)return null;const u=(0,x.__experimentalGetBorderClassesAndStyles)(e),m=(0,x.__experimentalGetColorClassesAndStyles)(e),p=(0,x.__experimentalGetSpacingClassesAndStyles)(e),d=Y()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===n?.border?.radius}),h={...u.style,...m.style,...p.style},g=Y()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":a||n?.typography?.fontSize});return(0,C.createElement)("div",{...x.useBlockProps.save({className:g})},(0,C.createElement)(x.RichText.Content,{tagName:"a",className:d,href:i,title:s,style:h,value:o,target:r,rel:l}))},deprecated:oe,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},ye=e=>{if(e.layout)return e;const{contentJustification:t,orientation:a,...r}=e;return(t||a)&&Object.assign(r,{layout:{type:"flex",...t&&{justifyContent:t},...a&&{orientation:a}}}),r},ve=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:ye,save:({attributes:{contentJustification:e,orientation:t}})=>(0,C.createElement)("div",{...x.useBlockProps.save({className:Y()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,C.createElement)(x.InnerBlocks.Content,null))},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,C.createElement)("div",null,(0,C.createElement)(x.InnerBlocks.Content,null)),isEligible:({align:e})=>e&&["center","left","right"].includes(e),migrate:e=>ye({...e,align:void 0,contentJustification:e.align})}],_e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/buttons","title":"Buttons","category":"design","description":"Prompt visitors to take action with one or more buttons.","keywords":["link"],"textdomain":"default","attributes":{"supportsPosition":{"type":"boolean","default":false},"contentPosition":{"type":"string","default":"bottomRight"}},"supports":{"anchor":true,"align":["wide","full"],"__experimentalExposeControlsToChildren":true,"spacing":{"blockGap":true,"margin":["top","bottom"],"__experimentalDefaultControls":{"blockGap":true}},"__experimentalLayout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}}},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:we}=_e,ke={from:[{type:"block",blocks:["core/buttons"],transform:(e,t)=>(0,k.createBlock)(we,e,t.map((e=>(0,k.createBlock)("hrswp/button",e.attributes))))},{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>(0,k.createBlock)("hrswp/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,k.createBlock)(we,{},e.map((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelector("a"),l=r?.getAttribute("href");return(0,k.createBlock)("core/button",{text:a,url:l})}))),isMatch:e=>e.every((e=>{const t=document.createElement("div");t.innerHTML=e.content;const a=t.innerText||"",r=t.querySelectorAll("a");return a.length<=30&&r.length<=1}))}]},fe=ke,Ee=[ge],Ce={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},xe={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Se=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"})),{name:Be}=((0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(B.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),_e),Pe={icon:Se,example:{innerBlocks:[{name:"hrswp/button",attributes:{text:(0,E.__)("Find out more")}},{name:"hrswp/button",attributes:{text:(0,E.__)("Contact us")}}]},deprecated:ve,transforms:fe,edit:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},setAttributes:n,className:o}=e,{orientation:s,justifyContent:i}=a,c=Y()(o,{[`is-content-justification-${i}`]:i,[`is-${s}`]:s,"has-position-support":l,[null!==(t=Ce[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),u=(0,x.useBlockProps)({className:c}),m=(0,w.useSelect)((e=>{const t=e(x.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[ge]}),[]),p=(0,x.useInnerBlocksProps)(u,{allowedBlocks:Ee,template:[[ge,{className:m&&`is-style-${m}`}]],__experimentalLayout:a,templateInsertUpdatesSelection:!0});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.BlockControls,{group:"block"},(0,C.createElement)(x.__experimentalBlockAlignmentMatrixControl,{label:(0,E.__)("Change content position"),value:r,onChange:e=>n({contentPosition:e})})),(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Positioning")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Fixed position"),checked:l,onChange:()=>n({supportsPosition:!l})}))),(0,C.createElement)("div",{...p}))},save:function(e){var t;const{attributes:{layout:a={},contentPosition:r,supportsPosition:l},className:n}=e,{orientation:o,justifyContent:s}=a,i=Y()(n,{[`is-content-justification-${s}`]:s,[`is-${o}`]:o,"has-position-support":l,[null!==(t=xe[r])&&void 0!==t?t:"is-position-bottom-right"]:l}),c=x.useBlockProps.save({className:i}),u=x.useInnerBlocksProps.save(c);return(0,C.createElement)("div",{...u})}},Te=window.wp.primitives,Ne=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})),ze=(0,C.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(Te.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),Ae=(0,C.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,C.createElement)(Te.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),Ve=window.wp.notices,He=window.wp.coreData,Ie=window.wp.date,De=e=>{const{terms:t,taxonomySlug:a,post:r,prefix:l,instanceId:n}=e;let o;o="category"===a||"post_tag"===a?"category"===a?"categories":"tags":a;const s=r[o],i=Array.isArray(s)&&s.length,{createWarningNotice:c,removeNotice:u}=(0,w.useDispatch)(Ve.store);let m;const p=e=>{e.preventDefault(),u(m),m=`block-library/hrswp-blocks/posts-list/redirection-prevented/${n}`,c((0,E.__)("Links are disabled in the editor."),{id:m,type:"snackbar"})};if(!i)return null;const d=(0,f.filter)(t[a],(e=>(0,f.includes)(s,e.id)));return(0,C.createElement)("p",{className:`hrswp-block-posts-list__${a}-list`},(0,C.createElement)("span",null,l),d.map(((e,t)=>{const a=t>0?", ":"";return(0,C.createElement)(se.Fragment,{key:t},a,(0,C.createElement)("a",{href:e.link,target:"_blank",rel:"noreferrer noopener",onClick:p},e.name))})))},Me=e=>{const{displayPostCategory:t,displayPostDate:a,displayPostTag:r,displayPostTaxonomy:l,post:n,taxonomies:o,termLists:s,instanceId:i}=e,c=(0,Ie.getSettings)().formats.date,u=t||r||l;return u&&o&&o.push(o.splice(o.findIndex((e=>"post_tag"===e.slug)),1)[0]),(0,C.createElement)("div",{className:"hrswp-block-posts-list__meta"},u&&o.map((e=>{let a;if("category"===e.slug){if(!t)return null;a=(0,E.__)("More on: ")}else if("post_tag"===e.slug){if(!r)return null;a="Tagged: "}else{if(!l)return null;a=`${e.labels.singular_name}: `}return(0,C.createElement)(De,{key:e.slug,post:n,terms:s,taxonomySlug:e.slug,prefix:a,instanceId:i})})),a&&n.date_gmt&&(0,C.createElement)("p",{className:"hrswp-block-posts-list__post-date"},(0,E.__)("Published on "),(0,C.createElement)("time",{dateTime:(0,Ie.format)("c",n.date_gmt)},(0,Ie.dateI18n)(c,n.date_gmt))))},Re={per_page:-1};function Le(e,t){return e?e[t]&&e[t].length>0?e[t].map((e=>e.id)):[]:null}const Oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/posts-list","title":"Posts List","category":"widgets","description":"Display a list of posts.","keywords":["posts","latest posts"],"textdomain":"default","attributes":{"selectedTermLists":{"type":"object"},"postsToShow":{"type":"number","default":10},"displayPostContent":{"type":"boolean","default":false},"displayPostContentRadio":{"type":"string","default":"excerpt"},"excerptLength":{"type":"number","default":25},"displayPostDate":{"type":"boolean","default":false},"displayPostCategory":{"type":"boolean","default":false},"displayPostTag":{"type":"boolean","default":false},"displayPostTaxonomy":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"displayFeaturedImage":{"type":"boolean","default":false},"featuredImageAlign":{"type":"string","enum":["left","center","right"]},"featuredImageSizeSlug":{"type":"string","default":"thumbnail"},"featuredImageSizeWidth":{"type":"number","default":null},"featuredImageSizeHeight":{"type":"number","default":null},"addLinkToFeaturedImage":{"type":"boolean","default":false},"offsetPostsNumber":{"type":"integer","default":0}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),Fe=(0,C.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,C.createElement)(B.Path,{d:"M19 18V2c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1zM4 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6V3h11zM4 11c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm13 0v6H6v-6h11z"})),{name:Ge}=Oe,$e={icon:Fe,example:{},edit:function e({attributes:t,setAttributes:a}){const r=(0,Q.useInstanceId)(e),{addLinkToFeaturedImage:l,displayFeaturedImage:n,displayPostContentRadio:o,displayPostContent:s,displayPostDate:i,displayPostCategory:c,displayPostTag:u,displayPostTaxonomy:m,postLayout:p,columns:d,offsetPostsNumber:h,order:g,orderBy:b,selectedTermLists:y,postsToShow:v,excerptLength:_,featuredImageAlign:k,featuredImageSizeSlug:S,featuredImageSizeWidth:P,featuredImageSizeHeight:T}=t,{imageSizes:N,postsList:z,defaultImageWidth:A,defaultImageHeight:V,termLists:H,taxonomies:I}=(0,w.useSelect)((e=>{const{getEntityRecords:t,getTaxonomies:a}=e(He.store),r=e(x.store).getSettings(),l=(0,f.pickBy)({order:g,orderby:b,per_page:v,offset:h,_embed:"wp:featuredmedia"},(e=>!(0,f.isUndefined)(e)));(0,f.isUndefined)(y)||Object.entries(y).forEach((([e,t])=>{l[e]=t.map((e=>e.id))}));const n=a(Re),o=(0,f.filter)(n,(e=>(0,f.includes)(e.types,"post"))),s={};return o.forEach((({slug:e})=>{Object.defineProperty(s,e,{value:t("taxonomy",e,Re)})})),{defaultImageWidth:(0,f.get)(r.imageDimensions,[S,"width"],0),defaultImageHeight:(0,f.get)(r.imageDimensions,[S,"height"],0),imageSizes:r.imageSizes,postsList:t("postType","post",l),taxonomies:o,termLists:s}}),[S,v,g,b,h,y]),D=N.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),{createWarningNotice:M,removeNotice:R}=(0,w.useDispatch)(Ve.store);let L;const O=e=>{e.preventDefault(),R(L),L=`block-library/hrswp-blocks/posts-list/redirection-prevented/${r}`,M((0,E.__)("Links are disabled in the editor."),{id:L,type:"snackbar"})},F=!!z?.length,G=(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post content settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Post content"),checked:s,onChange:e=>a({displayPostContent:e})}),s&&(0,C.createElement)(B.RadioControl,{label:(0,E.__)("Show:"),selected:o,options:[{label:(0,E.__)("Excerpt"),value:"excerpt"},{label:(0,E.__)("Full post"),value:"full_post"}],onChange:e=>a({displayPostContentRadio:e})}),s&&"excerpt"===o&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Max number of words in excerpt"),value:_,onChange:e=>a({excerptLength:e}),min:10,max:100})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Post meta settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post date"),checked:i,onChange:e=>a({displayPostDate:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post category"),checked:c,onChange:e=>a({displayPostCategory:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post tag"),checked:u,onChange:e=>a({displayPostTag:e})}),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display post taxonomy"),checked:m,onChange:e=>a({displayPostTaxonomy:e})})),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Featured image settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display featured image"),checked:n,onChange:e=>a({displayFeaturedImage:e})}),n&&(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),a(t)},slug:S,width:P,height:T,imageWidth:A,imageHeight:V,imageSizes:D,imageSizeOptions:D,onChangeImage:e=>a({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,C.createElement)(B.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,C.createElement)(B.BaseControl.VisualLabel,null,(0,E.__)("Image alignment")),(0,C.createElement)(x.BlockAlignmentToolbar,{value:k,onChange:e=>a({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Add link to featured image"),checked:l,onChange:e=>a({addLinkToFeaturedImage:e})}))),(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter",title:(0,E.__)("Filtering"),initialOpen:!1},I.map((e=>(0,C.createElement)(B.PanelBody,{className:"taxonomy-filter--body",key:e.slug,title:e.name,initialOpen:!1},(0,C.createElement)("ul",{className:"edit__checklist"},H[e.slug]&&H[e.slug].map((t=>(0,C.createElement)("li",{key:t.id,className:"components-checkbox-control__label"},(0,C.createElement)(B.CheckboxControl,{label:t.name,checked:(0,f.includes)(Le(y,e.rest_base),t.id),onChange:()=>{((e,t)=>{var r;const l=null!=y?y:{},n=null!==(r=l[e])&&void 0!==r?r:l[e]=[],o=(0,f.includes)(Le(l,e),t.id)?(0,f.remove)(n,(e=>e.id!==t.id)):[...n,t];l[e]=o,a({selectedTermLists:l})})(e.rest_base,t)}}))))))))),(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Order and number"),initialOpen:!1},(0,C.createElement)(B.QueryControls,{order:g,orderBy:b,numberOfItems:v,onOrderChange:e=>a({order:e}),onOrderByChange:e=>a({orderBy:e}),onNumberOfItemsChange:e=>a({postsToShow:e})}),(0,C.createElement)(B.RangeControl,{label:(0,E.__)("The number of items to offset."),value:h,onChange:e=>a({offsetPostsNumber:e}),min:0,max:100}),"grid"===p&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("Columns"),value:d,onChange:e=>a({columns:e}),min:1,max:F?Math.min(6,z.length):6,required:!0}))),$=(0,x.useBlockProps)({className:Y()({"hrswp-block-posts-list":!0,"is-grid":"grid"===p,"has-feature-image":n,"has-date":i,"has-full-content":s&&"full_post"===o,"has-excerpt":s&&"excerpt"===o,[`columns-${d}`]:"grid"===p})});if(!F)return(0,C.createElement)("div",{...$},G,(0,C.createElement)(B.Placeholder,{icon:Ne,label:(0,E.__)("Posts")},Array.isArray(z)?(0,E.__)("No posts found."):(0,C.createElement)(B.Spinner,null)));const j=z.length>v?z.slice(0,v):z,J=[{icon:ze,title:(0,E.__)("List view"),onClick:()=>a({postLayout:"list"}),isActive:"list"===p},{icon:Ae,title:(0,E.__)("Grid view"),onClick:()=>a({postLayout:"grid"}),isActive:"grid"===p}];return(0,C.createElement)(C.Fragment,null,G,(0,C.createElement)(x.BlockControls,null,(0,C.createElement)(B.ToolbarGroup,{controls:J})),(0,C.createElement)("ul",{...$},j.map(((e,t)=>{const a=(0,f.invoke)(e,["title","rendered","trim"]);let p=e.content.rendered;const d=document.createElement("div");d.innerHTML=p,p=d.textContent||d.innerText||"";const{url:h,alt:g}=function(e,t){var a;const r=(0,f.get)(e,["_embedded","wp:featuredmedia","0"]);return{url:null!==(a=r?.media_details?.sizes?.[t]?.source_url)&&void 0!==a?a:r?.source_url,alt:r?.alt_text}}(e,S),b=Y()({"hrswp-block-posts-list__featured-image":!0,[`align${k}`]:!!k}),y=n&&h,v=y&&(0,C.createElement)("img",{src:h,alt:g,style:{maxWidth:P,maxHeight:T}}),w=i||c||u||m,x=_{const{getBlockOrder:a,getBlockRootClientId:r}=t(x.store),l=r(e);return{hasChildBlocks:a(e).length>0,searchSectionIds:a(l)}}),[e]),r=(0,x.useBlockProps)(),l=t.length,n=t.indexOf(e)+1,o=(0,E.sprintf)(/* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ /* translators: 1: Block label (i.e. "Block: Search Filter"), 2: Position of the selected block, 3: Total number of sibling blocks of the same type */ -(0,E.__)("%1$s (%2$s of %3$s)"),r["aria-label"],n,l),s=(0,x.useInnerBlocksProps)({...r,"aria-label":o},{templateLock:!1,renderAppender:a?void 0:x.InnerBlocks.ButtonBlockAppender});return(0,C.createElement)("div",{...s})},save:function(){const e=x.useBlockProps.save(),t=x.useInnerBlocksProps.save(e);return(0,C.createElement)("div",{...t})}},Ue=[We],Ze=[[We]],Ke=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/filter","title":"Filter","category":"widgets","description":"Search and filter a section of content by full text.","keywords":["filter","search"],"textdomain":"default","attributes":{"retainHeadings":{"type":"boolean","default":false}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","viewScript":"hrswp-blocks-filter-view","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:Ye}=Ke,Qe={icon:"filter",example:{innerBlocks:[{name:"hrswp/filter-section",innerBlocks:[{name:"core/list",attributes:{values:(0,E.__)("
  • Alice.
  • The White Rabbit.
  • The Cheshire Cat.
  • ")}}]}]},edit:function({attributes:e,setAttributes:t,className:a}){const{retainHeadings:r}=e,l=Y()(a,{"has-retain-headings":r}),n=(0,x.useBlockProps)({className:l}),o=(0,x.useInnerBlocksProps)(n,{allowedBlocks:Ue,template:Ze,templateLock:"all",orientation:"vertical",renderAppender:!1});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Filter Settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Retain Headings"),checked:!!r,onChange:()=>t({retainHeadings:!r}),help:r?(0,E.__)("Headings not matching search term will not be hidden."):(0,E.__)("Toggle to always show headings.")}))),(0,C.createElement)("div",{...o}))},save:function({attributes:e,className:t}){const{retainHeadings:a}=e,r=Y()(t,{"has-retain-headings":a}),l=x.useBlockProps.save({className:r}),n=x.useInnerBlocksProps.save(l);return(0,C.createElement)("div",{...n})}},Xe=JSON.parse('{"apiVersion":2,"name":"hrswp/job-classifications","title":"HRS Job Classifications","category":"hrswp-blocks-external","description":"Display WSU job classification data.","textdomain":"default","attributes":{"displayAsList":{"type":"boolean","default":false},"columns":{"type":"number","default":3},"salaryDataUrl":{"type":"string","default":""},"queryTable":{"type":"string"}},"supports":{"align":true,"html":false},"styles":[{"name":"default","label":"Default Table","isDefault":true},{"name":"stripes","label":"Striped Table"}]}'),et=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,C.createElement)(B.Path,{d:"M13.2 10L11 13l-1-1.4L9 13l-2.2-3C3 11 3 13 3 16.9c0 0 3 1.1 6.4 1.1h1.2c3.4-.1 6.4-1.1 6.4-1.1 0-3.9 0-5.9-3.8-6.9zm-3.2.7L8.4 10l1.6 1.6 1.6-1.6-1.6.7zM10 2.1c-1.9 0-3 1.8-2.7 3.8.3 2 1.3 3.4 2.7 3.4s2.4-1.4 2.7-3.4c.3-2.1-.8-3.8-2.7-3.8z"})),{name:tt}=Xe,at={icon:et,example:{},edit:function({attributes:{displayAsList:e,columns:t,salaryDataUrl:a,queryTable:r},setAttributes:l}){const{jobClassificationData:n,isRequesting:o,tables:s}=(0,w.useSelect)((e=>{const{getJobClassificationData:t,getTableNames:a,isResolving:l}=e("hrswp/blocks");return{jobClassificationData:r?.length?t(r):{},isRequesting:l("getJobClassificationData",[r]),tables:a()}}),[r]),i=e=>t=>{"queryTable"===e&&(0,w.dispatch)("hrswp/blocks").invalidateResolutionForStoreSelector("getJobClassificationData"),l({[e]:t})},c=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),u=e=>e?(0,f.unescape)(e).trim():(0,E.__)("(Untitled)"),m=e=>Number.isNaN(Number(e))?u(e):c.format(e),p=(e,t)=>{const r=(0,f.escape)(a+"?filter=%22"+e+"%22");return(0,C.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},u(t))};return(0,C.createElement)("div",{...(0,x.useBlockProps)()},(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Job Classifications settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display as list"),checked:e,onChange:i("displayAsList")}),e&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("List Columns"),value:t||3,onChange:i("columns"),min:1,max:6}),(0,C.createElement)(B.SelectControl,{className:"salary-data-table-picker__select",label:(0,E.__)("Select Job Data source"),value:r,options:s?.length?s?.reduce(((e,t)=>((t.value.includes("job-class")||""===t.value)&&e.push(t),e)),[]):[],onChange:i("queryTable")}),(0,C.createElement)(B.TextControl,{label:(0,E.__)("Linked Salary Data URL"),help:(0,E.__)("The full URL to a page with a corresponding Salary Data block to link to. Leave blank to link to the current page."),value:a,onChange:i("salaryDataUrl")}))),!r&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},Array.isArray(s)?(0,E.__)("Select a job classification data group to display results."):(0,C.createElement)(B.Spinner,null)),r&&o&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},(0,C.createElement)(B.Spinner,null)),!o&&n?.length>0&&(e?(0,C.createElement)("ul",{className:`has-columns has-columns-${t}`},n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("li",{key:t},(0,C.createElement)("strong",null,u(r)),(0,C.createElement)("span",null,` (${u(a)})`),(0,C.createElement)("ul",null,(0,C.createElement)("li",null,` ${(0,E.__)("Range")}: `,p(l,s)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Min")}: `,m(o)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Max")}: `,m(n))))})(e,t)))):(0,C.createElement)("figure",{className:"wp-block-table"},(0,C.createElement)("table",null,(0,C.createElement)("thead",null,(0,C.createElement)("tr",null,(0,C.createElement)("th",null,(0,E.__)("Job Class")),(0,C.createElement)("th",null,(0,E.__)("Job Title")),(0,C.createElement)("th",null,(0,E.__)("Range")),(0,C.createElement)("th",null,(0,E.__)("Salary Min")),(0,C.createElement)("th",null,(0,E.__)("Salary Max")))),(0,C.createElement)("tbody",null,n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("tr",{key:t},(0,C.createElement)("td",null,u(a)),(0,C.createElement)("td",null,u(r)),(0,C.createElement)("td",null,p(l,s)),(0,C.createElement)("td",null,m(o)),(0,C.createElement)("td",null,m(n)))})(e,t))))))))}},rt=[["core/paragraph",{fontSize:"large",placeholder:(0,E.__)("Callout title…")}],["core/paragraph",{placeholder:(0,E.__)("Enter the callout message or replace…")}]],lt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/callout","title":"Callout","category":"layout","description":"Display content in a callout module.","keywords":["callout","message"],"textdomain":"default","supports":{"align":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"positive","label":"Positive"},{"name":"caution","label":"Caution"},{"name":"warning","label":"Warning"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),nt=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,C.createElement)(B.Path,{d:"M21,3H3C1.9,3,1,3.9,1,5v14c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V5C23,3.9,22.1,3,21,3z M21,19H3V5h18V19z M5,6h14v3H5V6z M5,11h14v6.25H5V11z"})),{name:ot}=lt,st={icon:nt,example:{innerBlocks:[{name:"core/paragraph",attributes:{fontSize:"large", +(0,E.__)("%1$s (%2$s of %3$s)"),r["aria-label"],n,l),s=(0,x.useInnerBlocksProps)({...r,"aria-label":o},{templateLock:!1,renderAppender:a?void 0:x.InnerBlocks.ButtonBlockAppender});return(0,C.createElement)("div",{...s})},save:function(){const e=x.useBlockProps.save(),t=x.useInnerBlocksProps.save(e);return(0,C.createElement)("div",{...t})}},Ue=[We],Ze=[[We]],Ke=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/filter","title":"Filter","category":"widgets","description":"Search and filter a section of content by full text.","keywords":["filter","search"],"textdomain":"default","attributes":{"retainHeadings":{"type":"boolean","default":false}},"supports":{"align":true,"html":false},"editorScript":"hrswp-blocks-script","viewScript":"hrswp-blocks-filter-view","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),{name:Ye}=Ke,Qe={icon:"filter",example:{innerBlocks:[{name:"hrswp/filter-section",innerBlocks:[{name:"core/list",innerBlocks:[{name:"core/list-item",attributes:{content:(0,E.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,E.__)("The Cheshire Cat.")}}]}]}]},edit:function({attributes:e,setAttributes:t,className:a}){const{retainHeadings:r}=e,l=Y()(a,{"has-retain-headings":r}),n=(0,x.useBlockProps)({className:l}),o=(0,x.useInnerBlocksProps)(n,{allowedBlocks:Ue,template:Ze,templateLock:"all",orientation:"vertical",renderAppender:!1});return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Filter Settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Retain Headings"),checked:!!r,onChange:()=>t({retainHeadings:!r}),help:r?(0,E.__)("Headings not matching search term will not be hidden."):(0,E.__)("Toggle to always show headings.")}))),(0,C.createElement)("div",{...o}))},save:function({attributes:e,className:t}){const{retainHeadings:a}=e,r=Y()(t,{"has-retain-headings":a}),l=x.useBlockProps.save({className:r}),n=x.useInnerBlocksProps.save(l);return(0,C.createElement)("div",{...n})}},Xe=JSON.parse('{"apiVersion":2,"name":"hrswp/job-classifications","title":"HRS Job Classifications","category":"hrswp-blocks-external","description":"Display WSU job classification data.","textdomain":"default","attributes":{"displayAsList":{"type":"boolean","default":false},"columns":{"type":"number","default":3},"salaryDataUrl":{"type":"string","default":""},"queryTable":{"type":"string"}},"supports":{"align":true,"html":false},"styles":[{"name":"default","label":"Default Table","isDefault":true},{"name":"stripes","label":"Striped Table"}]}'),et=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,C.createElement)(B.Path,{d:"M13.2 10L11 13l-1-1.4L9 13l-2.2-3C3 11 3 13 3 16.9c0 0 3 1.1 6.4 1.1h1.2c3.4-.1 6.4-1.1 6.4-1.1 0-3.9 0-5.9-3.8-6.9zm-3.2.7L8.4 10l1.6 1.6 1.6-1.6-1.6.7zM10 2.1c-1.9 0-3 1.8-2.7 3.8.3 2 1.3 3.4 2.7 3.4s2.4-1.4 2.7-3.4c.3-2.1-.8-3.8-2.7-3.8z"})),{name:tt}=Xe,at={icon:et,example:{},edit:function({attributes:{displayAsList:e,columns:t,salaryDataUrl:a,queryTable:r},setAttributes:l}){const{jobClassificationData:n,isRequesting:o,tables:s}=(0,w.useSelect)((e=>{const{getJobClassificationData:t,getTableNames:a,isResolving:l}=e("hrswp/blocks");return{jobClassificationData:r?.length?t(r):{},isRequesting:l("getJobClassificationData",[r]),tables:a()}}),[r]),i=e=>t=>{"queryTable"===e&&(0,w.dispatch)("hrswp/blocks").invalidateResolutionForStoreSelector("getJobClassificationData"),l({[e]:t})},c=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),u=e=>e?(0,f.unescape)(e).trim():(0,E.__)("(Untitled)"),m=e=>Number.isNaN(Number(e))?u(e):c.format(e),p=(e,t)=>{const r=(0,f.escape)(a+"?filter=%22"+e+"%22");return(0,C.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},u(t))};return(0,C.createElement)("div",{...(0,x.useBlockProps)()},(0,C.createElement)(x.InspectorControls,null,(0,C.createElement)(B.PanelBody,{title:(0,E.__)("Job Classifications settings")},(0,C.createElement)(B.ToggleControl,{label:(0,E.__)("Display as list"),checked:e,onChange:i("displayAsList")}),e&&(0,C.createElement)(B.RangeControl,{label:(0,E.__)("List Columns"),value:t||3,onChange:i("columns"),min:1,max:6}),(0,C.createElement)(B.SelectControl,{className:"salary-data-table-picker__select",label:(0,E.__)("Select Job Data source"),value:r,options:s?.length?s?.reduce(((e,t)=>((t.value.includes("job-class")||""===t.value)&&e.push(t),e)),[]):[],onChange:i("queryTable")}),(0,C.createElement)(B.TextControl,{label:(0,E.__)("Linked Salary Data URL"),help:(0,E.__)("The full URL to a page with a corresponding Salary Data block to link to. Leave blank to link to the current page."),value:a,onChange:i("salaryDataUrl")}))),!r&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},Array.isArray(s)?(0,E.__)("Select a job classification data group to display results."):(0,C.createElement)(B.Spinner,null)),r&&o&&(0,C.createElement)(B.Placeholder,{icon:"admin-post",label:(0,E.__)("Job Classification Data")},(0,C.createElement)(B.Spinner,null)),!o&&n?.length>0&&(e?(0,C.createElement)("ul",{className:`has-columns has-columns-${t}`},n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("li",{key:t},(0,C.createElement)("strong",null,u(r)),(0,C.createElement)("span",null,` (${u(a)})`),(0,C.createElement)("ul",null,(0,C.createElement)("li",null,` ${(0,E.__)("Range")}: `,p(l,s)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Min")}: `,m(o)),(0,C.createElement)("li",null,` ${(0,E.__)("Salary Max")}: `,m(n))))})(e,t)))):(0,C.createElement)("figure",{className:"wp-block-table"},(0,C.createElement)("table",null,(0,C.createElement)("thead",null,(0,C.createElement)("tr",null,(0,C.createElement)("th",null,(0,E.__)("Job Class")),(0,C.createElement)("th",null,(0,E.__)("Job Title")),(0,C.createElement)("th",null,(0,E.__)("Range")),(0,C.createElement)("th",null,(0,E.__)("Salary Min")),(0,C.createElement)("th",null,(0,E.__)("Salary Max")))),(0,C.createElement)("tbody",null,n.map(((e,t)=>((e,t)=>{const{ClassCode:a,JobTitle:r,SalRangeNum:l,Salary_Max:n,Salary_Min:o,SalrangeWExceptions:s}=e;return(0,C.createElement)("tr",{key:t},(0,C.createElement)("td",null,u(a)),(0,C.createElement)("td",null,u(r)),(0,C.createElement)("td",null,p(l,s)),(0,C.createElement)("td",null,m(o)),(0,C.createElement)("td",null,m(n)))})(e,t))))))))}},rt=[["core/paragraph",{fontSize:"large",placeholder:(0,E.__)("Callout title…")}],["core/paragraph",{placeholder:(0,E.__)("Enter the callout message or replace…")}]],lt=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"hrswp/callout","title":"Callout","category":"layout","description":"Display content in a callout module.","keywords":["callout","message"],"textdomain":"default","supports":{"align":true},"styles":[{"name":"default","label":"Default","isDefault":true},{"name":"positive","label":"Positive"},{"name":"caution","label":"Caution"},{"name":"warning","label":"Warning"}],"editorScript":"hrswp-blocks-script","editorStyle":"hrswp-blocks-editor-style","style":"hrswp-blocks-style"}'),nt=(0,C.createElement)(B.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,C.createElement)(B.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,C.createElement)(B.Path,{d:"M21,3H3C1.9,3,1,3.9,1,5v14c0,1.1,0.9,2,2,2h18c1.1,0,2-0.9,2-2V5C23,3.9,22.1,3,21,3z M21,19H3V5h18V19z M5,6h14v3H5V6z M5,11h14v6.25H5V11z"})),{name:ot}=lt,st={icon:nt,example:{innerBlocks:[{name:"core/paragraph",attributes:{fontSize:"large", /* translators: example text. */ content:(0,E.__)("Riverside Wren (Cantorchilus semibadius)")}},{name:"core/paragraph",attributes:{ /* translators: example text. */ From 5f211c5e1500479afdae0edb61920bf7d8bd1559 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 2 Apr 2024 11:52:17 -0700 Subject: [PATCH 09/12] :bookmark: 3.6.0-rc.2 --- CHANGELOG.md | 4 +++- hrswp-blocks.php | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0813be3..c66f235 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,10 +17,11 @@ Changelog formatting (http://semver.org/): ### Security (in case of vulnerabilities.) --> -## 3.6.0-rc.1 (:construction: TBD) +## 3.6.0-rc.2 (:construction: TBD) ### Changed +- Posts List block: Add offset controls. (13578a0) - Include linting step in default build process. (9524183) - Fix #139 upgrade Node.js to v20 and NPM and use `.nvmrc` to track version. (5110d24, 1709f73) - Update phpcs config rules. (e8a3bee) @@ -40,6 +41,7 @@ Changelog formatting (http://semver.org/): - Fix #141 use `.nvmrc` in GitHub Action. (11d143a) - Fix `__construct` should not return value. (e8a3bee) - Fix #140 replace get_page_by_title with get_posts. (e8a3bee) +- Fix #146 replace deprecated value attribute with inner blocks. (d80268e) - Fix #135 deprecated value attribute on list block. (ef67d84) ### Security diff --git a/hrswp-blocks.php b/hrswp-blocks.php index 2088b0a..9e6c581 100644 --- a/hrswp-blocks.php +++ b/hrswp-blocks.php @@ -1,7 +1,7 @@ Date: Tue, 2 Apr 2024 12:00:16 -0700 Subject: [PATCH 10/12] Fix npm audit issues --- package-lock.json | 242 ++++++++-------------------------------------- 1 file changed, 38 insertions(+), 204 deletions(-) diff --git a/package-lock.json b/package-lock.json index ccb790a..6c0e8a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@washingtonstateuniversity/hrswp-plugin-blocks", - "version": "3.5.0", + "version": "3.6.0-rc.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@washingtonstateuniversity/hrswp-plugin-blocks", - "version": "3.5.0", + "version": "3.6.0-rc.2", "license": "GPL-3.0-or-later", "devDependencies": { "@wordpress/icons": "^9.44.0", @@ -90,15 +90,6 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/eslint-parser": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.24.1.tgz", @@ -117,15 +108,6 @@ "eslint": "^7.5.0 || ^8.0.0" } }, - "node_modules/@babel/eslint-parser/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/generator": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.1.tgz", @@ -181,15 +163,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/helper-create-class-features-plugin": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.1.tgz", @@ -213,15 +186,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/helper-create-regexp-features-plugin": { "version": "7.22.15", "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", @@ -239,15 +203,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/helper-define-polyfill-provider": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.1.tgz", @@ -1654,15 +1609,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/plugin-transform-shorthand-properties": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz", @@ -1914,15 +1860,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/preset-env/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/preset-modules": { "version": "0.1.6-no-external-plugins", "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", @@ -6589,15 +6526,6 @@ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/babel-plugin-polyfill-corejs3": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz", @@ -7978,9 +7906,9 @@ } }, "node_modules/css-loader/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -9290,15 +9218,6 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/eslint-plugin-jest": { "version": "27.9.0", "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz", @@ -9683,15 +9602,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -10080,9 +9990,9 @@ "dev": true }, "node_modules/express": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.0.tgz", - "integrity": "sha512-/ERliX0l7UuHEgAy7HU2FRsiz3ScIKNl/iwnoYzHTJC0Sqj3ctWDD3MQ9CbUEfjshvxXImWaeukD0Xo7a2lWLA==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", + "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", "dev": true, "dependencies": { "accepts": "~1.3.8", @@ -14398,9 +14308,9 @@ } }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -14694,9 +14604,9 @@ } }, "node_modules/npm-run-all/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -16020,9 +15930,9 @@ } }, "node_modules/postcss-loader/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -17962,9 +17872,9 @@ } }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -20848,14 +20758,6 @@ "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/eslint-parser": { @@ -20867,14 +20769,6 @@ "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", "eslint-visitor-keys": "^2.1.0", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/generator": { @@ -20918,14 +20812,6 @@ "browserslist": "^4.22.2", "lru-cache": "^5.1.1", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/helper-create-class-features-plugin": { @@ -20943,14 +20829,6 @@ "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", "@babel/helper-split-export-declaration": "^7.22.6", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/helper-create-regexp-features-plugin": { @@ -20962,14 +20840,6 @@ "@babel/helper-annotate-as-pure": "^7.22.5", "regexpu-core": "^5.3.1", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/helper-define-polyfill-provider": { @@ -21907,14 +21777,6 @@ "babel-plugin-polyfill-corejs3": "^0.10.1", "babel-plugin-polyfill-regenerator": "^0.6.1", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/plugin-transform-shorthand-properties": { @@ -22100,14 +21962,6 @@ "babel-plugin-polyfill-regenerator": "^0.6.1", "core-js-compat": "^3.31.0", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "@babel/preset-modules": { @@ -25235,14 +25089,6 @@ "@babel/compat-data": "^7.22.6", "@babel/helper-define-polyfill-provider": "^0.6.1", "semver": "^6.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - } } }, "babel-plugin-polyfill-corejs3": { @@ -26269,9 +26115,9 @@ } }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -27337,12 +27183,6 @@ "requires": { "esutils": "^2.0.2" } - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true } } }, @@ -27582,12 +27422,6 @@ "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true } } }, @@ -27792,9 +27626,9 @@ "dev": true }, "express": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.0.tgz", - "integrity": "sha512-/ERliX0l7UuHEgAy7HU2FRsiz3ScIKNl/iwnoYzHTJC0Sqj3ctWDD3MQ9CbUEfjshvxXImWaeukD0Xo7a2lWLA==", + "version": "4.19.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", + "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", "dev": true, "requires": { "accepts": "~1.3.8", @@ -31035,9 +30869,9 @@ }, "dependencies": { "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true } } @@ -31255,9 +31089,9 @@ "dev": true }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true }, "supports-color": { @@ -32083,9 +31917,9 @@ } }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -33366,9 +33200,9 @@ } }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true }, "send": { From 635bfd8eeeaa2daba8c51673452db72c8b7dc39f Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 9 Apr 2024 09:50:47 -0700 Subject: [PATCH 11/12] Bump WP tested-to to 6.5.0 to close #138 --- README.md | 2 +- hrswp-blocks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0037f18..385d70e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # HRSWP Blocks -[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Build Status](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/actions) [![Release Version](https://img.shields.io/github/v/release/washingtonstateuniversity/hrswp-plugin-blocks)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/releases/latest) ![WordPress tested up to version 6.4.1](https://img.shields.io/badge/WordPress-v6.4.1%20tested-success.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![GPLv3 License](https://img.shields.io/github/license/washingtonstateuniversity/hrswp-plugin-blocks)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/blob/develop/LICENSE.md) +[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Build Status](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/actions) [![Release Version](https://img.shields.io/github/v/release/washingtonstateuniversity/hrswp-plugin-blocks)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/releases/latest) ![WordPress tested up to version 6.5.0](https://img.shields.io/badge/WordPress-v6.5.0%20tested-success.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![GPLv3 License](https://img.shields.io/github/license/washingtonstateuniversity/hrswp-plugin-blocks)](https://github.com/washingtonstateuniversity/hrswp-plugin-blocks/blob/develop/LICENSE.md) ## Overview diff --git a/hrswp-blocks.php b/hrswp-blocks.php index 9e6c581..fb5fde8 100644 --- a/hrswp-blocks.php +++ b/hrswp-blocks.php @@ -9,7 +9,7 @@ * Update URI: https://api.github.com/repos/washingtonstateuniversity/hrswp-plugin-blocks/releases/latest * Text Domain: hrswp-blocks * Requires at least: 6.1 - * Tested up to: 6.4.1 + * Tested up to: 6.5.0 * Requires PHP: 7.4 * * @package HRSWP_Blocks From 97614e4876b76a44fbf0d25020a515c8309bcba8 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Tue, 9 Apr 2024 09:52:23 -0700 Subject: [PATCH 12/12] :bookmark: 3.6.0 --- CHANGELOG.md | 3 ++- hrswp-blocks.php | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c66f235..34ad47a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,10 +17,11 @@ Changelog formatting (http://semver.org/): ### Security (in case of vulnerabilities.) --> -## 3.6.0-rc.2 (:construction: TBD) +## 3.6.0 (2024-04-09) ### Changed +- Bump WP tested-to to 6.5.0 to close #138. - Posts List block: Add offset controls. (13578a0) - Include linting step in default build process. (9524183) - Fix #139 upgrade Node.js to v20 and NPM and use `.nvmrc` to track version. (5110d24, 1709f73) diff --git a/hrswp-blocks.php b/hrswp-blocks.php index fb5fde8..25e530a 100644 --- a/hrswp-blocks.php +++ b/hrswp-blocks.php @@ -1,7 +1,7 @@