From aa242d5b0602066aa63009a4ea9f56c2645480cb Mon Sep 17 00:00:00 2001 From: Mahesh Murali P Date: Fri, 15 Nov 2024 16:05:20 +0000 Subject: [PATCH 1/2] DI-6928 Fix error when trying to activate without theme --- nhsblocks.php | 7 +++++-- readme.txt | 5 ++++- style.css | 2 +- style.scss | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/nhsblocks.php b/nhsblocks.php index 57baa0c..030555d 100644 --- a/nhsblocks.php +++ b/nhsblocks.php @@ -8,14 +8,17 @@ * Requires at least: 5.0 * Tested up to: 6.2 * - * Version: 1.3.16 - * Stable tag: 1.3.16 + * Version: 1.3.17 + * Stable tag: 1.3.17 * * @package nhsblocks */ defined( 'ABSPATH' ) || exit; +if (!function_exists('get_plugin_data')) { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; +} /** * Load translations (if any) for the plugin from the /languages/ folder. * diff --git a/readme.txt b/readme.txt index a955170..73c0df8 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Plugin Name:: NHS Blocks Plugin URI: https://digital.leadershipacademy.nhs.uk/digital-capabilities/websites/nhs-blocks-user-guide/ Requires at least: 5.3 Tested up to: 6.6 -Stable tag: 1.3.16 +Stable tag: 1.3.17 Requires PHP: 5.6 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -55,6 +55,9 @@ This plugin has been built specifically for use in the NHS, but it is open sourc == Changelog == += 1.3.17 = + * Fix error when trying to activate this plugin before theme selection + = 1.3.16 = * Security update * Fix for simple reveal block diff --git a/style.css b/style.css index be426b9..701649e 100644 --- a/style.css +++ b/style.css @@ -8,7 +8,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html Text Domain: nhsblocks Tags: NHS, NHS Digital, NHS Frontend, National Health Service, Leadership Academy Description: Gutenberg native custom blocks companion plugin for the NHS Nightingale theme (can also be standalone). -Version: 1.3.16 +Version: 1.3.17 **********************************************************************************************/ /* stylelint-disable color-no-hex */ diff --git a/style.scss b/style.scss index 914ce00..a450de4 100644 --- a/style.scss +++ b/style.scss @@ -8,7 +8,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html Text Domain: nhsblocks Tags: NHS, NHS Digital, NHS Frontend, National Health Service, Leadership Academy Description: Gutenberg native custom blocks companion plugin for the NHS Nightingale theme (can also be standalone). -Version: 1.3.16 +Version: 1.3.17 **********************************************************************************************/ From 512af05ebc5ec1d99ae4f9fb599ff56a9d063c2a Mon Sep 17 00:00:00 2001 From: Mahesh Murali P Date: Tue, 12 Nov 2024 13:11:01 +0000 Subject: [PATCH 2/2] DI-6917 High severity security update --- build/index.asset.php | 2 +- build/index.js | 4 +- package-lock.json | 866 +++++++++++++++++++++--------------------- readme.txt | 1 + 4 files changed, 437 insertions(+), 436 deletions(-) diff --git a/build/index.asset.php b/build/index.asset.php index fa502ee..3341191 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('lodash', 'react'), 'version' => '0fba4a3fd14162328083'); + array('lodash', 'react'), 'version' => '49619a2c5a6eff094434'); diff --git a/build/index.js b/build/index.js index 6807570..17d64fa 100644 --- a/build/index.js +++ b/build/index.js @@ -1,4 +1,4 @@ -(()=>{var e={957:()=>{const{registerBlockStyle:e,unregisterBlockStyle:t}=wp.blocks;wp.domReady((()=>{t("core/image",["default","rounded"]),e("core/image",[{name:"nhsuk-image",label:"NHS Image",isDefault:!0},{name:"default",label:"Default"}]),t("core/table",["regular"]),e("core/table",[{name:"nhsuk-table-responsive",label:"NHS Table",isDefault:!0},{name:"default",label:"Default"}])}))}},t={};function n(a){var l=t[a];if(void 0!==l)return l.exports;var s=t[a]={exports:{}};return e[a](s,s.exports,n),s.exports}(()=>{"use strict";const e=window.React,t=(window.lodash,wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"59.000",height:"30"}))),a=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30"})),l=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"30"})),s=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"31.000",y:"20.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"29.000",height:"19"})),r=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"41.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"19.000",height:"19"})),c=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"41.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"19.000",height:"19"})),o=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"39.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"30"})),i=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"39.000",height:"30"})),u=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"46.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30"})),m=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"46.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"16.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"14.000",height:"30"})),h=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"16.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"14.000",height:"30"})),{__}=wp.i18n,d=[{name:"fullwidth",label:__("Full Width","nhsblocks"),icon:t,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-full"}]]},{name:"twocols",label:__("Two Columns","nhsblocks"),isDefault:!0,icon:a,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}]]},{name:"threecols",label:__("Three Columns","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]},{name:"twothreecols",label:__("Two Columns Then Three Columns","nhsblocks"),icon:c,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]},{name:"threetwocols",label:__("Three Columns then Two Columns","nhsblocks"),icon:s,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}]]},{name:"threethreecols",label:__("Three Columns on Two Rows","nhsblocks"),icon:r,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]}],{__:k}=wp.i18n,{registerBlockType:p,createBlock:b}=wp.blocks,{RichText:g,InspectorControls:E,URLInputButton:v,ColorPalette:_,MediaUpload:w,InnerBlocks:y,__experimentalBlockVariationPicker:N}=wp.blockEditor,{useDispatch:x,useSelect:T}=wp.data;p("nhsblocks/dashboardnav",{title:k("Dashboard Navigation","nhsblocks"),category:"nhsblocks",icon:"tagcloud",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=x("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=T((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>b(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full nhsuk-dashboard"},(0,e.createElement)(y,{template:d}))):(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full nhsuk-dashboard"},(0,e.createElement)(N,{variations:d,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}})))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-dashboard"},(0,e.createElement)(y.Content,null)))}}),p("nhsblocks/dashpanel",{title:k("Dashboard Region","nhsblocks"),description:k("Simple image background with text and link to give Dashboard navigation panel"),icon:"feedback",category:"nhsblocks",parent:["nhsblocks/dashboardnav"],attributes:{panelTitle:{type:"string",source:"html",selector:"h3"},panelLink:{type:"string",source:"attribute",selector:".nhsuk-promo__link-wrapper",attribute:"href"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"},overlayColor:{type:"string",default:"#ffffff"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{overlayColor:s,backgroundImage:r,panelTitle:c,panelLink:o}=a;return[(0,e.createElement)(E,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Add a link for this panel"),(0,e.createElement)(v,{className:"nhsblocks-dropdown__input",label:k("Dashboard Link","nhsblocks"),onChange:e=>{n({panelLink:e})},url:o})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a background image:"),(0,e.createElement)(w,{onSelect:function(e){n({backgroundImage:e.sizes.full.url})},type:"image",value:r,render:({open:t})=>(0,e.createElement)("button",{className:"button button-primary button-hero",onClick:t},"Upload Image!")})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"OR")," Select a background color: ",(0,e.createElement)("br",null),(0,e.createElement)("i",null,"(this will be ignored if you choose an image above)"),(0,e.createElement)(_,{value:s,onChange:function(e){n({overlayColor:e})}}))),(0,e.createElement)("div",{className:`${l} nhsuk-panel-group__item`},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundColor:`${s}`,backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},(0,e.createElement)(g,{placeholder:k("Panel Title","nhsblocks"),value:c,onChange:e=>{n({panelTitle:e})}})),(0,e.createElement)("img",{src:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:""})))]},save:t=>{const{attributes:{overlayColor:n,backgroundImage:a,panelTitle:l,panelLink:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-panel-group__item"},(0,e.createElement)("a",{href:s,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundImage:`url(${a})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${n}`}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},(0,e.createElement)(g.Content,{value:l})),(0,e.createElement)("img",{src:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:l}))))},deprecated:[{attributes:{panelTitle:{type:"string",source:"html",selector:"h3"},panelLink:{type:"string",source:"attribute",selector:".nhsuk-promo__link-wrapper",attribute:"href"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"},overlayColor:{type:"string",default:"#ffffff"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-panel-group__item"},(0,e.createElement)("a",{href:t.panelLink,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundImage:`url(${t.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${t.overlayColor}`}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},"`$",t.panelTitle,"`"),(0,e.createElement)("img",{src:"/wp-content/themes/nightingale-2-0/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:""}))))}]});const{__:f}=wp.i18n,{registerBlockType:C}=wp.blocks,{RichText:B,InnerBlocks:I}=wp.blockEditor;C("nhsblocks/dodont",{title:f("Do and Don't List","nhsblocks"),category:"nhsblocks",icon:"yes-alt",example:{attributes:{panelTitle:"Do and Dont List"},innerBlocks:[{name:"nhsblocks/doitem",attributes:{panelText:"This is an item to definitely do"}},{name:"nhsblocks/dontitem",attributes:{panelText:"This is an item to definitely NOT do"}}]},attributes:{panelTitle:{type:"string",source:"html",selector:"h3"}},edit:t=>{const{attributes:{panelTitle:n},className:a,setAttributes:l}=t;return(0,e.createElement)("div",{className:"nhsuk-do-dont-list"},(0,e.createElement)("h3",{className:"nhsuk-do-dont-list__label"},(0,e.createElement)(B,{placeholder:f("Panel Title","nhsblocks"),value:n,onChange:e=>{l({panelTitle:e})}})),(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-list--cross"},(0,e.createElement)(I,{allowedBlocks:[]})))},save:t=>{const{attributes:{panelTitle:n,panelText:a}}=t;return(0,e.createElement)("div",{className:"nhsuk-do-dont-list"},(0,e.createElement)("h3",{className:"nhsuk-do-dont-list__label"},(0,e.createElement)(B.Content,{value:n})),(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-list--cross"},(0,e.createElement)(I.Content,null)))}}),C("nhsblocks/doitem",{title:f("List Item with Tick","nhsblocks"),category:"nhsblocks",icon:"yes",parent:["nhsblocks/dodont"],attributes:{panelText:{type:"string",source:"html",selector:"span"}},edit:t=>{const{attributes:{panelText:n},setAttributes:a}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__tick",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},(0,e.createElement)("path",{strokeWidth:"4",strokeLinecap:"round",d:"M18.4 7.8l-8.5 8.4L5.6 12"})),(0,e.createElement)("span",null,(0,e.createElement)(B,{placeholder:f("Text","nhsblocks"),value:n,onChange:e=>{a({panelText:e})}})))},save:t=>{const{attributes:{panelText:n}}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__tick",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},(0,e.createElement)("path",{strokeWidth:"4",strokeLinecap:"round",d:"M18.4 7.8l-8.5 8.4L5.6 12"})),(0,e.createElement)("span",null,(0,e.createElement)(B.Content,{value:n})))}}),C("nhsblocks/dontitem",{title:f("List Item with Cross","nhsblocks"),category:"nhsblocks",icon:"no-alt",parent:["nhsblocks/dodont"],attributes:{panelText:{type:"string",source:"html",selector:"span"}},edit:t=>{const{attributes:{panelText:n},setAttributes:a}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true"},(0,e.createElement)("path",{d:"M17 18.5c-.4 0-.8-.1-1.1-.4l-10-10c-.6-.6-.6-1.6 0-2.1.6-.6 1.5-.6 2.1 0l10 10c.6.6.6 1.5 0 2.1-.3.3-.6.4-1 .4z"}),(0,e.createElement)("path",{d:"M7 18.5c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1l10-10c.6-.6 1.5-.6 2.1 0 .6.6.6 1.5 0 2.1l-10 10c-.3.3-.6.4-1 .4z"})),(0,e.createElement)("span",null,(0,e.createElement)(B,{placeholder:f("Text","nhsblocks"),value:n,onChange:e=>{a({panelText:e})}})))},save:t=>{const{attributes:{panelText:n}}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true"},(0,e.createElement)("path",{d:"M17 18.5c-.4 0-.8-.1-1.1-.4l-10-10c-.6-.6-.6-1.6 0-2.1.6-.6 1.5-.6 2.1 0l10 10c.6.6.6 1.5 0 2.1-.3.3-.6.4-1 .4z"}),(0,e.createElement)("path",{d:"M7 18.5c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1l10-10c.6-.6 1.5-.6 2.1 0 .6.6.6 1.5 0 2.1l-10 10c-.3.3-.6.4-1 .4z"})),(0,e.createElement)("span",null,(0,e.createElement)(B.Content,{value:n})))}});const{__:L}=wp.i18n,{registerBlockType:P}=wp.blocks,{RichText:S,InspectorControls:A,BlockControls:q,BlockVerticalAlignmentToolbar:R,URLInputButton:D}=wp.blockEditor;P("nhsblocks/nhsbutton",{title:L("Button","nhsblocks"),category:"nhsblocks",icon:"admin-links",styles:[{name:"green",label:L("Standard (Green)"),isDefault:!0},{name:"secondary",label:L("Secondary (Grey)")},{name:"reverse",label:L("Reverse (White)")}],supports:{align:!0},example:{attributes:{buttonLabel:"NHS styled button",buttonLink:"https://www.nhs.uk",verticalAlignment:"left"}},attributes:{buttonLabel:{type:"string",source:"html",selector:".nhsuk-button"},buttonLink:{type:"string",source:"attribute",selector:"a.nhsuk-button",attribute:"href"},verticalAlignment:{type:"string"}},edit:t=>{const{attributes:{buttonLabel:n,buttonLink:a,verticalAlignment:l},className:s,setAttributes:r}=t;return[(0,e.createElement)(A,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Add a link for this button by clicking the chain icon below."),(0,e.createElement)(D,{className:"nhsblocks-dropdown__input",label:L("Button URL","nhsblocks"),onChange:e=>{r({buttonLink:e})},url:a}))),(0,e.createElement)(q,null,(0,e.createElement)(R,{onChange:e=>{r({verticalAlignment:e})},value:l})),(0,e.createElement)("div",{className:`${s} nhsuk-button`},(0,e.createElement)(S,{value:n,onChange:e=>{r({buttonLabel:e})},placeholder:"Button label"}))]},save:t=>{const{attributes:{buttonLabel:n,buttonLink:a}}=t;return(0,e.createElement)("a",{href:a,className:"nhsuk-button"},(0,e.createElement)(S.Content,{value:n}))}});const{__:O}=wp.i18n,{registerBlockType:$}=wp.blocks,{RichText:H,InnerBlocks:U,InspectorControls:V,useBlockProps:Q}=wp.blockEditor,{ToggleControl:z,PanelBody:W,PanelRow:G,RadioControl:M,clientId:F}=wp.components,j=[["core/image",{align:"right",width:"150px"}]];$("nhsblocks/reveal1",{title:O("Simple Reveal","nhsblocks"),category:"nhsblocks",icon:"plus-alt",styles:[{name:"downarrow",label:O("Down Arrow"),isDefault:!0},{name:"expander",label:O("Plus Icon")}],example:{attributes:{revealTitle:"Expandable Region",revealText:"This is text inside an expandable region. It all shows up when this region is opened, but can also be minimised",className:"is-style-expander"}},attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"},withImage:{type:"boolean",default:!1}},edit:t=>{const n=Q(),{attributes:{revealTitle:a,revealText:l,withImage:s},className:r,setAttributes:c}=t;return[(0,e.createElement)(V,null,(0,e.createElement)(W,null,(0,e.createElement)(G,null,(0,e.createElement)(z,{label:"Include an image?",checked:s,onChange:e=>c({withImage:e})})))),(0,e.createElement)("details",{className:`${r} nhsuk-details newstyle`,open:!0},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},(0,e.createElement)(H,{placeholder:O("Reveal Title","nhsblocks"),value:a,onChange:e=>{c({revealTitle:e})}}))),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},!0===s&&(0,e.createElement)(U,{template:j}),(0,e.createElement)(H,{...n,placeholder:O("Reveal Contents","nhsblocks"),onChange:e=>{c({revealText:e})},value:l})))]},save:t=>{const n=Q.save(),{attributes:{revealTitle:a,revealText:l,withImage:s}}=t;return(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},(0,e.createElement)(H.Content,{value:a}))),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},!0===s&&(0,e.createElement)(U.Content,null),(0,e.createElement)(H.Content,{...n,value:l})))},deprecated:[{attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"}},save:({attributes:t})=>(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},"`$",t.revealTitle,"`")),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},"`$",t.revealText,"`"))},{attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"}},save:({attributes:t})=>(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},"`$",t.revealTitle,"`")),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},"`$",t.revealText,"`"))}]});const{__:Y}=wp.i18n,{registerBlockType:J}=wp.blocks,{RichText:K,InnerBlocks:X}=wp.blockEditor,Z=[["core/paragraph",{placeholder:"Panel Text"}],["nhsblocks/nhsbutton",{align:"right"}]];J("nhsblocks/panel1",{title:Y("Panel Region","nhsblocks"),description:Y("By default this block includes a title, block of text and button link. You can remove the button if you wish by clicking it then clicking three dots on the navigation bar at the top of the page then the bin","nhsblocks"),icon:"feedback",category:"nhsblocks",styles:[{name:"default",label:Y("Plain white panel"),isDefault:!0},{name:"panel-grey",label:Y("Grey")},{name:"panel-with-label",label:Y("With Label")}],example:{attributes:{panelTitle:"Example Panel",className:"is-style-panel-grey"},innerBlocks:[{name:"core/paragraph",attributes:{content:Y("This is the content of a panel block, and it has lots of useful information")}},{name:"nhsblocks/nhsbutton",attributes:{buttonLabel:"NHS styled button",buttonLink:"https://www.nhs.uk",className:"is-style-secondary",align:"right"}}]},attributes:{panelTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-panel1 h2"}},edit:t=>{const{attributes:{panelTitle:n},className:a,setAttributes:l}=t;return(0,e.createElement)("div",{className:`${a} nhsuk-card`},(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",null,(0,e.createElement)(K,{placeholder:Y("Panel Title","nhsblocks"),value:n,onChange:e=>{l({panelTitle:e})}})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(X,{template:Z}))))},save:t=>{const{attributes:{panelTitle:n,className:a}}=t;return(0,e.createElement)("div",{className:`${a} nhsuk-card`},(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",null,(0,e.createElement)(K.Content,{value:n})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(X.Content,null))))},deprecated:[{attributes:{panelTitle:{type:"string",source:"html",selector:"h3"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-panel"},(0,e.createElement)("h3",null,(0,e.createElement)(K.Content,{value:t.panelTitle})),(0,e.createElement)("div",{className:"paneltext"},(0,e.createElement)(X.Content,null)))}]});const{__:ee}=wp.i18n,{registerBlockType:te}=wp.blocks,{RichText:ne,InspectorControls:ae,BlockControls:le,BlockVerticalAlignmentToolbar:se}=wp.blockEditor;te("nhsblocks/tags",{title:ee("Tag","nhsblocks"),description:ee("Tags are just used to indicate a status. Do not add links. Use adjectives rather than verbs for the names of your tags. Using a verb might make a user think that clicking on them will do something","nhsblocks"),category:"nhsblocks",icon:"admin-links",styles:[{name:"blue",label:ee("Standard (Blue)"),isDefault:!0},{name:"white",label:ee("White")},{name:"grey",label:ee("Grey")},{name:"green",label:ee("Green")},{name:"aqua-green",label:ee("Aqua Green")},{name:"blue",label:ee("Light Blue")},{name:"purple",label:ee("Purple")},{name:"pink",label:ee("Pink")},{name:"red",label:ee("Red")},{name:"orange",label:ee("Orange")},{name:"yellow",label:ee("Yellow")}],supports:{align:!1},example:{attributes:{tagLabel:"New"}},attributes:{tagLabel:{type:"string",source:"html",selector:".nhsuk-tag"}},edit:t=>{const{attributes:{tagLabel:n},className:a,setAttributes:l}=t;return[(0,e.createElement)("strong",{className:`${a} nhsuk-tag`},(0,e.createElement)(ne,{value:n,onChange:e=>{l({tagLabel:e})},placeholder:"Tag label"}))]},save:t=>{const{attributes:{tagLabel:n}}=t;return(0,e.createElement)("strong",{className:"nhsuk-tag"},(0,e.createElement)(ne.Content,{value:n}))}});const{__:re}=wp.i18n,{registerBlockType:ce}=wp.blocks,{URLInputButton:oe,RichText:ie,InnerBlocks:ue,MediaUpload:me,InspectorControls:he,useBlockProps:de}=wp.blockEditor;ce("nhsblocks/promo1",{title:re("Promo Region","nhsblocks"),category:"nhsblocks",icon:"megaphone",styles:[{name:"default",label:re("Standard"),isDefault:!0},{name:"promo-small",label:re("Smaller Text")}],example:{attributes:{promoTitle:"Promo Box",promoText:"This is the content of the box to send users to your promoted page",promoLink:"https://www.nhs.uk",align:"center"},innerBlocks:[{name:"core/image",attributes:{url:"https://assets.nhs.uk/prod/images/A_0218_healthy-eating-main_BATM01_copy.width-690.jpg"}}]},attributes:{promoTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__link"},promoText:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__description"},promoLink:{type:"string",source:"attribute",selector:".wp-block-nhsblocks-promo1 a.nhsuk-card__link",attribute:"href"}},edit:t=>{const n=de(),{attributes:{promoTitle:a,promoText:l,promoLink:s},className:r,setAttributes:c}=t;return(0,e.createElement)("div",{className:`${r} nhsuk-card nhsuk-card--clickable`},(0,e.createElement)(ue,{allowedBlocks:["core/image"]}),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)(oe,{className:"nhsblocks-dropdown__input",label:re("Panel Link","nhsblocks"),onChange:e=>{c({promoLink:e})},url:s}),(0,e.createElement)(ie,{placeholder:re("Promo Title","nhsblocks"),value:a,onChange:e=>{c({promoTitle:e})}})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie,{...n,placeholder:re("Promo Contents","nhsblocks"),onChange:e=>{c({promoText:e})},value:l}))))},save:t=>{const n=de.save(),{attributes:{promoTitle:a,promoText:l,promoLink:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--clickable"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)("a",{href:s,className:"nhsuk-card__link"},(0,e.createElement)(ie.Content,{value:a}))),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie.Content,{...n,value:l}))))},deprecated:[{attributes:{promoTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__content .nhsuk-card__heading"},promoText:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__description"},promoLink:{type:"string",source:"attribute",selector:".wp-block-nhsblocks-promo1 a.nhsuk-card__link",attribute:"href"}},save:t=>{const n=de.save(),{attributes:{promoTitle:a,promoText:l,promoLink:s}}=t;var r=a.replace("","").replace("","");return(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--clickable"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)(ie.Content,{...n,value:r})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie.Content,{...n,value:l}))))}},{attributes:{promoTitle:{type:"string",source:"html",selector:".nhsuk-promo__heading"},promoText:{type:"string",source:"html",selector:".nhsuk-promo__description"},promoLink:{type:"string",source:"attribute",selector:".nhsuk-promo a",attribute:"href"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-promo"},(0,e.createElement)("a",{href:t.promoLink,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-promo__content"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("h3",{className:"nhsuk-promo__heading"},t.promoTitle),(0,e.createElement)("div",{className:"nhsuk-promo__description"},t.promoText))))}]});const{__:ke}=wp.i18n,pe=[["nhsblocks/promo1"]],be=[{name:"twocolspro",label:"nhsblocks",isDefault:!0,icon:a,innerBlocks:[["nhsblocks/onehalfpro"],["nhsblocks/onehalfpro"]]},{name:"threecolspro",label:ke("Three Columns Promos","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/onethirdpro"],["nhsblocks/onethirdpro"],["nhsblocks/onethirdpro"]]},{name:"one3two3pro",label:ke("One Third / Two Thirds Columns Promos","nhsblocks"),icon:o,innerBlocks:[["nhsblocks/onethirdpro"],["nhsblocks/twothirdspro"]]},{name:"two3one3pro",label:ke("Two Thirds / One Third Columns Promos","nhsblocks"),icon:i,innerBlocks:[["nhsblocks/twothirdspro"],["nhsblocks/onethirdpro"]]},{name:"one4one2one4pro",label:ke("One Quarter / One Half / One Quarter Columns Promos","nhsblocks"),icon:m,innerBlocks:[["nhsblocks/onequarterpro"],["nhsblocks/onehalfpro"],["nhsblocks/onequarterpro"]]},{name:"one4one4one2pro",label:ke("One Quarter / One Quarter / One Half Columns Promos","nhsblocks"),icon:h,innerBlocks:[["nhsblocks/onequarterpro"],["nhsblocks/onequarterpro"],["nhsblocks/onehalfpro"]]},{name:"one2one4one4",label:ke("One Half / One Quarter / One Quarter Columns Promos","nhsblocks"),icon:u,innerBlocks:[["nhsblocks/onehalfpro"],["nhsblocks/onequarterpro"],["nhsblocks/onequarterpro"]]}],{__:ge}=wp.i18n,{registerBlockType:Ee,createBlock:ve}=wp.blocks,{InnerBlocks:_e,__experimentalBlockVariationPicker:we}=wp.blockEditor,{useDispatch:ye,useSelect:Ne}=wp.data;Ee("nhsblocks/promogroup",{title:ge("Grouped Promos","nhsblocks"),category:"nhsblocks",icon:"layout",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=ye("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=Ne((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>ve(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(_e,{template:be})):(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(we,{variations:be,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(_e.Content,null))}}),Ee("nhsblocks/onehalfpro",{title:ge("One Half Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/onethirdpro",{title:ge("One Third Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/onequarterpro",{title:ge("One Quarter Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/twothirdspro",{title:ge("Two Thirds Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/threequarterspro",{title:ge("Three Quarter Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))});const{__:xe}=wp.i18n,{registerBlockType:Te}=wp.blocks,{RichText:fe,useBlockProps:Ce}=wp.blockEditor;Te("nhsblocks/quote1",{title:xe("Simple Quote","nhsblocks"),category:"nhsblocks",icon:"format-quote",styles:[{name:"standard",label:xe("Standard"),isDefault:!0},{name:"quote-reverse",label:xe("Inverse")}],example:{attributes:{quoteName:"Tony Blacker",quoteText:"Nightingale is an incredibly flexible theme. With NHSBlocks added in, it is amazing."}},attributes:{quoteName:{type:"string",source:"html",selector:".nhsuk-inset-text__quote-attribution"},quoteText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-inset-text__quote"}},edit:t=>{const n=Ce(),{attributes:{quoteName:a,quoteText:l},className:s,setAttributes:r}=t;return(0,e.createElement)("div",{className:`${s} nhsuk-inset-text`},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Quote / Testimonial:"," "),(0,e.createElement)("div",{className:"nhsuk-inset-text__quote"},(0,e.createElement)(fe,{...n,placeholder:xe("Quote","nhsblocks"),onChange:e=>{r({quoteText:e})},value:l})),(0,e.createElement)("span",{className:"nhsuk-inset-text__quote-attribution"},(0,e.createElement)(fe,{placeholder:xe("Quote Name","nhsblocks"),value:a,onChange:e=>{r({quoteName:e})}})))},save:t=>{const n=Ce.save(),{attributes:{quoteName:a,quoteText:l}}=t;return(0,e.createElement)("div",{className:"nhsuk-inset-text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Quote / Testimonial:"," "),(0,e.createElement)("div",{className:"nhsuk-inset-text__quote"},(0,e.createElement)(fe.Content,{...n,value:l})),(0,e.createElement)("span",{className:"nhsuk-inset-text__quote-attribution"},(0,e.createElement)(fe.Content,{value:a})))}});const{__:Be}=wp.i18n,{registerBlockType:Ie}=wp.blocks,{RichText:Le,InnerBlocks:Pe,InspectorControls:Se,useBlockProps:Ae}=wp.blockEditor,{ToggleControl:qe,PanelBody:Re,PanelRow:De,RadioControl:Oe}=wp.components,{withState:$e}=wp.compose,He=[["core/image",{align:"right",width:150}]];Ie("nhsblocks/card1",{title:Be("Card Region","nhsblocks"),category:"nhsblocks",icon:"category",example:{attributes:{cardTitle:"This is a card",cardText:"This is the content of the card"},innerBlocks:[{name:"core/image",attributes:{align:"right",width:150}}]},attributes:{innerBlocks_length:{type:"number",default:0},cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"},withImage:{type:"boolean",default:!1}},edit:t=>{const n=Ae(),{attributes:{cardTitle:a,cardText:l,withImage:s},clientId:r,className:c,setAttributes:o}=t;return[(0,e.createElement)(Se,null,(0,e.createElement)(Re,null,(0,e.createElement)(De,null,(0,e.createElement)(qe,{label:"Include an image?",checked:s,onChange:e=>o({withImage:e})})))),(0,e.createElement)("div",{className:`${c} nhsuk-care-card`},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le,{placeholder:Be("Card Title","nhsblocks"),value:a,onChange:e=>{o({cardTitle:e})}})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},!0===s&&(0,e.createElement)(Pe,{template:He}),(0,e.createElement)(Le,{...n,placeholder:Be("Card Contents","nhsblocks"),onChange:e=>{o({cardText:e})},value:l})))]},save:t=>{const n=Ae.save(),{attributes:{cardTitle:a,cardText:l,withImage:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:a})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},!0===s&&(0,e.createElement)(Pe.Content,null),(0,e.createElement)(Le.Content,{...n,value:l})))},deprecated:[{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"heading","aria-level":"3"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"heading"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--care"},(0,e.createElement)("div",{className:"nhsuk-card--care__heading-container"},(0,e.createElement)("h2",{className:"nhsuk-card--care__heading"},(0,e.createElement)("span",{role:"text",className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle}))),(0,e.createElement)("span",{className:"nhsuk-card--care__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)(Le.Content,{...Ae.save(),multiline:"p",value:t.cardText})))}]}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"default",label:"Standard Blue",isDefault:!0}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"urgent",label:"Urgent (Red)"}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"immediate",label:"Immediate (Red and Black)"}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"warning-callout",label:"Warning Callout (Yellow)"});const{__:Ue}=wp.i18n,Ve=[{name:"twocols",label:"nhsblocks",isDefault:!0,icon:a,innerBlocks:[["nhsblocks/onehalf"],["nhsblocks/onehalf"]]},{name:"threecols",label:Ue("Three Columns Generic","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/onethird"],["nhsblocks/onethird"],["nhsblocks/onethird"]]},{name:"one3two3",label:Ue("One Third / Two Thirds Columns Generic","nhsblocks"),icon:o,innerBlocks:[["nhsblocks/onethird"],["nhsblocks/twothirds"]]},{name:"two3one3",label:Ue("Two Thirds / One Third Columns Generic","nhsblocks"),icon:i,innerBlocks:[["nhsblocks/twothirds"],["nhsblocks/onethird"]]},{name:"one4one2one4",label:Ue("One Quarter / One Half / One Quarter Columns Generic","nhsblocks"),icon:m,innerBlocks:[["nhsblocks/onequarter"],["nhsblocks/onehalf"],["nhsblocks/onequarter"]]},{name:"one4one4one2",label:Ue("One Quarter / One Quarter / One Half Columns Generic","nhsblocks"),icon:h,innerBlocks:[["nhsblocks/onequarter"],["nhsblocks/onequarter"],["nhsblocks/onehalf"]]},{name:"one2one4one4",label:Ue("One Half / One Quarter / One Quarter Columns Generic","nhsblocks"),icon:u,innerBlocks:[["nhsblocks/onehalf"],["nhsblocks/onequarter"],["nhsblocks/onequarter"]]}],{__:Qe}=wp.i18n,{registerBlockType:ze,createBlock:We}=wp.blocks,{InnerBlocks:Ge,__experimentalBlockVariationPicker:Me}=wp.blockEditor,{useDispatch:Fe,useSelect:je}=wp.data;ze("nhsblocks/rowgroup",{title:Qe("Grouped Items","nhsblocks"),category:"nhsblocks",icon:"layout",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=Fe("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=je((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>We(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Ge,{template:Ve}))):(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Me,{variations:Ve,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}})))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Ge.Content,null)))}}),ze("nhsblocks/onehalf",{title:Qe("One Half Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/onethird",{title:Qe("One Third Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/onequarter",{title:Qe("One Quarter Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/twothirds",{title:Qe("Two Thirds Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/threequarters",{title:Qe("Three Quarter Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters"},(0,e.createElement)(Ge.Content,null))}});const{__:Ye}=wp.i18n,{registerBlockType:Je}=wp.blocks,{RichText:Ke,InspectorControls:Xe,ColorPalette:Ze,MediaUpload:et,InnerBlocks:tt}=wp.blockEditor;Je("nhsblocks/heroblock",{title:Ye("Hero Block","nhsblocks"),description:Ye("Full width zone, designed to go at the top of your page with an optional image background, texta area and call to action","nhsblocks"),category:"nhsblocks",icon:"schedule",example:{attributes:{backgroundImage:"https://assets.nhs.uk/prod/images/S_0818_homepage_hero_1_F0147446.width-1000.jpg"},innerBlocks:[{name:"nhsblocks/heroinner",attributes:{texttitle:"This is a title",texttext:"This is a subtitle"}}]},attributes:{overlayColor:{type:"string",default:"#005eb8"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{overlayColor:s,backgroundImage:r}=a;return[(0,e.createElement)(Xe,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a background image:"),(0,e.createElement)(et,{onSelect:function(e){n({backgroundImage:e.sizes.full.url})},type:"image",value:r,render:({open:t})=>(0,e.createElement)("button",{className:"button button-primary button-hero",onClick:t},"Upload Image!")})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"OR")," Select a background color: ",(0,e.createElement)("br",null),(0,e.createElement)("i",null,"(this will be ignored if you chose an image above)"),(0,e.createElement)(Ze,{value:s,onChange:function(e){n({overlayColor:e})}}))),(0,e.createElement)("section",{className:`${l} nhsuk-hero nhsuk-hero--image nhsuk-hero--image-description`,style:{backgroundColor:`${s}`,backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"}},(0,e.createElement)("div",{className:"nhsuk-hero__overlay"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(tt,{template:[["nhsblocks/heroinner",{}]]}))))))]},save:t=>{const{attributes:n,className:a}=t,{overlayColor:l,backgroundImage:s}=n;return(0,e.createElement)("section",{className:"nhsuk-hero nhsuk-hero--image nhsuk-hero--image-description",style:{backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${l}`}},(0,e.createElement)("div",{className:"nhsuk-hero__overlay"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(tt.Content,null))))))}}),Je("nhsblocks/heroinner",{title:Ye("Hero Block Inner Text","nhsblocks"),description:Ye("Add some text to the header","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/heroblock"],icon:"nametag",attributes:{texttitle:{type:"array",source:"children",selector:"h1"},texttext:{type:"array",source:"children",selector:"p"},fontColor:{type:"string",default:"#ffffff"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{fontColor:s}=a;return[(0,e.createElement)(Xe,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a font color:"),(0,e.createElement)(Ze,{value:s,onChange:function(e){n({fontColor:e})}}))),(0,e.createElement)("div",{className:"nhsuk-hero-content"},(0,e.createElement)(Ke,{tagName:"h1",className:"nhsuk-u-margin-bottom-3",value:a.texttitle,onChange:function(e){n({texttitle:e})},placeholder:"Enter your text here!",style:{color:s}}),(0,e.createElement)(Ke,{tagName:"p",className:"nhsuk-body-l nhsuk-u-margin-bottom-0",value:a.texttext,onChange:function(e){n({texttext:e})},placeholder:"Enter your text here!",style:{color:s}}),(0,e.createElement)("span",{className:"nhsuk-hero__arrow","aria-hidden":"true"}))]},save:t=>{const{attributes:n,className:a}=t,{fontColor:l}=n;return(0,e.createElement)("div",{className:"nhsuk-hero-content"},(0,e.createElement)(Ke.Content,{tagName:"h1",className:"nhsuk-u-margin-bottom-3",style:{color:l},value:n.texttitle}),(0,e.createElement)(Ke.Content,{tagName:"p",className:"nhsuk-body-l nhsuk-u-margin-bottom-0",style:{color:l},value:n.texttext}),(0,e.createElement)("span",{className:"nhsuk-hero__arrow","aria-hidden":"true"}))}});const{__:nt}=wp.i18n,{registerBlockType:at}=wp.blocks,{InnerBlocks:lt}=wp.blockEditor;at("nhsblocks/stripesblock",{title:nt("Stripes Block","nhsblocks"),description:nt("Outer block that allows alternate grey stripes. To be used with the Full Width for Stripes template ","nhsblocks"),category:"nhsblocks",icon:"menu-alt",attributes:{},example:{innerBlocks:[{name:"nhsblocks/stripeblock",innerBlocks:[{name:"core/paragraph",attributes:{ +(()=>{var e={574:()=>{const{registerBlockStyle:e,unregisterBlockStyle:t}=wp.blocks;wp.domReady((()=>{t("core/image",["default","rounded"]),e("core/image",[{name:"nhsuk-image",label:"NHS Image",isDefault:!0},{name:"default",label:"Default"}]),t("core/table",["regular"]),e("core/table",[{name:"nhsuk-table-responsive",label:"NHS Table",isDefault:!0},{name:"default",label:"Default"}])}))}},t={};function n(a){var l=t[a];if(void 0!==l)return l.exports;var s=t[a]={exports:{}};return e[a](s,s.exports,n),s.exports}(()=>{"use strict";const e=window.React,t=(window.lodash,wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"59.000",height:"30"}))),a=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30"})),l=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"30"})),s=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"31.000",y:"20.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"29.000",height:"19"})),r=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"41.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"19.000",height:"19"})),c=wp.element.createElement("svg",{width:60,height:40},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"19"}),wp.element.createElement("rect",{x:"41.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"21.000",y:"20.000",width:"19.000",height:"19"}),wp.element.createElement("rect",{x:"0.000",y:"20.000",width:"19.000",height:"19"})),o=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"21.000",y:"0.000",width:"39.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"19.000",height:"30"})),i=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"41.000",y:"0.000",width:"19.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"39.000",height:"30"})),u=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"46.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"29.000",height:"30"})),m=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"46.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"16.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"14.000",height:"30"})),h=wp.element.createElement("svg",{width:60,height:30},wp.element.createElement("rect",{x:"31.000",y:"0.000",width:"29.000",height:"30"}),wp.element.createElement("rect",{x:"16.000",y:"0.000",width:"14.000",height:"30"}),wp.element.createElement("rect",{x:"0.000",y:"0.000",width:"14.000",height:"30"})),{__}=wp.i18n,d=[{name:"fullwidth",label:__("Full Width","nhsblocks"),icon:t,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-full"}]]},{name:"twocols",label:__("Two Columns","nhsblocks"),isDefault:!0,icon:a,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}]]},{name:"threecols",label:__("Three Columns","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]},{name:"twothreecols",label:__("Two Columns Then Three Columns","nhsblocks"),icon:c,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]},{name:"threetwocols",label:__("Three Columns then Two Columns","nhsblocks"),icon:s,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-half"}]]},{name:"threethreecols",label:__("Three Columns on Two Rows","nhsblocks"),icon:r,innerBlocks:[["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}],["nhsblocks/dashpanel",{className:"nhsuk-grid-column-one-third"}]]}],{__:k}=wp.i18n,{registerBlockType:p,createBlock:b}=wp.blocks,{RichText:g,InspectorControls:E,URLInputButton:v,ColorPalette:_,MediaUpload:w,InnerBlocks:y,__experimentalBlockVariationPicker:N}=wp.blockEditor,{useDispatch:x,useSelect:T}=wp.data;p("nhsblocks/dashboardnav",{title:k("Dashboard Navigation","nhsblocks"),category:"nhsblocks",icon:"tagcloud",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=x("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=T((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>b(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full nhsuk-dashboard"},(0,e.createElement)(y,{template:d}))):(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full nhsuk-dashboard"},(0,e.createElement)(N,{variations:d,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}})))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-dashboard"},(0,e.createElement)(y.Content,null)))}}),p("nhsblocks/dashpanel",{title:k("Dashboard Region","nhsblocks"),description:k("Simple image background with text and link to give Dashboard navigation panel"),icon:"feedback",category:"nhsblocks",parent:["nhsblocks/dashboardnav"],attributes:{panelTitle:{type:"string",source:"html",selector:"h3"},panelLink:{type:"string",source:"attribute",selector:".nhsuk-promo__link-wrapper",attribute:"href"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"},overlayColor:{type:"string",default:"#ffffff"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{overlayColor:s,backgroundImage:r,panelTitle:c,panelLink:o}=a;return[(0,e.createElement)(E,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Add a link for this panel"),(0,e.createElement)(v,{className:"nhsblocks-dropdown__input",label:k("Dashboard Link","nhsblocks"),onChange:e=>{n({panelLink:e})},url:o})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a background image:"),(0,e.createElement)(w,{onSelect:function(e){n({backgroundImage:e.sizes.full.url})},type:"image",value:r,render:({open:t})=>(0,e.createElement)("button",{className:"button button-primary button-hero",onClick:t},"Upload Image!")})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"OR")," Select a background color: ",(0,e.createElement)("br",null),(0,e.createElement)("i",null,"(this will be ignored if you choose an image above)"),(0,e.createElement)(_,{value:s,onChange:function(e){n({overlayColor:e})}}))),(0,e.createElement)("div",{className:`${l} nhsuk-panel-group__item`},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundColor:`${s}`,backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},(0,e.createElement)(g,{placeholder:k("Panel Title","nhsblocks"),value:c,onChange:e=>{n({panelTitle:e})}})),(0,e.createElement)("img",{src:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:""})))]},save:t=>{const{attributes:{overlayColor:n,backgroundImage:a,panelTitle:l,panelLink:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-panel-group__item"},(0,e.createElement)("a",{href:s,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundImage:`url(${a})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${n}`}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},(0,e.createElement)(g.Content,{value:l})),(0,e.createElement)("img",{src:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:l}))))},deprecated:[{attributes:{panelTitle:{type:"string",source:"html",selector:"h3"},panelLink:{type:"string",source:"attribute",selector:".nhsuk-promo__link-wrapper",attribute:"href"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"},overlayColor:{type:"string",default:"#ffffff"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-panel-group__item"},(0,e.createElement)("a",{href:t.panelLink,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-panel-with-label",style:{backgroundImage:`url(${t.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${t.overlayColor}`}},(0,e.createElement)("h3",{className:"nhsuk-panel-with-label__label"},"`$",t.panelTitle,"`"),(0,e.createElement)("img",{src:"/wp-content/themes/nightingale-2-0/assets/pixel_trans.png",className:"nhsuk-dashboard__image",alt:""}))))}]});const{__:f}=wp.i18n,{registerBlockType:C}=wp.blocks,{RichText:B,InnerBlocks:I}=wp.blockEditor;C("nhsblocks/dodont",{title:f("Do and Don't List","nhsblocks"),category:"nhsblocks",icon:"yes-alt",example:{attributes:{panelTitle:"Do and Dont List"},innerBlocks:[{name:"nhsblocks/doitem",attributes:{panelText:"This is an item to definitely do"}},{name:"nhsblocks/dontitem",attributes:{panelText:"This is an item to definitely NOT do"}}]},attributes:{panelTitle:{type:"string",source:"html",selector:"h3"}},edit:t=>{const{attributes:{panelTitle:n},className:a,setAttributes:l}=t;return(0,e.createElement)("div",{className:"nhsuk-do-dont-list"},(0,e.createElement)("h3",{className:"nhsuk-do-dont-list__label"},(0,e.createElement)(B,{placeholder:f("Panel Title","nhsblocks"),value:n,onChange:e=>{l({panelTitle:e})}})),(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-list--cross"},(0,e.createElement)(I,{allowedBlocks:[]})))},save:t=>{const{attributes:{panelTitle:n,panelText:a}}=t;return(0,e.createElement)("div",{className:"nhsuk-do-dont-list"},(0,e.createElement)("h3",{className:"nhsuk-do-dont-list__label"},(0,e.createElement)(B.Content,{value:n})),(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-list--cross"},(0,e.createElement)(I.Content,null)))}}),C("nhsblocks/doitem",{title:f("List Item with Tick","nhsblocks"),category:"nhsblocks",icon:"yes",parent:["nhsblocks/dodont"],attributes:{panelText:{type:"string",source:"html",selector:"span"}},edit:t=>{const{attributes:{panelText:n},setAttributes:a}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__tick",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},(0,e.createElement)("path",{strokeWidth:"4",strokeLinecap:"round",d:"M18.4 7.8l-8.5 8.4L5.6 12"})),(0,e.createElement)("span",null,(0,e.createElement)(B,{placeholder:f("Text","nhsblocks"),value:n,onChange:e=>{a({panelText:e})}})))},save:t=>{const{attributes:{panelText:n}}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__tick",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},(0,e.createElement)("path",{strokeWidth:"4",strokeLinecap:"round",d:"M18.4 7.8l-8.5 8.4L5.6 12"})),(0,e.createElement)("span",null,(0,e.createElement)(B.Content,{value:n})))}}),C("nhsblocks/dontitem",{title:f("List Item with Cross","nhsblocks"),category:"nhsblocks",icon:"no-alt",parent:["nhsblocks/dodont"],attributes:{panelText:{type:"string",source:"html",selector:"span"}},edit:t=>{const{attributes:{panelText:n},setAttributes:a}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true"},(0,e.createElement)("path",{d:"M17 18.5c-.4 0-.8-.1-1.1-.4l-10-10c-.6-.6-.6-1.6 0-2.1.6-.6 1.5-.6 2.1 0l10 10c.6.6.6 1.5 0 2.1-.3.3-.6.4-1 .4z"}),(0,e.createElement)("path",{d:"M7 18.5c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1l10-10c.6-.6 1.5-.6 2.1 0 .6.6.6 1.5 0 2.1l-10 10c-.3.3-.6.4-1 .4z"})),(0,e.createElement)("span",null,(0,e.createElement)(B,{placeholder:f("Text","nhsblocks"),value:n,onChange:e=>{a({panelText:e})}})))},save:t=>{const{attributes:{panelText:n}}=t;return(0,e.createElement)("li",null,(0,e.createElement)("svg",{className:"nhsuk-icon nhsuk-icon__cross",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true"},(0,e.createElement)("path",{d:"M17 18.5c-.4 0-.8-.1-1.1-.4l-10-10c-.6-.6-.6-1.6 0-2.1.6-.6 1.5-.6 2.1 0l10 10c.6.6.6 1.5 0 2.1-.3.3-.6.4-1 .4z"}),(0,e.createElement)("path",{d:"M7 18.5c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1l10-10c.6-.6 1.5-.6 2.1 0 .6.6.6 1.5 0 2.1l-10 10c-.3.3-.6.4-1 .4z"})),(0,e.createElement)("span",null,(0,e.createElement)(B.Content,{value:n})))}});const{__:L}=wp.i18n,{registerBlockType:P}=wp.blocks,{RichText:S,InspectorControls:A,BlockControls:q,BlockVerticalAlignmentToolbar:R,URLInputButton:D}=wp.blockEditor;P("nhsblocks/nhsbutton",{title:L("Button","nhsblocks"),category:"nhsblocks",icon:"admin-links",styles:[{name:"green",label:L("Standard (Green)"),isDefault:!0},{name:"secondary",label:L("Secondary (Grey)")},{name:"reverse",label:L("Reverse (White)")}],supports:{align:!0},example:{attributes:{buttonLabel:"NHS styled button",buttonLink:"https://www.nhs.uk",verticalAlignment:"left"}},attributes:{buttonLabel:{type:"string",source:"html",selector:".nhsuk-button"},buttonLink:{type:"string",source:"attribute",selector:"a.nhsuk-button",attribute:"href"},verticalAlignment:{type:"string"}},edit:t=>{const{attributes:{buttonLabel:n,buttonLink:a,verticalAlignment:l},className:s,setAttributes:r}=t;return[(0,e.createElement)(A,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Add a link for this button by clicking the chain icon below."),(0,e.createElement)(D,{className:"nhsblocks-dropdown__input",label:L("Button URL","nhsblocks"),onChange:e=>{r({buttonLink:e})},url:a}))),(0,e.createElement)(q,null,(0,e.createElement)(R,{onChange:e=>{r({verticalAlignment:e})},value:l})),(0,e.createElement)("div",{className:`${s} nhsuk-button`},(0,e.createElement)(S,{value:n,onChange:e=>{r({buttonLabel:e})},placeholder:"Button label"}))]},save:t=>{const{attributes:{buttonLabel:n,buttonLink:a}}=t;return(0,e.createElement)("a",{href:a,className:"nhsuk-button"},(0,e.createElement)(S.Content,{value:n}))}});const{__:O}=wp.i18n,{registerBlockType:$}=wp.blocks,{RichText:H,InnerBlocks:U,InspectorControls:V,useBlockProps:Q}=wp.blockEditor,{ToggleControl:z,PanelBody:W,PanelRow:G,RadioControl:M,clientId:F}=wp.components,j=[["core/image",{align:"right",width:"150px"}]];$("nhsblocks/reveal1",{title:O("Simple Reveal","nhsblocks"),category:"nhsblocks",icon:"plus-alt",styles:[{name:"downarrow",label:O("Down Arrow"),isDefault:!0},{name:"expander",label:O("Plus Icon")}],example:{attributes:{revealTitle:"Expandable Region",revealText:"This is text inside an expandable region. It all shows up when this region is opened, but can also be minimised",className:"is-style-expander"}},attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"},withImage:{type:"boolean",default:!1}},edit:t=>{const n=Q(),{attributes:{revealTitle:a,revealText:l,withImage:s},className:r,setAttributes:c}=t;return[(0,e.createElement)(V,null,(0,e.createElement)(W,null,(0,e.createElement)(G,null,(0,e.createElement)(z,{label:"Include an image?",checked:s,onChange:e=>c({withImage:e})})))),(0,e.createElement)("details",{className:`${r} nhsuk-details newstyle`,open:!0},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},(0,e.createElement)(H,{placeholder:O("Reveal Title","nhsblocks"),value:a,onChange:e=>{c({revealTitle:e})}}))),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},!0===s&&(0,e.createElement)(U,{template:j}),(0,e.createElement)(H,{...n,placeholder:O("Reveal Contents","nhsblocks"),onChange:e=>{c({revealText:e})},value:l})))]},save:t=>{const n=Q.save(),{attributes:{revealTitle:a,revealText:l,withImage:s}}=t;return(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},(0,e.createElement)(H.Content,{value:a}))),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},!0===s&&(0,e.createElement)(U.Content,null),(0,e.createElement)(H.Content,{...n,value:l})))},deprecated:[{attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"}},save:({attributes:t})=>(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button","aria-controls":"details-content-","aria-expanded":"false"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},"`$",t.revealTitle,"`")),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},"`$",t.revealText,"`"))},{attributes:{revealTitle:{type:"string",source:"html",selector:".nhsuk-details__summary-text"},revealText:{type:"string",source:"html",selector:".nhsuk-details__text"}},save:({attributes:t})=>(0,e.createElement)("details",{className:"nhsuk-details"},(0,e.createElement)("summary",{className:"nhsuk-details__summary",role:"button"},(0,e.createElement)("span",{className:"nhsuk-details__summary-text"},"`$",t.revealTitle,"`")),(0,e.createElement)("div",{className:"nhsuk-details__text",id:"details-content-","aria-hidden":"false"},"`$",t.revealText,"`"))}]});const{__:Y}=wp.i18n,{registerBlockType:J}=wp.blocks,{RichText:K,InnerBlocks:X}=wp.blockEditor,Z=[["core/paragraph",{placeholder:"Panel Text"}],["nhsblocks/nhsbutton",{align:"right"}]];J("nhsblocks/panel1",{title:Y("Panel Region","nhsblocks"),description:Y("By default this block includes a title, block of text and button link. You can remove the button if you wish by clicking it then clicking three dots on the navigation bar at the top of the page then the bin","nhsblocks"),icon:"feedback",category:"nhsblocks",styles:[{name:"default",label:Y("Plain white panel"),isDefault:!0},{name:"panel-grey",label:Y("Grey")},{name:"panel-with-label",label:Y("With Label")}],example:{attributes:{panelTitle:"Example Panel",className:"is-style-panel-grey"},innerBlocks:[{name:"core/paragraph",attributes:{content:Y("This is the content of a panel block, and it has lots of useful information")}},{name:"nhsblocks/nhsbutton",attributes:{buttonLabel:"NHS styled button",buttonLink:"https://www.nhs.uk",className:"is-style-secondary",align:"right"}}]},attributes:{panelTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-panel1 h2"}},edit:t=>{const{attributes:{panelTitle:n},className:a,setAttributes:l}=t;return(0,e.createElement)("div",{className:`${a} nhsuk-card`},(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",null,(0,e.createElement)(K,{placeholder:Y("Panel Title","nhsblocks"),value:n,onChange:e=>{l({panelTitle:e})}})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(X,{template:Z}))))},save:t=>{const{attributes:{panelTitle:n,className:a}}=t;return(0,e.createElement)("div",{className:`${a} nhsuk-card`},(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",null,(0,e.createElement)(K.Content,{value:n})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(X.Content,null))))},deprecated:[{attributes:{panelTitle:{type:"string",source:"html",selector:"h3"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-panel"},(0,e.createElement)("h3",null,(0,e.createElement)(K.Content,{value:t.panelTitle})),(0,e.createElement)("div",{className:"paneltext"},(0,e.createElement)(X.Content,null)))}]});const{__:ee}=wp.i18n,{registerBlockType:te}=wp.blocks,{RichText:ne,InspectorControls:ae,BlockControls:le,BlockVerticalAlignmentToolbar:se}=wp.blockEditor;te("nhsblocks/tags",{title:ee("Tag","nhsblocks"),description:ee("Tags are just used to indicate a status. Do not add links. Use adjectives rather than verbs for the names of your tags. Using a verb might make a user think that clicking on them will do something","nhsblocks"),category:"nhsblocks",icon:"admin-links",styles:[{name:"blue",label:ee("Standard (Blue)"),isDefault:!0},{name:"white",label:ee("White")},{name:"grey",label:ee("Grey")},{name:"green",label:ee("Green")},{name:"aqua-green",label:ee("Aqua Green")},{name:"blue",label:ee("Light Blue")},{name:"purple",label:ee("Purple")},{name:"pink",label:ee("Pink")},{name:"red",label:ee("Red")},{name:"orange",label:ee("Orange")},{name:"yellow",label:ee("Yellow")}],supports:{align:!1},example:{attributes:{tagLabel:"New"}},attributes:{tagLabel:{type:"string",source:"html",selector:".nhsuk-tag"}},edit:t=>{const{attributes:{tagLabel:n},className:a,setAttributes:l}=t;return[(0,e.createElement)("strong",{className:`${a} nhsuk-tag`},(0,e.createElement)(ne,{value:n,onChange:e=>{l({tagLabel:e})},placeholder:"Tag label"}))]},save:t=>{const{attributes:{tagLabel:n}}=t;return(0,e.createElement)("strong",{className:"nhsuk-tag"},(0,e.createElement)(ne.Content,{value:n}))}});const{__:re}=wp.i18n,{registerBlockType:ce}=wp.blocks,{URLInputButton:oe,RichText:ie,InnerBlocks:ue,MediaUpload:me,InspectorControls:he,useBlockProps:de}=wp.blockEditor;ce("nhsblocks/promo1",{title:re("Promo Region","nhsblocks"),category:"nhsblocks",icon:"megaphone",styles:[{name:"default",label:re("Standard"),isDefault:!0},{name:"promo-small",label:re("Smaller Text")}],example:{attributes:{promoTitle:"Promo Box",promoText:"This is the content of the box to send users to your promoted page",promoLink:"https://www.nhs.uk",align:"center"},innerBlocks:[{name:"core/image",attributes:{url:"https://assets.nhs.uk/prod/images/A_0218_healthy-eating-main_BATM01_copy.width-690.jpg"}}]},attributes:{promoTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__link"},promoText:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__description"},promoLink:{type:"string",source:"attribute",selector:".wp-block-nhsblocks-promo1 a.nhsuk-card__link",attribute:"href"}},edit:t=>{const n=de(),{attributes:{promoTitle:a,promoText:l,promoLink:s},className:r,setAttributes:c}=t;return(0,e.createElement)("div",{className:`${r} nhsuk-card nhsuk-card--clickable`},(0,e.createElement)(ue,{allowedBlocks:["core/image"]}),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)(oe,{className:"nhsblocks-dropdown__input",label:re("Panel Link","nhsblocks"),onChange:e=>{c({promoLink:e})},url:s}),(0,e.createElement)(ie,{placeholder:re("Promo Title","nhsblocks"),value:a,onChange:e=>{c({promoTitle:e})}})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie,{...n,placeholder:re("Promo Contents","nhsblocks"),onChange:e=>{c({promoText:e})},value:l}))))},save:t=>{const n=de.save(),{attributes:{promoTitle:a,promoText:l,promoLink:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--clickable"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)("a",{href:s,className:"nhsuk-card__link"},(0,e.createElement)(ie.Content,{value:a}))),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie.Content,{...n,value:l}))))},deprecated:[{attributes:{promoTitle:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__content .nhsuk-card__heading"},promoText:{type:"string",source:"html",selector:".wp-block-nhsblocks-promo1 .nhsuk-card__description"},promoLink:{type:"string",source:"attribute",selector:".wp-block-nhsblocks-promo1 a.nhsuk-card__link",attribute:"href"}},save:t=>{const n=de.save(),{attributes:{promoTitle:a,promoText:l,promoLink:s}}=t;var r=a.replace("","").replace("","");return(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--clickable"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)("h2",{className:"nhsuk-card__heading nhsuk-heading-m"},(0,e.createElement)(ie.Content,{...n,value:r})),(0,e.createElement)("div",{className:"nhsuk-card__description"},(0,e.createElement)(ie.Content,{...n,value:l}))))}},{attributes:{promoTitle:{type:"string",source:"html",selector:".nhsuk-promo__heading"},promoText:{type:"string",source:"html",selector:".nhsuk-promo__description"},promoLink:{type:"string",source:"attribute",selector:".nhsuk-promo a",attribute:"href"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-promo"},(0,e.createElement)("a",{href:t.promoLink,className:"nhsuk-promo__link-wrapper"},(0,e.createElement)("div",{className:"nhsuk-promo__content"},(0,e.createElement)(ue.Content,null),(0,e.createElement)("h3",{className:"nhsuk-promo__heading"},t.promoTitle),(0,e.createElement)("div",{className:"nhsuk-promo__description"},t.promoText))))}]});const{__:ke}=wp.i18n,pe=[["nhsblocks/promo1"]],be=[{name:"twocolspro",label:"nhsblocks",isDefault:!0,icon:a,innerBlocks:[["nhsblocks/onehalfpro"],["nhsblocks/onehalfpro"]]},{name:"threecolspro",label:ke("Three Columns Promos","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/onethirdpro"],["nhsblocks/onethirdpro"],["nhsblocks/onethirdpro"]]},{name:"one3two3pro",label:ke("One Third / Two Thirds Columns Promos","nhsblocks"),icon:o,innerBlocks:[["nhsblocks/onethirdpro"],["nhsblocks/twothirdspro"]]},{name:"two3one3pro",label:ke("Two Thirds / One Third Columns Promos","nhsblocks"),icon:i,innerBlocks:[["nhsblocks/twothirdspro"],["nhsblocks/onethirdpro"]]},{name:"one4one2one4pro",label:ke("One Quarter / One Half / One Quarter Columns Promos","nhsblocks"),icon:m,innerBlocks:[["nhsblocks/onequarterpro"],["nhsblocks/onehalfpro"],["nhsblocks/onequarterpro"]]},{name:"one4one4one2pro",label:ke("One Quarter / One Quarter / One Half Columns Promos","nhsblocks"),icon:h,innerBlocks:[["nhsblocks/onequarterpro"],["nhsblocks/onequarterpro"],["nhsblocks/onehalfpro"]]},{name:"one2one4one4",label:ke("One Half / One Quarter / One Quarter Columns Promos","nhsblocks"),icon:u,innerBlocks:[["nhsblocks/onehalfpro"],["nhsblocks/onequarterpro"],["nhsblocks/onequarterpro"]]}],{__:ge}=wp.i18n,{registerBlockType:Ee,createBlock:ve}=wp.blocks,{InnerBlocks:_e,__experimentalBlockVariationPicker:we}=wp.blockEditor,{useDispatch:ye,useSelect:Ne}=wp.data;Ee("nhsblocks/promogroup",{title:ge("Grouped Promos","nhsblocks"),category:"nhsblocks",icon:"layout",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=ye("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=Ne((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>ve(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(_e,{template:be})):(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(we,{variations:be,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row nhsuk-card-group"},(0,e.createElement)(_e.Content,null))}}),Ee("nhsblocks/onehalfpro",{title:ge("One Half Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/onethirdpro",{title:ge("One Third Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/onequarterpro",{title:ge("One Quarter Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/twothirdspro",{title:ge("Two Thirds Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))}),Ee("nhsblocks/threequarterspro",{title:ge("Three Quarter Promo","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/promogroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters nhsuk-card-group__item"},(0,e.createElement)(_e,{template:pe,templateLock:"all"}))},save:t=>(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters nhsuk-card-group__item"},(0,e.createElement)(_e.Content,null))});const{__:xe}=wp.i18n,{registerBlockType:Te}=wp.blocks,{RichText:fe,useBlockProps:Ce}=wp.blockEditor;Te("nhsblocks/quote1",{title:xe("Simple Quote","nhsblocks"),category:"nhsblocks",icon:"format-quote",styles:[{name:"standard",label:xe("Standard"),isDefault:!0},{name:"quote-reverse",label:xe("Inverse")}],example:{attributes:{quoteName:"Tony Blacker",quoteText:"Nightingale is an incredibly flexible theme. With NHSBlocks added in, it is amazing."}},attributes:{quoteName:{type:"string",source:"html",selector:".nhsuk-inset-text__quote-attribution"},quoteText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-inset-text__quote"}},edit:t=>{const n=Ce(),{attributes:{quoteName:a,quoteText:l},className:s,setAttributes:r}=t;return(0,e.createElement)("div",{className:`${s} nhsuk-inset-text`},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Quote / Testimonial:"," "),(0,e.createElement)("div",{className:"nhsuk-inset-text__quote"},(0,e.createElement)(fe,{...n,placeholder:xe("Quote","nhsblocks"),onChange:e=>{r({quoteText:e})},value:l})),(0,e.createElement)("span",{className:"nhsuk-inset-text__quote-attribution"},(0,e.createElement)(fe,{placeholder:xe("Quote Name","nhsblocks"),value:a,onChange:e=>{r({quoteName:e})}})))},save:t=>{const n=Ce.save(),{attributes:{quoteName:a,quoteText:l}}=t;return(0,e.createElement)("div",{className:"nhsuk-inset-text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Quote / Testimonial:"," "),(0,e.createElement)("div",{className:"nhsuk-inset-text__quote"},(0,e.createElement)(fe.Content,{...n,value:l})),(0,e.createElement)("span",{className:"nhsuk-inset-text__quote-attribution"},(0,e.createElement)(fe.Content,{value:a})))}});const{__:Be}=wp.i18n,{registerBlockType:Ie}=wp.blocks,{RichText:Le,InnerBlocks:Pe,InspectorControls:Se,useBlockProps:Ae}=wp.blockEditor,{ToggleControl:qe,PanelBody:Re,PanelRow:De,RadioControl:Oe}=wp.components,{withState:$e}=wp.compose,He=[["core/image",{align:"right",width:150}]];Ie("nhsblocks/card1",{title:Be("Card Region","nhsblocks"),category:"nhsblocks",icon:"category",example:{attributes:{cardTitle:"This is a card",cardText:"This is the content of the card"},innerBlocks:[{name:"core/image",attributes:{align:"right",width:150}}]},attributes:{innerBlocks_length:{type:"number",default:0},cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"},withImage:{type:"boolean",default:!1}},edit:t=>{const n=Ae(),{attributes:{cardTitle:a,cardText:l,withImage:s},clientId:r,className:c,setAttributes:o}=t;return[(0,e.createElement)(Se,null,(0,e.createElement)(Re,null,(0,e.createElement)(De,null,(0,e.createElement)(qe,{label:"Include an image?",checked:s,onChange:e=>o({withImage:e})})))),(0,e.createElement)("div",{className:`${c} nhsuk-care-card`},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le,{placeholder:Be("Card Title","nhsblocks"),value:a,onChange:e=>{o({cardTitle:e})}})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},!0===s&&(0,e.createElement)(Pe,{template:He}),(0,e.createElement)(Le,{...n,placeholder:Be("Card Contents","nhsblocks"),onChange:e=>{o({cardText:e})},value:l})))]},save:t=>{const n=Ae.save(),{attributes:{cardTitle:a,cardText:l,withImage:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:a})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},!0===s&&(0,e.createElement)(Pe.Content,null),(0,e.createElement)(Le.Content,{...n,value:l})))},deprecated:[{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"heading","aria-level":"3"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"text"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-care-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type"},(0,e.createElement)("div",{className:"nhsuk-care-card__heading-container"},(0,e.createElement)("h3",{className:"nhsuk-care-card__heading"},(0,e.createElement)("span",{role:"heading"},(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},"Non-urgent advice: "),(0,e.createElement)("span",{className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle})))),(0,e.createElement)("span",{className:"nhsuk-care-card__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-care-card__content"},(0,e.createElement)(Le.Content,{multiline:"p",value:t.cardText})))},{attributes:{cardTitle:{type:"string",source:"html",selector:".nhsuk-care-card__heading-text"},cardText:{type:"array",source:"children",multiline:"p",selector:".nhsuk-card__content"}},save:({attributes:t})=>(0,e.createElement)("div",{className:"nhsuk-card nhsuk-card--care"},(0,e.createElement)("div",{className:"nhsuk-card--care__heading-container"},(0,e.createElement)("h2",{className:"nhsuk-card--care__heading"},(0,e.createElement)("span",{role:"text",className:"nhsuk-care-card__heading-text"},(0,e.createElement)(Le.Content,{value:t.cardTitle}))),(0,e.createElement)("span",{className:"nhsuk-card--care__arrow","aria-hidden":"true"})),(0,e.createElement)("div",{className:"nhsuk-card__content"},(0,e.createElement)(Le.Content,{...Ae.save(),multiline:"p",value:t.cardText})))}]}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"default",label:"Standard Blue",isDefault:!0}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"urgent",label:"Urgent (Red)"}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"immediate",label:"Immediate (Red and Black)"}),wp.blocks.registerBlockStyle("nhsblocks/card1",{name:"warning-callout",label:"Warning Callout (Yellow)"});const{__:Ue}=wp.i18n,Ve=[{name:"twocols",label:"nhsblocks",isDefault:!0,icon:a,innerBlocks:[["nhsblocks/onehalf"],["nhsblocks/onehalf"]]},{name:"threecols",label:Ue("Three Columns Generic","nhsblocks"),icon:l,innerBlocks:[["nhsblocks/onethird"],["nhsblocks/onethird"],["nhsblocks/onethird"]]},{name:"one3two3",label:Ue("One Third / Two Thirds Columns Generic","nhsblocks"),icon:o,innerBlocks:[["nhsblocks/onethird"],["nhsblocks/twothirds"]]},{name:"two3one3",label:Ue("Two Thirds / One Third Columns Generic","nhsblocks"),icon:i,innerBlocks:[["nhsblocks/twothirds"],["nhsblocks/onethird"]]},{name:"one4one2one4",label:Ue("One Quarter / One Half / One Quarter Columns Generic","nhsblocks"),icon:m,innerBlocks:[["nhsblocks/onequarter"],["nhsblocks/onehalf"],["nhsblocks/onequarter"]]},{name:"one4one4one2",label:Ue("One Quarter / One Quarter / One Half Columns Generic","nhsblocks"),icon:h,innerBlocks:[["nhsblocks/onequarter"],["nhsblocks/onequarter"],["nhsblocks/onehalf"]]},{name:"one2one4one4",label:Ue("One Half / One Quarter / One Quarter Columns Generic","nhsblocks"),icon:u,innerBlocks:[["nhsblocks/onehalf"],["nhsblocks/onequarter"],["nhsblocks/onequarter"]]}],{__:Qe}=wp.i18n,{registerBlockType:ze,createBlock:We}=wp.blocks,{InnerBlocks:Ge,__experimentalBlockVariationPicker:Me}=wp.blockEditor,{useDispatch:Fe,useSelect:je}=wp.data;ze("nhsblocks/rowgroup",{title:Qe("Grouped Items","nhsblocks"),category:"nhsblocks",icon:"layout",example:{},attributes:{template:{type:"array"}},edit:t=>{const{clientId:n,name:a}=t,{attributes:{template:l},setAttributes:s}=t,{replaceInnerBlocks:r}=Fe("core/block-editor"),{blockType:c,defaultVariation:o,hasInnerBlocks:i,variations:u}=je((e=>{const{getBlockVariations:t,getBlockType:l,getDefaultBlockVariation:s}=e("core/blocks");return{blockType:l(a),defaultVariation:s(a,"block"),hasInnerBlocks:e("core/block-editor").getBlocks(n).length>0,variations:t(a,"block")}}),[n,a]),m=e=>e.map((([e,t,n=[]])=>We(e,t,m(n))));return i?(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Ge,{template:Ve}))):(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Me,{variations:Ve,onSelect:e=>{e.attributes&&t.setAttributes(e.attributes),e.innerBlocks&&r(t.clientId,m(e.innerBlocks))}})))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-panel-group nhsuk-grid-column-full"},(0,e.createElement)(Ge.Content,null)))}}),ze("nhsblocks/onehalf",{title:Qe("One Half Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-half"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/onethird",{title:Qe("One Third Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-third"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/onequarter",{title:Qe("One Quarter Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-one-quarter"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/twothirds",{title:Qe("Two Thirds Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(Ge.Content,null))}}),ze("nhsblocks/threequarters",{title:Qe("Three Quarter Width","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/rowgroup"],attributes:{template:{type:"array"}},edit:t=>{const{attributes:{template:n},setAttributes:a}=t,l=null===n||!n;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters"},(0,e.createElement)(Ge,{template:l?null:n}))},save:t=>{const{attributes:{template:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-grid-column-three-quarters"},(0,e.createElement)(Ge.Content,null))}});const{__:Ye}=wp.i18n,{registerBlockType:Je}=wp.blocks,{RichText:Ke,InspectorControls:Xe,ColorPalette:Ze,MediaUpload:et,InnerBlocks:tt}=wp.blockEditor;Je("nhsblocks/heroblock",{title:Ye("Hero Block","nhsblocks"),description:Ye("Full width zone, designed to go at the top of your page with an optional image background, texta area and call to action","nhsblocks"),category:"nhsblocks",icon:"schedule",example:{attributes:{backgroundImage:"https://assets.nhs.uk/prod/images/S_0818_homepage_hero_1_F0147446.width-1000.jpg"},innerBlocks:[{name:"nhsblocks/heroinner",attributes:{texttitle:"This is a title",texttext:"This is a subtitle"}}]},attributes:{overlayColor:{type:"string",default:"#005eb8"},backgroundImage:{type:"string",default:"/wp-content/plugins/nhsblocks/assets/pixel_trans.png"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{overlayColor:s,backgroundImage:r}=a;return[(0,e.createElement)(Xe,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a background image:"),(0,e.createElement)(et,{onSelect:function(e){n({backgroundImage:e.sizes.full.url})},type:"image",value:r,render:({open:t})=>(0,e.createElement)("button",{className:"button button-primary button-hero",onClick:t},"Upload Image!")})),(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"OR")," Select a background color: ",(0,e.createElement)("br",null),(0,e.createElement)("i",null,"(this will be ignored if you chose an image above)"),(0,e.createElement)(Ze,{value:s,onChange:function(e){n({overlayColor:e})}}))),(0,e.createElement)("section",{className:`${l} nhsuk-hero nhsuk-hero--image nhsuk-hero--image-description`,style:{backgroundColor:`${s}`,backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:"center"}},(0,e.createElement)("div",{className:"nhsuk-hero__overlay"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(tt,{template:[["nhsblocks/heroinner",{}]]}))))))]},save:t=>{const{attributes:n,className:a}=t,{overlayColor:l,backgroundImage:s}=n;return(0,e.createElement)("section",{className:"nhsuk-hero nhsuk-hero--image nhsuk-hero--image-description",style:{backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundPosition:"center",backgroundColor:`${l}`}},(0,e.createElement)("div",{className:"nhsuk-hero__overlay"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)("div",{className:"nhsuk-grid-row"},(0,e.createElement)("div",{className:"nhsuk-grid-column-two-thirds"},(0,e.createElement)(tt.Content,null))))))}}),Je("nhsblocks/heroinner",{title:Ye("Hero Block Inner Text","nhsblocks"),description:Ye("Add some text to the header","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/heroblock"],icon:"nametag",attributes:{texttitle:{type:"array",source:"children",selector:"h1"},texttext:{type:"array",source:"children",selector:"p"},fontColor:{type:"string",default:"#ffffff"}},edit:t=>{const{setAttributes:n,attributes:a,className:l}=t,{fontColor:s}=a;return[(0,e.createElement)(Xe,null,(0,e.createElement)("div",null,(0,e.createElement)("strong",null,"Select a font color:"),(0,e.createElement)(Ze,{value:s,onChange:function(e){n({fontColor:e})}}))),(0,e.createElement)("div",{className:"nhsuk-hero-content"},(0,e.createElement)(Ke,{tagName:"h1",className:"nhsuk-u-margin-bottom-3",value:a.texttitle,onChange:function(e){n({texttitle:e})},placeholder:"Enter your text here!",style:{color:s}}),(0,e.createElement)(Ke,{tagName:"p",className:"nhsuk-body-l nhsuk-u-margin-bottom-0",value:a.texttext,onChange:function(e){n({texttext:e})},placeholder:"Enter your text here!",style:{color:s}}),(0,e.createElement)("span",{className:"nhsuk-hero__arrow","aria-hidden":"true"}))]},save:t=>{const{attributes:n,className:a}=t,{fontColor:l}=n;return(0,e.createElement)("div",{className:"nhsuk-hero-content"},(0,e.createElement)(Ke.Content,{tagName:"h1",className:"nhsuk-u-margin-bottom-3",style:{color:l},value:n.texttitle}),(0,e.createElement)(Ke.Content,{tagName:"p",className:"nhsuk-body-l nhsuk-u-margin-bottom-0",style:{color:l},value:n.texttext}),(0,e.createElement)("span",{className:"nhsuk-hero__arrow","aria-hidden":"true"}))}});const{__:nt}=wp.i18n,{registerBlockType:at}=wp.blocks,{InnerBlocks:lt}=wp.blockEditor;at("nhsblocks/stripesblock",{title:nt("Stripes Block","nhsblocks"),description:nt("Outer block that allows alternate grey stripes. To be used with the Full Width for Stripes template ","nhsblocks"),category:"nhsblocks",icon:"menu-alt",attributes:{},example:{innerBlocks:[{name:"nhsblocks/stripeblock",innerBlocks:[{name:"core/paragraph",attributes:{ /* translators: example text. */ content:nt("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/paragraph",attributes:{ /* translators: example text. */ @@ -6,4 +6,4 @@ content:nt("Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vivamus /* translators: example text. */ content:nt("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{ /* translators: example text. */ -content:nt("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},getEditWrapperProps:()=>({"data-align":"full"}),edit:t=>(0,e.createElement)("div",{className:"nhsuk-striped-blocks"},(0,e.createElement)(lt,{template:[["nhsblocks/stripeblock",{}]],allowedBlocks:["nhsblocks/stripeblock"]})),save:t=>(0,e.createElement)(lt.Content,null)}),at("nhsblocks/stripeblock",{title:nt("Stripe Block","nhsblocks"),description:nt("Inner block that allows alternate grey stripes","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/heroblock"],icon:"menu-alt",getEditWrapperProps:()=>({"data-align":"full"}),edit:t=>{const n=wp.blocks.getBlockTypes().map((e=>e.name)).filter((e=>"nhsblocks/stripeblock"!==e));return(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)(lt,{allowedBlocks:n}))},save:t=>(0,e.createElement)("section",{className:"nhsuk-section"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)(lt.Content,null)))});const{__:st}=wp.i18n,{registerBlockType:rt}=wp.blocks,{RichText:ct,URLInput:ot,InnerBlocks:it}=wp.blockEditor,{Fragment:ut}=wp.element,{TextControl:mt}=wp.components;rt("nhsblocks/contentslist",{title:st("Contents List","nhsblocks"),description:st("Use contents lists to allow users to navigate between related pages, for example about a single condition.","nhsblocks"),category:"nhsblocks",icon:"editor-ul",keywords:[st("Contents List","nhsblocks"),st("Navigation","nhsblocks"),st("Related pages","nhsblocks")],example:{innerBlocks:[{name:"nhsblocks/contentslistitem",attributes:{text:"About",url:"#"}},{name:"nhsblocks/contentslistitem",attributes:{text:"Symptoms",url:"#"}},{name:"nhsblocks/contentslistitem",attributes:{text:"When to see a doctor",url:"#"}}]},edit:t=>{const{className:n,setAttributes:a,attributes:{title:l}}=t;return(0,e.createElement)("nav",{className:"{ className } nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},st("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},(0,e.createElement)(it,{template:[["nhsblocks/contentslistitem",{}]],allowedBlocks:["nhsblocks/contentslistitem"]})))},save:t=>(0,e.createElement)("nav",{className:"nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},st("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},(0,e.createElement)(it.Content,null)))}),rt("nhsblocks/contentslistitem",{title:st("Contents List Item","nhsblocks"),description:st("List Item to go into the contents list","nhsblocks"),category:"nhsblocks",icon:"editor-ul",parent:["nhsblocks/contentslist"],attributes:{text:{type:"array",source:"children",selector:".pagename"},url:{type:"string",source:"attribute",attribute:"href",selector:"a"}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{text:s,url:r}}=t;return(0,e.createElement)("li",{className:"nhsuk-contents-list__item"},l?(0,e.createElement)("div",null,(0,e.createElement)(mt,{id:"example-input-field",label:(st("Link Text"),"nhsblocks"),value:s,onChange:e=>a({text:e})}),(0,e.createElement)(ot,{className:"nhsuk-contents-list__link",value:r,onChange:e=>a({url:e}),placeholder:"Page Link (start typing to choose link)"})):(0,e.createElement)(ut,null,r?(0,e.createElement)("a",{className:"nhsuk-contents-list__link",href:"{ url }"},s):(0,e.createElement)("span",{className:"nhsuk-contents-list__current"},s)))},save:t=>{const{className:n,attributes:{text:a,url:l}}=t;return(0,e.createElement)(ut,null,l?(0,e.createElement)("li",{className:"nhsuk-contents-list__item"},(0,e.createElement)("a",{className:"pagename nhsuk-contents-list__link",href:l},a)):(0,e.createElement)("li",{className:"nhsuk-contents-list__item","aria-current":"page"},(0,e.createElement)("span",{className:"pagename nhsuk-contents-list__current"},a)))}});const{__:ht}=wp.i18n,{registerBlockType:dt}=wp.blocks,{RichText:kt,URLInput:pt,InnerBlocks:bt}=wp.blockEditor,{withSelect:gt,subscribe:Et,select:vt}=wp.data,{Fragment:_t}=wp.element,{Button:wt,TextControl:yt}=wp.components;dt("nhsblocks/contentslistpage",{title:ht("Contents List within a page","nhsblocks"),description:ht("Use contents lists to allow users to navigate sections within a page. This will automatically add all h2 tags on this page to a scrollable list ","nhsblocks"),category:"nhsblocks",icon:"editor-ul",example:{attributes:{h2titles:[{text:"Heading number one",url:"#1",id:"11111"},{text:"Heading number two",url:"#2",id:"22222"},{text:"Heading number three",url:"#3",id:"33333"}]}},attributes:{h2titles:{type:"array",default:[]}},keywords:[ht("Contents List Page","nhsblocks"),ht("Navigation","nhsblocks"),ht("Related sections on page","nhsblocks")],edit:gt((e=>({blocks:e("core/block-editor").getBlocks()})))((({blocks:t,className:n,setAttributes:a,attributes:{h2titles:l}})=>{const s=[];let r=0;const c=e=>{if("core/heading"===e.name&&2===e.attributes.level){const t="nhs-block-anchor-"+r++,n=e.attributes.content.replace(/<[^>]+>/g,"");s.push({text:n,url:t,id:e.clientId})}e.innerBlocks&&e.innerBlocks.map(c)};t.map(c);const o=l.length==s.length&&l.every((function(e,t){return s[t].text===e.text&&s[t].url===e.url}));return(0,e.createElement)("div",null,(0,e.createElement)("nav",{className:"{ className } nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},ht("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},l?l.map((t=>(0,e.createElement)("li",{className:"nhsuk-contents-list__item",key:t.url},(0,e.createElement)("a",{className:"nhsuk-contents-list__link",href:"#"+t.url},t.text)))):(0,e.createElement)("p",null,"Press the button below to make a table of contents for this page"),(0,e.createElement)("p",null,(0,e.createElement)(wt,{onClick:()=>{a({h2titles:s});for(let e=s.length-1;e>=0;e--)vt("core/block-editor").getBlock(s[e].id).attributes.anchor=s[e].url},className:"is-primary",disabled:o},"Update Heading Block")))))})),save:e=>{const{attributes:{h2titles:t}}=e;return null}});const{__:Nt}=wp.i18n,{registerBlockType:xt}=wp.blocks,{format:Tt}=wp.date,{RichText:ft,InnerBlocks:Ct}=wp.blockEditor,{dispatch:Bt,subscribe:It,select:Lt,withSelect:Pt}=wp.data;xt("nhsblocks/reviewdate",{title:Nt("Review Date","nhsblocks"),category:"nhsblocks",icon:"update",example:{attributes:{lastSaved:Nt("5 July 1948")}},attributes:{lastSaved:{type:"string",source:"html",selector:".last-saved-date"}},edit:Pt((e=>({savedDate:e("core/editor").getEditedPostAttribute("modified")})))((({savedDate:t,className:n,setAttributes:a,attributes:{lastSaved:l}})=>{if(t){const n=new Date(t),s=Tt("d F Y",n);return l!==s&&(void 0===l?(a({lastSaved:s}),Bt("core/editor").savePost()):a({lastSaved:s})),(0,e.createElement)("div",{className:"nhsuk-review-date"},(0,e.createElement)("p",{className:"nhsuk-body-s"},"Page last reviewed:"," ",(0,e.createElement)("span",{className:"last-saved-date"},l)))}})),save:t=>{const{className:n,attributes:{lastSaved:a}}=t;return(0,e.createElement)("div",{className:"nhsuk-review-date"},(0,e.createElement)("p",{className:"nhsuk-body-s"},"Page last reviewed:"," ",(0,e.createElement)("span",{className:"last-saved-date"},a)))}}),n(957);const St={};St.left=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",ariaHidden:"true",className:"nhsuk-icon nhsuk-icon__arrow-left",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M4.1 12.3l2.7 3c.2.2.5.2.7 0 .1-.1.1-.2.1-.3v-2h11c.6 0 1-.4 1-1s-.4-1-1-1h-11V9c0-.2-.1-.4-.3-.5h-.2c-.1 0-.3.1-.4.2l-2.7 3c0 .2 0 .4.1.6z"})),St.right=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",ariaHidden:"true",className:"nhsuk-icon nhsuk-icon__arrow-right",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M19.6 11.66l-2.73-3A.51.51 0 0016 9v2H5a1 1 0 000 2h11v2a.5.5 0 00.32.46.39.39 0 00.18 0 .52.52 0 00.37-.16l2.73-3a.5.5 0 000-.64z"}));const At=St,{__:qt}=wp.i18n,{registerBlockType:Rt}=wp.blocks,{RichText:Dt,InnerBlocks:Ot}=wp.blockEditor,{Fragment:$t}=wp.element,{URLInput:Ht}=wp.blockEditor,{TextControl:Ut}=wp.components;Rt("nhsblocks/pagination",{title:qt("Pagination","nhsblocks"),category:"nhsblocks",icon:"arrow-right-alt",example:{attributes:{prevText:qt("Page Title"),nextText:qt("Page Title")}},attributes:{prevLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-pagination__link--prev"},nextLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-pagination__link--next"},prevText:{type:"string",source:"html",selector:".prev-text",default:"Page Title"},nextText:{type:"string",source:"html",selector:".next-text",default:"Page Title"}},edit:t=>{const{className:n,isSelected:a,setAttributes:l,attributes:{prevLink:s,nextLink:r,prevText:c,nextText:o}}=t;return(0,e.createElement)("nav",{className:"nhsuk-pagination",role:"navigation","aria-label":"Pagination"},(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-pagination__list"},(0,e.createElement)("li",{className:"nhsuk-pagination-item--previous"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--prev"},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Previous","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page"},c),At.left),a?(0,e.createElement)($t,null,(0,e.createElement)(Ut,{label:(qt("Page Title"),"nhsblocks"),value:c,hideLabelFromVision:!0,onChange:e=>l({prevText:e})}),(0,e.createElement)(Ht,{className:"url",value:s,onChange:e=>l({prevLink:e})})):null),(0,e.createElement)("li",{className:"nhsuk-pagination-item--next"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--next"},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Next","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page"},o),At.right),a?(0,e.createElement)($t,null,(0,e.createElement)(Ut,{label:(qt("Page Title"),"nhsblocks"),value:o,hideLabelFromVision:!0,onChange:e=>l({nextText:e})}),(0,e.createElement)(Ht,{className:"url",value:r,onChange:e=>l({nextLink:e})})):null)))},save:t=>{const{className:n,attributes:{prevLink:a,nextLink:l,prevText:s,nextText:r}}=t;return(0,e.createElement)("nav",{className:"nhsuk-pagination",role:"navigation","aria-label":"Pagination"},(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-pagination__list"},(0,e.createElement)("li",{className:"nhsuk-pagination-item--previous"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--prev",href:a},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Previous","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page prev-text"},s),At.left)),(0,e.createElement)("li",{className:"nhsuk-pagination-item--next"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--next",href:l},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Next","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page next-text"},r),At.right))))}});const Vt={};Vt.action=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"nhsuk-icon nhsuk-icon__arrow-right-circle",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M12 2a10 10 0 00-9.95 9h11.64L9.74 7.05a1 1 0 011.41-1.41l5.66 5.65a1 1 0 010 1.42l-5.66 5.65a1 1 0 01-1.41 0 1 1 0 010-1.41L13.69 13H2.05A10 10 0 1012 2z"})),Vt.back=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"nhsuk-icon nhsuk-icon__chevron-left",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M8.5 12c0-.3.1-.5.3-.7l5-5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L10.9 12l4.3 4.3c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5-5c-.2-.2-.3-.4-.3-.7z"}));const Qt=Vt,{__:zt}=wp.i18n,{registerBlockType:Wt}=wp.blocks,{URLInput:Gt}=wp.blockEditor,{Fragment:Mt}=wp.element,{TextControl:Ft}=wp.components;Wt("nhsblocks/actionlink",{title:zt("Action Link","nhsblocks"),description:"Use action links to help users get to the next stage of a journey quickly by signposting the start of a digital service.",category:"nhsblocks",icon:Qt.action,keywords:[zt("signpost start","nhsblocks"),zt("transactional services multi-page forms","nhsblocks")],example:{attributes:{actionText:zt("Call to Action")}},attributes:{actionText:{type:"string",source:"html",selector:".nhsuk-action-link__text"},actionLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-action-link__link"},arrowsvgs:{type:"string",source:"html",selector:"svg",default:Qt.action}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{actionText:s,actionLink:r,arrowssvgs:c}}=t;return(0,e.createElement)("div",{className:"nhsuk-action-link"},(0,e.createElement)("a",{className:"nhsuk-action-link__link"},Qt.action,(0,e.createElement)("span",{className:"nhsuk-action-link__text"},s)),l?(0,e.createElement)("div",null,(0,e.createElement)(Ft,{label:zt(" ","nhsblocks"),placeholder:zt("Call to Action","nhsblocks"),value:s,onChange:e=>a({actionText:e})}),(0,e.createElement)(Gt,{value:r,placeholder:zt("Add a link (type to search or paste a whole url)","nhsblocks"),onChange:e=>a({actionLink:e})})):null)},save:t=>{const{className:n,attributes:{actionText:a,actionLink:l,arrowssvgs:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-action-link"},(0,e.createElement)("a",{className:"nhsuk-action-link__link",href:l},Qt.action,(0,e.createElement)("span",{className:"nhsuk-action-link__text"},a)))}});const{__:jt}=wp.i18n,{registerBlockType:Yt}=wp.blocks,{URLInput:Jt}=wp.blockEditor,{Fragment:Kt}=wp.element,{TextControl:Xt}=wp.components;Yt("nhsblocks/backlink",{title:jt("Back Link","nhsblocks"),description:"Use back links to help users go back to the previous page in a multi-page transaction.",category:"nhsblocks",icon:Qt.back,keywords:[jt("Back Link previous question pages","nhsblocks"),jt("transactional services multi-page forms","nhsblocks")],example:{attributes:{backText:jt("Go back")}},attributes:{backText:{type:"string",source:"html",selector:".nhsuk-back-link span",default:"Go back"}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{backText:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-back-link"},(0,e.createElement)("a",{className:"nhsuk-back-link__link js-back-link"},Qt.back,s),l?(0,e.createElement)(Xt,{label:jt("Action Link Text","nhsblocks"),value:s,onChange:e=>a({backText:e})}):null)},save:t=>{const{attributes:{backText:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-back-link"},(0,e.createElement)("a",{className:"nhsuk-back-link__link js-back-link",onClick:"window.history.back()",href:"#"},Qt.back,(0,e.createElement)("span",null,n)))}})})()})(); \ No newline at end of file +content:nt("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},getEditWrapperProps:()=>({"data-align":"full"}),edit:t=>(0,e.createElement)("div",{className:"nhsuk-striped-blocks"},(0,e.createElement)(lt,{template:[["nhsblocks/stripeblock",{}]],allowedBlocks:["nhsblocks/stripeblock"]})),save:t=>(0,e.createElement)(lt.Content,null)}),at("nhsblocks/stripeblock",{title:nt("Stripe Block","nhsblocks"),description:nt("Inner block that allows alternate grey stripes","nhsblocks"),category:"nhsblocks",parent:["nhsblocks/heroblock"],icon:"menu-alt",getEditWrapperProps:()=>({"data-align":"full"}),edit:t=>{const n=wp.blocks.getBlockTypes().map((e=>e.name)).filter((e=>"nhsblocks/stripeblock"!==e));return(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)(lt,{allowedBlocks:n}))},save:t=>(0,e.createElement)("section",{className:"nhsuk-section"},(0,e.createElement)("div",{className:"nhsuk-width-container"},(0,e.createElement)(lt.Content,null)))});const{__:st}=wp.i18n,{registerBlockType:rt}=wp.blocks,{RichText:ct,URLInput:ot,InnerBlocks:it}=wp.blockEditor,{Fragment:ut}=wp.element,{TextControl:mt}=wp.components;rt("nhsblocks/contentslist",{title:st("Contents List","nhsblocks"),description:st("Use contents lists to allow users to navigate between related pages, for example about a single condition.","nhsblocks"),category:"nhsblocks",icon:"editor-ul",keywords:[st("Contents List","nhsblocks"),st("Navigation","nhsblocks"),st("Related pages","nhsblocks")],example:{innerBlocks:[{name:"nhsblocks/contentslistitem",attributes:{text:"About",url:"#"}},{name:"nhsblocks/contentslistitem",attributes:{text:"Symptoms",url:"#"}},{name:"nhsblocks/contentslistitem",attributes:{text:"When to see a doctor",url:"#"}}]},edit:t=>{const{className:n,setAttributes:a,attributes:{title:l}}=t;return(0,e.createElement)("nav",{className:"{ className } nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},st("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},(0,e.createElement)(it,{template:[["nhsblocks/contentslistitem",{}]],allowedBlocks:["nhsblocks/contentslistitem"]})))},save:t=>(0,e.createElement)("nav",{className:"nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},st("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},(0,e.createElement)(it.Content,null)))}),rt("nhsblocks/contentslistitem",{title:st("Contents List Item","nhsblocks"),description:st("List Item to go into the contents list","nhsblocks"),category:"nhsblocks",icon:"editor-ul",parent:["nhsblocks/contentslist"],attributes:{text:{type:"array",source:"children",selector:".pagename"},url:{type:"string",source:"attribute",attribute:"href",selector:"a"}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{text:s,url:r}}=t;return(0,e.createElement)("li",{className:"nhsuk-contents-list__item"},l?(0,e.createElement)("div",null,(0,e.createElement)(mt,{id:"example-input-field",label:(st("Link Text"),"nhsblocks"),value:s,onChange:e=>a({text:e})}),(0,e.createElement)(ot,{className:"nhsuk-contents-list__link",value:r,onChange:e=>a({url:e}),placeholder:"Page Link (start typing to choose link)"})):(0,e.createElement)(ut,null,r?(0,e.createElement)("a",{className:"nhsuk-contents-list__link",href:"{ url }"},s):(0,e.createElement)("span",{className:"nhsuk-contents-list__current"},s)))},save:t=>{const{className:n,attributes:{text:a,url:l}}=t;return(0,e.createElement)(ut,null,l?(0,e.createElement)("li",{className:"nhsuk-contents-list__item"},(0,e.createElement)("a",{className:"pagename nhsuk-contents-list__link",href:l},a)):(0,e.createElement)("li",{className:"nhsuk-contents-list__item","aria-current":"page"},(0,e.createElement)("span",{className:"pagename nhsuk-contents-list__current"},a)))}});const{__:ht}=wp.i18n,{registerBlockType:dt}=wp.blocks,{RichText:kt,URLInput:pt,InnerBlocks:bt}=wp.blockEditor,{withSelect:gt,subscribe:Et,select:vt}=wp.data,{Fragment:_t}=wp.element,{Button:wt,TextControl:yt}=wp.components;dt("nhsblocks/contentslistpage",{title:ht("Contents List within a page","nhsblocks"),description:ht("Use contents lists to allow users to navigate sections within a page. This will automatically add all h2 tags on this page to a scrollable list ","nhsblocks"),category:"nhsblocks",icon:"editor-ul",example:{attributes:{h2titles:[{text:"Heading number one",url:"#1",id:"11111"},{text:"Heading number two",url:"#2",id:"22222"},{text:"Heading number three",url:"#3",id:"33333"}]}},attributes:{h2titles:{type:"array",default:[]}},keywords:[ht("Contents List Page","nhsblocks"),ht("Navigation","nhsblocks"),ht("Related sections on page","nhsblocks")],edit:gt((e=>({blocks:e("core/block-editor").getBlocks()})))((({blocks:t,className:n,setAttributes:a,attributes:{h2titles:l}})=>{const s=[];let r=0;const c=e=>{if("core/heading"===e.name&&2===e.attributes.level){const t="nhs-block-anchor-"+r++,n=e.attributes.content.replace(/<[^>]+>/g,"");s.push({text:n,url:t,id:e.clientId})}e.innerBlocks&&e.innerBlocks.map(c)};t.map(c);const o=l.length==s.length&&l.every((function(e,t){return s[t].text===e.text&&s[t].url===e.url}));return(0,e.createElement)("div",null,(0,e.createElement)("nav",{className:"{ className } nhsuk-contents-list",role:"navigation","aria-label":"Pages in this guide"},(0,e.createElement)("h2",{className:"nhsuk-u-visually-hidden"},ht("Contents","nhsblocks")),(0,e.createElement)("ol",{className:"nhsuk-contents-list__list"},l?l.map((t=>(0,e.createElement)("li",{className:"nhsuk-contents-list__item",key:t.url},(0,e.createElement)("a",{className:"nhsuk-contents-list__link",href:"#"+t.url},t.text)))):(0,e.createElement)("p",null,"Press the button below to make a table of contents for this page"),(0,e.createElement)("p",null,(0,e.createElement)(wt,{onClick:()=>{a({h2titles:s});for(let e=s.length-1;e>=0;e--)vt("core/block-editor").getBlock(s[e].id).attributes.anchor=s[e].url},className:"is-primary",disabled:o},"Update Heading Block")))))})),save:e=>{const{attributes:{h2titles:t}}=e;return null}});const{__:Nt}=wp.i18n,{registerBlockType:xt}=wp.blocks,{format:Tt}=wp.date,{RichText:ft,InnerBlocks:Ct}=wp.blockEditor,{dispatch:Bt,subscribe:It,select:Lt,withSelect:Pt}=wp.data;xt("nhsblocks/reviewdate",{title:Nt("Review Date","nhsblocks"),category:"nhsblocks",icon:"update",example:{attributes:{lastSaved:Nt("5 July 1948")}},attributes:{lastSaved:{type:"string",source:"html",selector:".last-saved-date"}},edit:Pt((e=>({savedDate:e("core/editor").getEditedPostAttribute("modified")})))((({savedDate:t,className:n,setAttributes:a,attributes:{lastSaved:l}})=>{if(t){const n=new Date(t),s=Tt("d F Y",n);return l!==s&&(void 0===l?(a({lastSaved:s}),Bt("core/editor").savePost()):a({lastSaved:s})),(0,e.createElement)("div",{className:"nhsuk-review-date"},(0,e.createElement)("p",{className:"nhsuk-body-s"},"Page last reviewed:"," ",(0,e.createElement)("span",{className:"last-saved-date"},l)))}})),save:t=>{const{className:n,attributes:{lastSaved:a}}=t;return(0,e.createElement)("div",{className:"nhsuk-review-date"},(0,e.createElement)("p",{className:"nhsuk-body-s"},"Page last reviewed:"," ",(0,e.createElement)("span",{className:"last-saved-date"},a)))}}),n(574);const St={};St.left=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",ariaHidden:"true",className:"nhsuk-icon nhsuk-icon__arrow-left",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M4.1 12.3l2.7 3c.2.2.5.2.7 0 .1-.1.1-.2.1-.3v-2h11c.6 0 1-.4 1-1s-.4-1-1-1h-11V9c0-.2-.1-.4-.3-.5h-.2c-.1 0-.3.1-.4.2l-2.7 3c0 .2 0 .4.1.6z"})),St.right=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",ariaHidden:"true",className:"nhsuk-icon nhsuk-icon__arrow-right",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M19.6 11.66l-2.73-3A.51.51 0 0016 9v2H5a1 1 0 000 2h11v2a.5.5 0 00.32.46.39.39 0 00.18 0 .52.52 0 00.37-.16l2.73-3a.5.5 0 000-.64z"}));const At=St,{__:qt}=wp.i18n,{registerBlockType:Rt}=wp.blocks,{RichText:Dt,InnerBlocks:Ot}=wp.blockEditor,{Fragment:$t}=wp.element,{URLInput:Ht}=wp.blockEditor,{TextControl:Ut}=wp.components;Rt("nhsblocks/pagination",{title:qt("Pagination","nhsblocks"),category:"nhsblocks",icon:"arrow-right-alt",example:{attributes:{prevText:qt("Page Title"),nextText:qt("Page Title")}},attributes:{prevLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-pagination__link--prev"},nextLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-pagination__link--next"},prevText:{type:"string",source:"html",selector:".prev-text",default:"Page Title"},nextText:{type:"string",source:"html",selector:".next-text",default:"Page Title"}},edit:t=>{const{className:n,isSelected:a,setAttributes:l,attributes:{prevLink:s,nextLink:r,prevText:c,nextText:o}}=t;return(0,e.createElement)("nav",{className:"nhsuk-pagination",role:"navigation","aria-label":"Pagination"},(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-pagination__list"},(0,e.createElement)("li",{className:"nhsuk-pagination-item--previous"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--prev"},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Previous","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page"},c),At.left),a?(0,e.createElement)($t,null,(0,e.createElement)(Ut,{label:(qt("Page Title"),"nhsblocks"),value:c,hideLabelFromVision:!0,onChange:e=>l({prevText:e})}),(0,e.createElement)(Ht,{className:"url",value:s,onChange:e=>l({prevLink:e})})):null),(0,e.createElement)("li",{className:"nhsuk-pagination-item--next"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--next"},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Next","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page"},o),At.right),a?(0,e.createElement)($t,null,(0,e.createElement)(Ut,{label:(qt("Page Title"),"nhsblocks"),value:o,hideLabelFromVision:!0,onChange:e=>l({nextText:e})}),(0,e.createElement)(Ht,{className:"url",value:r,onChange:e=>l({nextLink:e})})):null)))},save:t=>{const{className:n,attributes:{prevLink:a,nextLink:l,prevText:s,nextText:r}}=t;return(0,e.createElement)("nav",{className:"nhsuk-pagination",role:"navigation","aria-label":"Pagination"},(0,e.createElement)("ul",{className:"nhsuk-list nhsuk-pagination__list"},(0,e.createElement)("li",{className:"nhsuk-pagination-item--previous"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--prev",href:a},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Previous","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page prev-text"},s),At.left)),(0,e.createElement)("li",{className:"nhsuk-pagination-item--next"},(0,e.createElement)("a",{className:"nhsuk-pagination__link nhsuk-pagination__link--next",href:l},(0,e.createElement)("span",{className:"nhsuk-pagination__title"},qt("Next","nhsblocks")),(0,e.createElement)("span",{className:"nhsuk-u-visually-hidden"},":"),(0,e.createElement)("span",{className:"nhsuk-pagination__page next-text"},r),At.right))))}});const Vt={};Vt.action=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"nhsuk-icon nhsuk-icon__arrow-right-circle",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M12 2a10 10 0 00-9.95 9h11.64L9.74 7.05a1 1 0 011.41-1.41l5.66 5.65a1 1 0 010 1.42l-5.66 5.65a1 1 0 01-1.41 0 1 1 0 010-1.41L13.69 13H2.05A10 10 0 1012 2z"})),Vt.back=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"nhsuk-icon nhsuk-icon__chevron-left",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M8.5 12c0-.3.1-.5.3-.7l5-5c.4-.4 1-.4 1.4 0s.4 1 0 1.4L10.9 12l4.3 4.3c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5-5c-.2-.2-.3-.4-.3-.7z"}));const Qt=Vt,{__:zt}=wp.i18n,{registerBlockType:Wt}=wp.blocks,{URLInput:Gt}=wp.blockEditor,{Fragment:Mt}=wp.element,{TextControl:Ft}=wp.components;Wt("nhsblocks/actionlink",{title:zt("Action Link","nhsblocks"),description:"Use action links to help users get to the next stage of a journey quickly by signposting the start of a digital service.",category:"nhsblocks",icon:Qt.action,keywords:[zt("signpost start","nhsblocks"),zt("transactional services multi-page forms","nhsblocks")],example:{attributes:{actionText:zt("Call to Action")}},attributes:{actionText:{type:"string",source:"html",selector:".nhsuk-action-link__text"},actionLink:{type:"string",source:"attribute",attribute:"href",selector:"a.nhsuk-action-link__link"},arrowsvgs:{type:"string",source:"html",selector:"svg",default:Qt.action}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{actionText:s,actionLink:r,arrowssvgs:c}}=t;return(0,e.createElement)("div",{className:"nhsuk-action-link"},(0,e.createElement)("a",{className:"nhsuk-action-link__link"},Qt.action,(0,e.createElement)("span",{className:"nhsuk-action-link__text"},s)),l?(0,e.createElement)("div",null,(0,e.createElement)(Ft,{label:zt(" ","nhsblocks"),placeholder:zt("Call to Action","nhsblocks"),value:s,onChange:e=>a({actionText:e})}),(0,e.createElement)(Gt,{value:r,placeholder:zt("Add a link (type to search or paste a whole url)","nhsblocks"),onChange:e=>a({actionLink:e})})):null)},save:t=>{const{className:n,attributes:{actionText:a,actionLink:l,arrowssvgs:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-action-link"},(0,e.createElement)("a",{className:"nhsuk-action-link__link",href:l},Qt.action,(0,e.createElement)("span",{className:"nhsuk-action-link__text"},a)))}});const{__:jt}=wp.i18n,{registerBlockType:Yt}=wp.blocks,{URLInput:Jt}=wp.blockEditor,{Fragment:Kt}=wp.element,{TextControl:Xt}=wp.components;Yt("nhsblocks/backlink",{title:jt("Back Link","nhsblocks"),description:"Use back links to help users go back to the previous page in a multi-page transaction.",category:"nhsblocks",icon:Qt.back,keywords:[jt("Back Link previous question pages","nhsblocks"),jt("transactional services multi-page forms","nhsblocks")],example:{attributes:{backText:jt("Go back")}},attributes:{backText:{type:"string",source:"html",selector:".nhsuk-back-link span",default:"Go back"}},edit:t=>{const{className:n,setAttributes:a,isSelected:l,attributes:{backText:s}}=t;return(0,e.createElement)("div",{className:"nhsuk-back-link"},(0,e.createElement)("a",{className:"nhsuk-back-link__link js-back-link"},Qt.back,s),l?(0,e.createElement)(Xt,{label:jt("Action Link Text","nhsblocks"),value:s,onChange:e=>a({backText:e})}):null)},save:t=>{const{attributes:{backText:n}}=t;return(0,e.createElement)("div",{className:"nhsuk-back-link"},(0,e.createElement)("a",{className:"nhsuk-back-link__link js-back-link",onClick:"window.history.back()",href:"#"},Qt.back,(0,e.createElement)("span",null,n)))}})})()})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index da370c1..5b2e6f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2669,24 +2669,24 @@ } }, "node_modules/@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" } }, "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -3613,9 +3613,9 @@ } }, "node_modules/@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", "dev": true, "dependencies": { "@types/eslint": "*", @@ -3623,9 +3623,9 @@ } }, "node_modules/@types/estree": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.2.tgz", - "integrity": "sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "dev": true }, "node_modules/@types/express": { @@ -4227,148 +4227,148 @@ } }, "node_modules/@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", "dev": true, "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", "dev": true }, "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", "dev": true }, "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", "dev": true }, "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", "dev": true, "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", "dev": true }, "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" } }, "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", "dev": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "node_modules/@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", "dev": true, "dependencies": { "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", "dev": true }, "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" } }, "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, @@ -4855,9 +4855,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -4876,15 +4876,6 @@ "acorn-walk": "^8.0.2" } }, - "node_modules/acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "peerDependencies": { - "acorn": "^8" - } - }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -5387,9 +5378,9 @@ } }, "node_modules/axios": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", - "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dev": true, "dependencies": { "follow-redirects": "^1.15.6", @@ -5715,9 +5706,9 @@ "dev": true }, "node_modules/body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, "dependencies": { "bytes": "3.1.2", @@ -5728,7 +5719,7 @@ "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", - "qs": "6.11.0", + "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" @@ -5834,9 +5825,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz", - "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==", + "version": "4.24.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", + "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", "funding": [ { "type": "opencollective", @@ -5852,10 +5843,10 @@ } ], "dependencies": { - "caniuse-lite": "^1.0.30001640", - "electron-to-chromium": "^1.4.820", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.1.0" + "caniuse-lite": "^1.0.30001669", + "electron-to-chromium": "^1.5.41", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -6036,9 +6027,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001643", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz", - "integrity": "sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==", + "version": "1.0.30001680", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", + "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==", "funding": [ { "type": "opencollective", @@ -7771,9 +7762,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.0.tgz", - "integrity": "sha512-Vb3xHHYnLseK8vlMJQKJYXJ++t4u1/qJ3vykuVrVjvdiOEhYyT1AuP4x03G8EnPmYvYOhe9T+dADTmthjRQMkA==" + "version": "1.5.56", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.56.tgz", + "integrity": "sha512-7lXb9dAvimCFdvUMTyucD4mnIndt/xhRKFAlky0CyFogdnNmdPQNoHI23msF/2V4mpTxMzgMdjK4+YRlFlRQZw==" }, "node_modules/emittery": { "version": "0.13.1", @@ -7803,9 +7794,9 @@ } }, "node_modules/encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true, "engines": { "node": ">= 0.8" @@ -7830,9 +7821,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -8087,9 +8078,9 @@ } }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "engines": { "node": ">=6" } @@ -9048,37 +9039,37 @@ "dev": true }, "node_modules/express": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "dev": true, "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.2", + "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.6.0", + "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", + "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", + "send": "0.19.0", + "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", @@ -9096,9 +9087,9 @@ "dev": true }, "node_modules/express/node_modules/cookie": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", - "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", "dev": true, "engines": { "node": ">= 0.6" @@ -9342,13 +9333,13 @@ } }, "node_modules/finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", "dev": true, "dependencies": { "debug": "2.6.9", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", @@ -9922,9 +9913,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/graphemer": { "version": "1.4.0", @@ -10263,9 +10254,9 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, "dependencies": { "@types/http-proxy": "^1.17.8", @@ -12889,10 +12880,13 @@ } }, "node_modules/merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/merge-stream": { "version": "2.0.0", @@ -12924,11 +12918,11 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -13999,9 +13993,9 @@ "dev": true }, "node_modules/path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", "dev": true }, "node_modules/path-type": { @@ -14019,9 +14013,9 @@ "dev": true }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -15192,12 +15186,12 @@ ] }, "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" }, "engines": { "node": ">=0.6" @@ -16049,9 +16043,9 @@ } }, "node_modules/send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, "dependencies": { "debug": "2.6.9", @@ -16096,6 +16090,15 @@ "node": ">= 0.8" } }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/send/node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -16204,15 +16207,15 @@ } }, "node_modules/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", "dev": true, "dependencies": { - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" }, "engines": { "node": ">= 0.8.0" @@ -17276,9 +17279,9 @@ } }, "node_modules/terser": { - "version": "5.20.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.20.0.tgz", - "integrity": "sha512-e56ETryaQDyebBwJIWYB2TT6f2EZ0fL0sW/JRXNMN26zZdKi2u/E/5my5lG6jNxym6qsrVXfFRmOdV42zlAgLQ==", + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz", + "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -17294,16 +17297,16 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "dev": true, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", + "@jridgewell/trace-mapping": "^0.3.20", "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" + "terser": "^5.26.0" }, "engines": { "node": ">= 10.13.0" @@ -17846,9 +17849,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "funding": [ { "type": "opencollective", @@ -17864,8 +17867,8 @@ } ], "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" }, "bin": { "update-browserslist-db": "cli.js" @@ -18047,9 +18050,9 @@ } }, "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", + "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, "dependencies": { "glob-to-regexp": "^0.4.1", @@ -18084,34 +18087,33 @@ } }, "node_modules/webpack": { - "version": "5.88.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", - "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", - "dev": true, - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", + "version": "5.96.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.96.1.tgz", + "integrity": "sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.6", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", + "acorn": "^8.14.0", + "browserslist": "^4.24.0", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", + "enhanced-resolve": "^5.17.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", + "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", "webpack-sources": "^3.2.3" }, "bin": { @@ -20783,24 +20785,24 @@ "dev": true }, "@jridgewell/source-map": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", - "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", "dev": true, "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" }, "dependencies": { "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "requires": { - "@jridgewell/set-array": "^1.0.1", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" } } } @@ -21470,9 +21472,9 @@ } }, "@types/eslint-scope": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.3.tgz", - "integrity": "sha512-PB3ldyrcnAicT35TWPs5IcwKD8S333HMaa2VVv4+wdvebJkjWuW/xESoB8IwRcog8HYVYamb1g/R31Qv5Bx03g==", + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", "dev": true, "requires": { "@types/eslint": "*", @@ -21480,9 +21482,9 @@ } }, "@types/estree": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.2.tgz", - "integrity": "sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", "dev": true }, "@types/express": { @@ -21971,148 +21973,148 @@ } }, "@webassemblyjs/ast": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", - "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", "dev": true, "requires": { - "@webassemblyjs/helper-numbers": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", - "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", "dev": true }, "@webassemblyjs/helper-api-error": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", - "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", "dev": true }, "@webassemblyjs/helper-buffer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", - "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", "dev": true }, "@webassemblyjs/helper-numbers": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", - "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", "dev": true, "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", - "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", "dev": true }, "@webassemblyjs/helper-wasm-section": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", - "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" } }, "@webassemblyjs/ieee754": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", - "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" } }, "@webassemblyjs/leb128": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", - "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", "dev": true, "requires": { "@xtuc/long": "4.2.2" } }, "@webassemblyjs/utf8": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", - "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", "dev": true }, "@webassemblyjs/wasm-edit": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", - "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/helper-wasm-section": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-opt": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6", - "@webassemblyjs/wast-printer": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" } }, "@webassemblyjs/wasm-gen": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", - "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "@webassemblyjs/wasm-opt": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", - "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-buffer": "1.11.6", - "@webassemblyjs/wasm-gen": "1.11.6", - "@webassemblyjs/wasm-parser": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" } }, "@webassemblyjs/wasm-parser": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", - "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", - "@webassemblyjs/helper-api-error": "1.11.6", - "@webassemblyjs/helper-wasm-bytecode": "1.11.6", - "@webassemblyjs/ieee754": "1.11.6", - "@webassemblyjs/leb128": "1.11.6", - "@webassemblyjs/utf8": "1.11.6" + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" } }, "@webassemblyjs/wast-printer": { - "version": "1.11.6", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", - "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, @@ -22454,9 +22456,9 @@ } }, "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true }, "acorn-globals": { @@ -22469,13 +22471,6 @@ "acorn-walk": "^8.0.2" } }, - "acorn-import-assertions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", - "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "requires": {} - }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -22826,9 +22821,9 @@ "dev": true }, "axios": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", - "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", "dev": true, "requires": { "follow-redirects": "^1.15.6", @@ -23085,9 +23080,9 @@ "dev": true }, "body-parser": { - "version": "1.20.2", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", - "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", "dev": true, "requires": { "bytes": "3.1.2", @@ -23098,7 +23093,7 @@ "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", - "qs": "6.11.0", + "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" @@ -23187,14 +23182,14 @@ } }, "browserslist": { - "version": "4.23.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz", - "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==", + "version": "4.24.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", + "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", "requires": { - "caniuse-lite": "^1.0.30001640", - "electron-to-chromium": "^1.4.820", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.1.0" + "caniuse-lite": "^1.0.30001669", + "electron-to-chromium": "^1.5.41", + "node-releases": "^2.0.18", + "update-browserslist-db": "^1.1.1" } }, "bser": { @@ -23315,9 +23310,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001643", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz", - "integrity": "sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==" + "version": "1.0.30001680", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001680.tgz", + "integrity": "sha512-rPQy70G6AGUMnbwS1z6Xg+RkHYPAi18ihs47GH0jcxIG7wArmPgY3XbS2sRdBbxJljp3thdT8BIqv9ccCypiPA==" }, "capital-case": { "version": "1.0.4", @@ -24582,9 +24577,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.0.tgz", - "integrity": "sha512-Vb3xHHYnLseK8vlMJQKJYXJ++t4u1/qJ3vykuVrVjvdiOEhYyT1AuP4x03G8EnPmYvYOhe9T+dADTmthjRQMkA==" + "version": "1.5.56", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.56.tgz", + "integrity": "sha512-7lXb9dAvimCFdvUMTyucD4mnIndt/xhRKFAlky0CyFogdnNmdPQNoHI23msF/2V4mpTxMzgMdjK4+YRlFlRQZw==" }, "emittery": { "version": "0.13.1", @@ -24605,9 +24600,9 @@ "dev": true }, "encodeurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", "dev": true }, "encoding": { @@ -24629,9 +24624,9 @@ } }, "enhanced-resolve": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", - "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", + "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -24840,9 +24835,9 @@ } }, "escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==" }, "escape-html": { "version": "1.0.3", @@ -25514,37 +25509,37 @@ "dev": true }, "express": { - "version": "4.19.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", - "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", "dev": true, "requires": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.2", + "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.6.0", + "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", - "merge-descriptors": "1.0.1", + "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.7", + "path-to-regexp": "0.1.10", "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", + "send": "0.19.0", + "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", @@ -25559,9 +25554,9 @@ "dev": true }, "cookie": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", - "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", "dev": true }, "debug": { @@ -25750,13 +25745,13 @@ } }, "finalhandler": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", - "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", "dev": true, "requires": { "debug": "2.6.9", - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", @@ -26165,9 +26160,9 @@ } }, "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "graphemer": { "version": "1.4.0", @@ -26429,9 +26424,9 @@ } }, "http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, "requires": { "@types/http-proxy": "^1.17.8", @@ -28392,9 +28387,9 @@ } }, "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", "dev": true }, "merge-stream": { @@ -28421,11 +28416,11 @@ "dev": true }, "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "requires": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" } }, @@ -29213,9 +29208,9 @@ "dev": true }, "path-to-regexp": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", "dev": true }, "path-type": { @@ -29230,9 +29225,9 @@ "dev": true }, "picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "picomatch": { "version": "2.3.1", @@ -29978,12 +29973,12 @@ "dev": true }, "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", "dev": true, "requires": { - "side-channel": "^1.0.4" + "side-channel": "^1.0.6" } }, "querystringify": { @@ -30602,9 +30597,9 @@ "dev": true }, "send": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", - "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", "dev": true, "requires": { "debug": "2.6.9", @@ -30645,6 +30640,12 @@ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", "dev": true }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "dev": true + }, "mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -30742,15 +30743,15 @@ } }, "serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", "dev": true, "requires": { - "encodeurl": "~1.0.2", + "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.19.0" } }, "set-function-length": { @@ -31584,9 +31585,9 @@ } }, "terser": { - "version": "5.20.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.20.0.tgz", - "integrity": "sha512-e56ETryaQDyebBwJIWYB2TT6f2EZ0fL0sW/JRXNMN26zZdKi2u/E/5my5lG6jNxym6qsrVXfFRmOdV42zlAgLQ==", + "version": "5.36.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.36.0.tgz", + "integrity": "sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -31604,16 +31605,16 @@ } }, "terser-webpack-plugin": { - "version": "5.3.9", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", - "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "dev": true, "requires": { - "@jridgewell/trace-mapping": "^0.3.17", + "@jridgewell/trace-mapping": "^0.3.20", "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" + "terser": "^5.26.0" } }, "test-exclude": { @@ -32008,12 +32009,12 @@ "dev": true }, "update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", "requires": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.0" } }, "upper-case": { @@ -32152,9 +32153,9 @@ } }, "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", + "integrity": "sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw==", "dev": true, "requires": { "glob-to-regexp": "^0.4.1", @@ -32183,34 +32184,33 @@ "dev": true }, "webpack": { - "version": "5.88.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.2.tgz", - "integrity": "sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ==", - "dev": true, - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.9.0", - "browserslist": "^4.14.5", + "version": "5.96.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.96.1.tgz", + "integrity": "sha512-l2LlBSvVZGhL4ZrPwyr8+37AunkcYj5qh8o6u2/2rzoPc8gxFJkLj1WxNgooi9pnoc06jh0BjuXnamM4qlujZA==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.6", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", + "acorn": "^8.14.0", + "browserslist": "^4.24.0", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.15.0", + "enhanced-resolve": "^5.17.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", + "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^3.2.0", "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", "webpack-sources": "^3.2.3" } }, diff --git a/readme.txt b/readme.txt index 73c0df8..e2b6948 100644 --- a/readme.txt +++ b/readme.txt @@ -57,6 +57,7 @@ This plugin has been built specifically for use in the NHS, but it is open sourc = 1.3.17 = * Fix error when trying to activate this plugin before theme selection + * Security update = 1.3.16 = * Security update