@undrr/undrr-mangrove 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/README.md +32 -25
  2. package/components/BarChart.js +2 -2
  3. package/components/BookCard.js +6 -0
  4. package/components/BookCard.js.LICENSE.txt +11 -0
  5. package/components/Breadcrumbs.js +6 -0
  6. package/components/Breadcrumbs.js.LICENSE.txt +9 -0
  7. package/components/Checkbox.js +6 -0
  8. package/components/Checkbox.js.LICENSE.txt +9 -0
  9. package/components/Chips.js +6 -0
  10. package/components/Chips.js.LICENSE.txt +9 -0
  11. package/components/CtaButton.js +6 -0
  12. package/components/CtaButton.js.LICENSE.txt +9 -0
  13. package/components/EmbedContainer.js +6 -0
  14. package/components/EmbedContainer.js.LICENSE.txt +9 -0
  15. package/components/Fetcher.js +2 -2
  16. package/components/Footer.js +6 -0
  17. package/components/Footer.js.LICENSE.txt +9 -0
  18. package/components/FormErrorSummary.js +6 -0
  19. package/components/FormErrorSummary.js.LICENSE.txt +9 -0
  20. package/components/FormGroup.js +6 -0
  21. package/components/FormGroup.js.LICENSE.txt +9 -0
  22. package/components/FullWidth.js +6 -0
  23. package/components/FullWidth.js.LICENSE.txt +9 -0
  24. package/components/Gallery.js +2 -2
  25. package/components/Hero.js +6 -0
  26. package/components/Hero.js.LICENSE.txt +9 -0
  27. package/components/HighlightBox.js +6 -0
  28. package/components/HighlightBox.js.LICENSE.txt +9 -0
  29. package/components/HorizontalBookCard.js +6 -0
  30. package/components/HorizontalBookCard.js.LICENSE.txt +11 -0
  31. package/components/HorizontalCard.js +6 -0
  32. package/components/HorizontalCard.js.LICENSE.txt +11 -0
  33. package/components/IconCard.js +2 -2
  34. package/components/IconCard.js.LICENSE.txt +1 -1
  35. package/components/Loader.js +6 -0
  36. package/components/Loader.js.LICENSE.txt +9 -0
  37. package/components/MapComponent.js +2 -2
  38. package/components/MegaMenu.js +2 -2
  39. package/components/PageHeader.js +6 -0
  40. package/components/PageHeader.js.LICENSE.txt +9 -0
  41. package/components/Pager.js +2 -2
  42. package/components/QuoteHighlight.js +2 -2
  43. package/components/Radio.js +6 -0
  44. package/components/Radio.js.LICENSE.txt +9 -0
  45. package/components/ScrollContainer.js +2 -2
  46. package/components/Select.js +6 -0
  47. package/components/Select.js.LICENSE.txt +9 -0
  48. package/components/ShareButtons.js +2 -2
  49. package/components/ShowMore.js +6 -0
  50. package/components/ShowMore.js.LICENSE.txt +9 -0
  51. package/components/StatsCard.js +2 -2
  52. package/components/SyndicationSearchWidget.js +2 -2
  53. package/components/Tab.js +6 -0
  54. package/components/Tab.js.LICENSE.txt +9 -0
  55. package/components/TextCta.js +6 -0
  56. package/components/TextCta.js.LICENSE.txt +11 -0
  57. package/components/TextInput.js +6 -0
  58. package/components/TextInput.js.LICENSE.txt +9 -0
  59. package/components/Textarea.js +6 -0
  60. package/components/Textarea.js.LICENSE.txt +9 -0
  61. package/components/VerticalCard.js +6 -0
  62. package/components/VerticalCard.js.LICENSE.txt +11 -0
  63. package/components/hydrate.js +5 -0
  64. package/css/style-delta.css +464 -0
  65. package/css/style-delta.css.map +1 -0
  66. package/css/style-gutenberg.css +19 -18
  67. package/css/style-gutenberg.css.map +1 -1
  68. package/css/style-irp-legacy.css +469 -0
  69. package/css/style-irp-legacy.css.map +1 -0
  70. package/css/style-irp.css +96 -103
  71. package/css/style-irp.css.map +1 -1
  72. package/css/style-legacy.css +462 -0
  73. package/css/style-legacy.css.map +1 -0
  74. package/css/style-mcr-legacy.css +469 -0
  75. package/css/style-mcr-legacy.css.map +1 -0
  76. package/css/style-mcr.css +96 -103
  77. package/css/style-mcr.css.map +1 -1
  78. package/css/style-preventionweb-legacy.css +469 -0
  79. package/css/style-preventionweb-legacy.css.map +1 -0
  80. package/css/style-preventionweb.css +96 -103
  81. package/css/style-preventionweb.css.map +1 -1
  82. package/css/style.css +96 -103
  83. package/css/style.css.map +1 -1
  84. package/error-pages/401.html +10 -11
  85. package/error-pages/403.html +11 -12
  86. package/error-pages/404.html +13 -14
  87. package/error-pages/429.html +12 -13
  88. package/error-pages/500.html +10 -11
  89. package/error-pages/502.html +12 -13
  90. package/error-pages/503.html +12 -13
  91. package/error-pages/504.html +10 -11
  92. package/error-pages/5xx.html +10 -11
  93. package/error-pages/challenge.html +12 -13
  94. package/error-pages/managed-challenge.html +12 -13
  95. package/js/tabs.js +427 -88
  96. package/package.json +1 -1
  97. package/scss/Atom/BaseTypography/Blockquote/blockquote.scss +1 -8
  98. package/scss/Atom/BaseTypography/Cite/cite.scss +2 -2
  99. package/scss/Atom/Images/AuthorImage/author-image.scss +4 -4
  100. package/scss/Atom/Images/ImageCaptionCredit/image-caption-credit.scss +24 -28
  101. package/scss/Atom/Images/ImageCredit/image-credit.scss +1 -1
  102. package/scss/Atom/Layout/Container/container.scss +2 -2
  103. package/scss/Atom/Layout/Grid/grid.scss +1 -1
  104. package/scss/Atom/ReachElement/Details/details.scss +6 -6
  105. package/scss/Atom/ReachElement/Figcaption/figcaption.scss +1 -1
  106. package/scss/Atom/Table/table.scss +0 -8
  107. package/scss/Components/Boilerplate/boilerplate.scss +2 -2
  108. package/scss/Components/Breadcrumbs/breadcrumbs.scss +2 -9
  109. package/scss/Components/Buttons/Chips/chips.scss +5 -19
  110. package/scss/Components/Buttons/CtaButton/buttons.scss +3 -124
  111. package/scss/Components/Buttons/CtaButton/cta-button.scss +124 -0
  112. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +2 -2
  113. package/scss/Components/Cards/Card/card.scss +41 -2
  114. package/scss/Components/ErrorPages/error-pages.scss +12 -12
  115. package/scss/Components/Footer/footer.scss +72 -4
  116. package/scss/Components/Forms/Select/select.scss +2 -2
  117. package/scss/Components/Forms/_form-base.scss +5 -5
  118. package/scss/Components/Forms/_form-legacy.scss +1 -1
  119. package/scss/Components/Gallery/gallery.scss +4 -4
  120. package/scss/Components/Hero/hero.scss +18 -17
  121. package/scss/Components/HighlightBox/highlight-box.scss +5 -5
  122. package/scss/Components/MegaMenu/mega-menu.scss +750 -0
  123. package/scss/Components/MegaMenu/megamenu.scss +3 -659
  124. package/scss/Components/PageHeader/page-header.scss +4 -4
  125. package/scss/Components/Pagination/pagination.scss +2 -2
  126. package/scss/Components/SyndicationSearchWidget/SyndicationSearchWidget.scss +3 -1480
  127. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +1515 -0
  128. package/scss/Components/Tab/tab.scss +66 -7
  129. package/scss/Components/TextCta/text-cta.scss +129 -0
  130. package/scss/Components/TextCta/textcta.scss +3 -27
  131. package/scss/Molecules/ImageCaption/image-caption.scss +6 -16
  132. package/scss/Molecules/SectionHeader/section-header.scss +8 -0
  133. package/scss/Molecules/SectionHeader/sectionheader.scss +3 -8
  134. package/scss/Utilities/FullWidth/FullWidth.scss +3 -23
  135. package/scss/Utilities/FullWidth/full-width.scss +23 -0
  136. package/scss/Utilities/Loader/loader.scss +1 -1
  137. package/scss/Utilities/ShowMore/ShowMore.scss +3 -26
  138. package/scss/Utilities/ShowMore/show-more.scss +26 -0
  139. package/scss/assets/scss/_components.scss +14 -9
  140. package/scss/assets/scss/_foundational.scss +13 -7
  141. package/scss/assets/scss/_mixins.scss +9 -314
  142. package/scss/assets/scss/_utility.scss +19 -71
  143. package/scss/assets/scss/_variables-delta.scss +105 -0
  144. package/scss/assets/scss/_variables-irp.scss +1 -1
  145. package/scss/assets/scss/_variables-mcr.scss +1 -1
  146. package/scss/assets/scss/_variables-preventionweb.scss +1 -1
  147. package/scss/assets/scss/_variables.scss +68 -34
  148. package/scss/assets/scss/style-delta.scss +8 -0
  149. package/scss/assets/scss/style-gutenberg.scss +2 -2
  150. package/scss/assets/scss/style-irp-legacy.scss +20 -0
  151. package/scss/assets/scss/style-legacy.scss +20 -0
  152. package/scss/assets/scss/style-mcr-legacy.scss +20 -0
  153. package/scss/assets/scss/style-preventionweb-legacy.scss +20 -0
  154. package/scss/Components/BlockquoteComponent/blockquotecomp.scss +0 -31
  155. package/scss/Components/Buttons/CtaLink/cta-link.scss +0 -61
  156. /package/scss/Components/TableOfContents/{TableOfContents.scss → table-of-contents.scss} +0 -0
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
+ * Compiled on: 2026-03-21T18:11:19.469Z
4
+ */
5
+ /*! For license information please see TextCta.js.LICENSE.txt */
6
+ import{useId as e}from"react";var t={2694(e,t,n){var o=n(6925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element");function o(e,t,o){var r=null;if(void 0!==o&&(r=""+o),void 0!==t.key&&(r=""+t.key),"key"in t)for(var a in o={},t)"key"!==a&&(o[a]=t[a]);else o=t;return t=o.ref,{$$typeof:n,type:e,key:r,ref:void 0!==t?t:null,props:o}}Symbol.for("react.fragment"),t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=o(5556),a=o.n(r);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const g=w(Array.prototype.forEach),y=w(Array.prototype.lastIndexOf),T=w(Array.prototype.pop),b=w(Array.prototype.push),_=w(Array.prototype.splice),E=w(String.prototype.toLowerCase),A=w(String.prototype.toString),S=w(String.prototype.match),N=w(String.prototype.replace),v=w(String.prototype.indexOf),x=w(String.prototype.trim),O=w(Object.prototype.hasOwnProperty),R=w(RegExp.prototype.test),D=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(C,t)});var C;function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return d(e,t,o)}}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;l&&l(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(c(t)||(t[o]=e),r=e)}e[r]=!0}return e}function L(e){for(let t=0;t<e.length;t++)O(e,t)||(e[t]=null);return e}function I(e){const t=f(null);for(const[n,o]of i(e))O(e,n)&&(Array.isArray(o)?t[n]=L(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=I(o):t[n]=o);return t}function M(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=s(e)}return function(){return null}}const P=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),z=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=p(/<%[\w\W]*|[\w\W]*%>/gm),K=p(/\$\{[\w\W]*/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=p(/^aria-[\-\w]+$/),J=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=p(/^(?:\w+script|data):/i),ee=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=p(/^html$/i),ne=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var oe=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:ne,DATA_ATTR:V,DOCTYPE_NAME:te,ERB_EXPR:X,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:$,TMPLIT_EXPR:K});const re=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:C,trustedTypes:w}=t,L=u.prototype,$=M(L,"cloneNode"),X=M(L,"remove"),K=M(L,"nextSibling"),V=M(L,"childNodes"),Z=M(L,"parentNode");if("function"==typeof c){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Q,ee="";const{implementation:ne,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:le}=o,{importNode:ce}=r;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=oe;let{IS_ALLOWED_URI:Te}=oe,be=null;const _e=k({},[...P,...z,...U,...H,...B]);let Ee=null;const Ae=k({},[...W,...G,...Y,...q]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,ve=null;const xe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Oe=!0,Re=!0,De=!1,Ce=!0,we=!1,ke=!0,Le=!1,Ie=!1,Me=!1,Pe=!1,ze=!1,Ue=!1,Fe=!0,He=!1,je=!0,Be=!1,We={},Ge=null;const Ye=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=k({},["audio","video","img","source","image","track"]);let Xe=null;const Ke=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=k({},[Ve,Ze,Je],A);let ot=k({},["mi","mo","mn","ms","mtext"]),rt=k({},["annotation-xml"]);const at=k({},["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=I(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===it?A:E,be=O(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,ct):_e,Ee=O(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,ct):Ae,tt=O(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,A):nt,Xe=O(e,"ADD_URI_SAFE_ATTR")?k(I(Ke),e.ADD_URI_SAFE_ATTR,ct):Ke,qe=O(e,"ADD_DATA_URI_TAGS")?k(I($e),e.ADD_DATA_URI_TAGS,ct):$e,Ge=O(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,ct):Ye,Ne=O(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,ct):I({}),ve=O(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,ct):I({}),We=!!O(e,"USE_PROFILES")&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,ke=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,ze=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||J,Qe=e.NAMESPACE||Je,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=e.HTML_INTEGRATION_POINTS||rt,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(Re=!1),ze&&(Pe=!0),We&&(be=k({},B),Ee=f(null),!0===We.html&&(k(be,P),k(Ee,W)),!0===We.svg&&(k(be,z),k(Ee,G),k(Ee,q)),!0===We.svgFilters&&(k(be,U),k(Ee,G),k(Ee,q)),!0===We.mathMl&&(k(be,H),k(Ee,Y),k(Ee,q))),O(e,"ADD_TAGS")||(xe.tagCheck=null),O(e,"ADD_ATTR")||(xe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(be===_e&&(be=I(be)),k(be,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===Ae&&(Ee=I(Ee)),k(Ee,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&k(Xe,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),k(Ge,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),k(Ge,e.ADD_FORBID_CONTENTS,ct)),je&&(be["#text"]=!0),Le&&k(be,["html","head","body"]),be.table&&(k(be,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(w,a)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));m&&m(e),st=e}},ft=k({},[...z,...U,...F]),dt=k({},[...H,...j]),ht=function(e){b(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){X(e)}},gt=function(e,t){try{b(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||ze)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Q?Q.createHTML(e):e;if(Qe===Je)try{t=(new C).parseFromString(r,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},Tt=function(e){return ae.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof s&&e instanceof s};function Et(e,t,o){g(e,e=>{e.call(n,t,o,st)})}const At=function(e){let t=null;if(Et(se.beforeSanitizeElements,e,null),bt(e))return ht(e),!0;const o=ct(e.nodeName);if(Et(se.uponSanitizeElement,e,{tagName:o,allowedTags:be}),ke&&e.hasChildNodes()&&!_t(e.firstElementChild)&&R(/<[/\w!]/g,e.innerHTML)&&R(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(ke&&8===e.nodeType&&R(/<[/\w]/g,e.data))return ht(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(o))&&(!be[o]||Ne[o])){if(!Ne[o]&&Nt(o)){if(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,o))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(o))return!1}if(je&&!Ge[o]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,K(e))}}return ht(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=E(e.tagName),o=E(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&rt[o]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!rt[o])&&!(t.namespaceURI===Ve&&!ot[o])&&!dt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!R(/<\/no(script|embed|frames)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textContent,g([ue,me,pe],e=>{t=N(t,e," ")}),e.textContent!==t&&(b(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},St=function(e,t,n){if(ve[t])return!1;if(Fe&&("id"===t||"name"===t)&&(n in o||n in ut))return!1;if(Re&&!ve[t]&&R(fe,t));else if(Oe&&R(de,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||ve[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&R(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&R(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Xe[t]);else if(R(Te,N(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(De&&!R(he,N(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&S(e,ye)},vt=function(e){Et(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:i,namespaceURI:l,value:c}=a,s=ct(i),u=c;let m="value"===i?u:x(u);if(o.attrName=s,o.attrValue=m,o.keepAttr=!0,o.forceKeepAttr=void 0,Et(se.uponSanitizeAttribute,e,o),m=o.attrValue,!He||"id"!==s&&"name"!==s||(gt(i,e),m="user-content-"+m),ke&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){gt(i,e);continue}if("attributename"===s&&S(m,"href")){gt(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){gt(i,e);continue}if(!Ce&&R(/\/>/i,m)){gt(i,e);continue}we&&g([ue,me,pe],e=>{m=N(m,e," ")});const p=ct(e.nodeName);if(St(p,s,m)){if(Q&&"object"==typeof w&&"function"==typeof w.getAttributeType)if(l);else switch(w.getAttributeType(p,s)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),bt(e)?ht(e):T(n.removed)}catch(t){gt(i,e)}}else gt(i,e)}Et(se.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const o=Tt(t);for(Et(se.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Et(se.uponSanitizeShadowNode,n,null),At(n),vt(n),n.content instanceof l&&e(n.content);Et(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw D("toString is not a function");if("string"!=typeof(e=e.toString()))throw D("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||pt(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=ct(e.nodeName);if(!be[t]||Ne[t])throw D("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)o=yt("\x3c!----\x3e"),a=o.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Pe&&!we&&!Le&&-1===e.indexOf("<"))return Q&&Ue?Q.createHTML(e):e;if(o=yt(e),!o)return Pe?null:Ue?ee:""}o&&Me&&ht(o.firstChild);const u=Tt(Be?e:o);for(;i=u.nextNode();)At(i),vt(i),i.content instanceof l&&xt(i.content);if(Be)return e;if(Pe){if(ze)for(c=ie.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=ce.call(r,c,!0)),c}let m=Le?o.outerHTML:o.innerHTML;return Le&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&R(te,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),we&&g([ue,me,pe],e=>{m=N(m,e," ")}),Q&&Ue?Q.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){st=null,Ie=!1},n.isValidAttribute=function(e,t,n){st||pt({});const o=ct(e),r=ct(t);return St(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&b(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=y(se[e],t);return-1===n?void 0:_(se[e],n,1)[0]}return T(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=o(4848);const le=(...e)=>e.filter(Boolean).join(" ")||null;function ce({headline:t,headlineSize:n="600",headlineLevel:o=2,text:r,buttons:a=[],variant:i="primary",backgroundColor:l,padding:c,image:s,imageAlt:u="",centered:m=!0,className:p}){const f=!!s,d=e(),h=`h${o}`;return(0,ie.jsx)("section",{className:le("mg-cta",i&&`mg-cta--${i}`,f&&"mg-cta--with-image",!f&&m&&"mg-cta--centered",p),...t?{"aria-labelledby":d}:{"aria-label":"Call to action"},...(l||c)&&{style:{...l&&{"--mg-cta-bg":l},...c&&{padding:c}}},children:(0,ie.jsxs)("div",{className:"mg-cta__inner mg-container",children:[(0,ie.jsxs)("div",{className:"mg-cta__body",children:[t&&(0,ie.jsx)(h,{id:d,className:le("mg-cta__headline",`mg-u-font-size-${n}`),children:t}),r&&(0,ie.jsx)("div",{className:"mg-cta__text",dangerouslySetInnerHTML:{__html:ae.sanitize(r)}}),a.length>0&&(0,ie.jsx)("div",{className:"mg-cta__actions",children:a.map((e,t)=>(0,ie.jsx)("a",{href:e.url||"#",className:le("mg-button","Secondary"===e.type?"mg-button-secondary":"mg-button-primary"),children:e.label},t))})]}),f&&(0,ie.jsx)("div",{className:"mg-cta__image",children:(0,ie.jsx)("img",{src:s,alt:u})})]})})}ce.propTypes={headline:a().string,headlineSize:a().string,headlineLevel:a().oneOf([2,3,4,5,6]),text:a().string,buttons:a().arrayOf(a().shape({label:a().string.isRequired,url:a().string,type:a().oneOf(["Primary","Secondary"])})),variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),backgroundColor:a().string,padding:a().string,image:a().string,imageAlt:a().string,centered:a().bool,className:a().string};const se=ce;function ue(e){const{dataset:t}=e;let n=[];try{n=t.buttons?JSON.parse(t.buttons):[]}catch{n=[]}const o=parseInt(t.headlineLevel,10),r=o>=2&&o<=6?o:2;return{headline:t.headline||"",headlineSize:t.headlineSize||"600",headlineLevel:r,text:t.text||"",buttons:n,variant:t.variant||"primary",backgroundColor:t.backgroundColor||void 0,padding:t.padding||void 0,image:t.image||void 0,imageAlt:t.imageAlt||"",centered:"false"!==t.centered,className:t.className||void 0}}export{ce as TextCta,se as default,ue as fromElement};
@@ -0,0 +1,11 @@
1
+ /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
2
+
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
+ * Compiled on: 2026-03-21T18:11:19.469Z
4
+ */
5
+ /*! For license information please see TextInput.js.LICENSE.txt */
6
+ import{useId as e}from"react";var r={2694(e,r,o){var a=o(6925);function t(){}function n(){}n.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,n,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}},5556(e,r,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var t=null;if(void 0!==a&&(t=""+a),void 0!==r.key&&(t=""+r.key),"key"in r)for(var n in a={},r)"key"!==n&&(a[n]=r[n]);else a=r;return r=a.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a},4848(e,r,o){e.exports=o(9698)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=a(5556),n=a.n(t),l=a(4848);function i({id:r,name:o,type:a="text",label:t,hideLabel:n=!1,placeholder:i,value:s,defaultValue:p,onChange:d,disabled:c=!1,required:f=!1,helpText:u,error:m=!1,errorText:b,className:y,...g}){const h=e(),v=r||h,x=u?`${v}-help`:void 0,j=m&&b?`${v}-error`:void 0,T=[x,j].filter(Boolean).join(" ")||void 0,O=["mg-form-input",c&&"mg-form-input--disabled",m&&"mg-form-input--error"].filter(Boolean).join(" "),_=["mg-form-label",n&&"mg-u-sr-only",c&&"mg-form-label--disabled",f&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,l.jsxs)("div",{className:["mg-form-field",y].filter(Boolean).join(" "),children:[t&&(0,l.jsx)("label",{className:_,htmlFor:v,children:t}),(0,l.jsx)("input",{className:O,type:a,id:v,name:o,placeholder:i,value:s,defaultValue:p,onChange:d,disabled:c,required:f,"aria-describedby":T,"aria-invalid":m||void 0,...t?{}:{"aria-label":i},...g}),u&&(0,l.jsx)("p",{className:"mg-form-help",id:x,children:u}),m&&b&&(0,l.jsx)("p",{className:"mg-form-error",id:j,role:"alert",children:b})]})}i.propTypes={id:n().string,name:n().string,type:n().oneOf(["text","email","password","number","tel","search","date","url"]),label:n().string,hideLabel:n().bool,placeholder:n().string,value:n().string,defaultValue:n().string,onChange:n().func,disabled:n().bool,required:n().bool,helpText:n().string,error:n().bool,errorText:n().string,className:n().string};const s=i;export{i as TextInput,s as default};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
+ * Compiled on: 2026-03-21T18:11:19.469Z
4
+ */
5
+ /*! For license information please see Textarea.js.LICENSE.txt */
6
+ import{useId as e}from"react";var r={2694(e,r,o){var a=o(6925);function t(){}function l(){}l.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,l,n){if(n!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:l,resetWarningCache:t};return o.PropTypes=o,o}},5556(e,r,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var t=null;if(void 0!==a&&(t=""+a),void 0!==r.key&&(t=""+r.key),"key"in r)for(var l in a={},r)"key"!==l&&(a[l]=r[l]);else a=r;return r=a.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a},4848(e,r,o){e.exports=o(9698)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var l=o[e]={exports:{}};return r[e](l,l.exports,a),l.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=a(5556),l=a.n(t),n=a(4848);function i({id:r,name:o,label:a,hideLabel:t=!1,placeholder:l,value:i,defaultValue:s,onChange:d,rows:p=4,cols:c,disabled:f=!1,required:m=!1,helpText:u,error:b=!1,errorText:g,className:y,...h}){const v=e(),x=r||v,j=u?`${x}-help`:void 0,T=b&&g?`${x}-error`:void 0,O=[j,T].filter(Boolean).join(" ")||void 0,_=["mg-form-textarea",f&&"mg-form-textarea--disabled",b&&"mg-form-textarea--error"].filter(Boolean).join(" "),k=["mg-form-label",t&&"mg-u-sr-only",f&&"mg-form-label--disabled",m&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:["mg-form-field",y].filter(Boolean).join(" "),children:[a&&(0,n.jsx)("label",{className:k,htmlFor:x,children:a}),(0,n.jsx)("textarea",{className:_,id:x,name:o,placeholder:l,value:i,defaultValue:s,onChange:d,rows:p,cols:c,disabled:f,required:m,"aria-describedby":O,"aria-invalid":b||void 0,...a?{}:{"aria-label":l},...h}),u&&(0,n.jsx)("p",{className:"mg-form-help",id:j,children:u}),b&&g&&(0,n.jsx)("p",{className:"mg-form-error",id:T,role:"alert",children:g})]})}i.propTypes={id:l().string,name:l().string,label:l().string,hideLabel:l().bool,placeholder:l().string,value:l().string,defaultValue:l().string,onChange:l().func,rows:l().number,cols:l().number,disabled:l().bool,required:l().bool,helpText:l().string,error:l().bool,errorText:l().string,className:l().string};const s=i;export{i as Textarea,s as default};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
+ * Compiled on: 2026-03-21T18:11:19.469Z
4
+ */
5
+ /*! For license information please see VerticalCard.js.LICENSE.txt */
6
+ import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",For_Primary:r="Arrow",...o}){const i="Secondary"===t?"secondary":"primary",l="Disabled"===n,c="No Arrow"===r?"without-arrow":"arrow",s=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;return(0,a.jsx)("a",{..."Secondary"===t?{className:s("mg-button",`mg-button-${i}`,l&&"disabled")}:{className:s("mg-button",`mg-button-${i}`,`mg-button-${c}`,l&&"disabled")},...l?{"aria-disabled":"true"}:{href:"#"},...o,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"]),For_Primary:o().oneOf(["Arrow","No Arrow"])}},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(5556),a=r.n(o);const{entries:i,setPrototypeOf:l,isFrozen:c,getPrototypeOf:s,getOwnPropertyDescriptor:u}=Object;let{freeze:m,seal:p,create:f}=Object,{apply:d,construct:h}="undefined"!=typeof Reflect&&Reflect;m||(m=function(e){return e}),p||(p=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const g=k(Array.prototype.forEach),y=k(Array.prototype.lastIndexOf),T=k(Array.prototype.pop),_=k(Array.prototype.push),b=k(Array.prototype.splice),E=k(String.prototype.toLowerCase),A=k(String.prototype.toString),S=k(String.prototype.match),N=k(String.prototype.replace),v=k(String.prototype.indexOf),x=k(String.prototype.trim),D=k(Object.prototype.hasOwnProperty),w=k(RegExp.prototype.test),O=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(R,t)});var R;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;l&&l(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(c(t)||(t[r]=e),o=e)}e[o]=!0}return e}function L(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}function I(e){const t=f(null);for(const[n,r]of i(e))D(e,n)&&(Array.isArray(r)?t[n]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=I(r):t[n]=r);return t}function M(e,t){for(;null!==e;){const n=u(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=s(e)}return function(){return null}}const P=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=m(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),W=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G=m(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Y=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=p(/<%[\w\W]*|[\w\W]*%>/gm),K=p(/\$\{[\w\W]*/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=p(/^aria-[\-\w]+$/),J=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=p(/^(?:\w+script|data):/i),ee=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=p(/^html$/i),ne=p(/^[a-z][.\w]*(-[.\w]+)+$/i);var re=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:ne,DATA_ATTR:V,DOCTYPE_NAME:te,ERB_EXPR:X,IS_ALLOWED_URI:J,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:$,TMPLIT_EXPR:K});const oe=function(){return"undefined"==typeof window?null:window};var ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:s,Element:u,NodeFilter:p,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:R,trustedTypes:k}=t,L=u.prototype,$=M(L,"cloneNode"),X=M(L,"remove"),K=M(L,"nextSibling"),V=M(L,"childNodes"),Z=M(L,"parentNode");if("function"==typeof c){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Q,ee="";const{implementation:ne,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:le}=r,{importNode:ce}=o;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof Z&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:pe,DATA_ATTR:fe,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=re;let{IS_ALLOWED_URI:Te}=re,_e=null;const be=C({},[...P,...U,...z,...H,...B]);let Ee=null;const Ae=C({},[...W,...G,...Y,...q]);let Se=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,ve=null;const xe=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,we=!0,Oe=!1,Re=!0,ke=!1,Ce=!0,Le=!1,Ie=!1,Me=!1,Pe=!1,Ue=!1,ze=!1,Fe=!0,He=!1,je=!0,Be=!1,We={},Ge=null;const Ye=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qe=null;const $e=C({},["audio","video","img","source","image","track"]);let Xe=null;const Ke=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=C({},[Ve,Ze,Je],A);let rt=C({},["mi","mo","mn","ms","mtext"]),ot=C({},["annotation-xml"]);const at=C({},["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=I(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===it?A:E,_e=D(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,ct):be,Ee=D(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,ct):Ae,tt=D(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,A):nt,Xe=D(e,"ADD_URI_SAFE_ATTR")?C(I(Ke),e.ADD_URI_SAFE_ATTR,ct):Ke,qe=D(e,"ADD_DATA_URI_TAGS")?C(I($e),e.ADD_DATA_URI_TAGS,ct):$e,Ge=D(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,ct):Ye,Ne=D(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,ct):I({}),ve=D(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,ct):I({}),We=!!D(e,"USE_PROFILES")&&e.USE_PROFILES,De=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ke=e.SAFE_FOR_TEMPLATES||!1,Ce=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,je=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||J,Qe=e.NAMESPACE||Je,rt=e.MATHML_TEXT_INTEGRATION_POINTS||rt,ot=e.HTML_INTEGRATION_POINTS||ot,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(we=!1),Ue&&(Pe=!0),We&&(_e=C({},B),Ee=f(null),!0===We.html&&(C(_e,P),C(Ee,W)),!0===We.svg&&(C(_e,U),C(Ee,G),C(Ee,q)),!0===We.svgFilters&&(C(_e,z),C(Ee,G),C(Ee,q)),!0===We.mathMl&&(C(_e,H),C(Ee,Y),C(Ee,q))),D(e,"ADD_TAGS")||(xe.tagCheck=null),D(e,"ADD_ATTR")||(xe.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(_e===be&&(_e=I(_e)),C(_e,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===Ae&&(Ee=I(Ee)),C(Ee,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&C(Xe,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.FORBID_CONTENTS,ct)),e.ADD_FORBID_CONTENTS&&(Ge===Ye&&(Ge=I(Ge)),C(Ge,e.ADD_FORBID_CONTENTS,ct)),je&&(_e["#text"]=!0),Le&&C(_e,["html","head","body"]),_e.table&&(C(_e,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Q=e.TRUSTED_TYPES_POLICY,ee=Q.createHTML("")}else void 0===Q&&(Q=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(k,a)),null!==Q&&"string"==typeof ee&&(ee=Q.createHTML(""));m&&m(e),st=e}},ft=C({},[...U,...z,...F]),dt=C({},[...H,...j]),ht=function(e){_(n.removed,{element:e});try{Z(e).removeChild(e)}catch(t){X(e)}},gt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||Ue)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=S(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Q?Q.createHTML(e):e;if(Qe===Je)try{t=(new R).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?ee:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Qe===Je?le.call(t,Le?"html":"body")[0]:Le?t.documentElement:a},Tt=function(e){return ae.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof s&&e instanceof s};function Et(e,t,r){g(e,e=>{e.call(n,t,r,st)})}const At=function(e){let t=null;if(Et(se.beforeSanitizeElements,e,null),_t(e))return ht(e),!0;const r=ct(e.nodeName);if(Et(se.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Ce&&e.hasChildNodes()&&!bt(e.firstElementChild)&&w(/<[/\w!]/g,e.innerHTML)&&w(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(Ce&&8===e.nodeType&&w(/<[/\w]/g,e.data))return ht(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&(!_e[r]||Ne[r])){if(!Ne[r]&&Nt(r)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,r))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(r))return!1}if(je&&!Ge[r]){const t=Z(e)||e.parentNode,n=V(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=$(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,K(e))}}return ht(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=E(e.tagName),r=E(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===r||rt[r]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ot[r]:Boolean(dt[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!ot[r])&&!(t.namespaceURI===Ve&&!rt[r])&&!dt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(ke&&3===e.nodeType&&(t=e.textContent,g([ue,me,pe],e=>{t=N(t,e," ")}),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},St=function(e,t,n){if(ve[t])return!1;if(Fe&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(we&&!ve[t]&&w(fe,t));else if(De&&w(de,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||ve[t]){if(!(Nt(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t,e))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,n)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(n))))return!1}else if(Xe[t]);else if(w(Te,N(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!qe[e])if(Oe&&!w(he,N(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&S(e,ye)},vt=function(e){Et(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:l,value:c}=a,s=ct(i),u=c;let m="value"===i?u:x(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(se.uponSanitizeAttribute,e,r),m=r.attrValue,!He||"id"!==s&&"name"!==s||(gt(i,e),m="user-content-"+m),Ce&&w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){gt(i,e);continue}if("attributename"===s&&S(m,"href")){gt(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){gt(i,e);continue}if(!Re&&w(/\/>/i,m)){gt(i,e);continue}ke&&g([ue,me,pe],e=>{m=N(m,e," ")});const p=ct(e.nodeName);if(St(p,s,m)){if(Q&&"object"==typeof k&&"function"==typeof k.getAttributeType)if(l);else switch(k.getAttributeType(p,s)){case"TrustedHTML":m=Q.createHTML(m);break;case"TrustedScriptURL":m=Q.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),_t(e)?ht(e):T(n.removed)}catch(t){gt(i,e)}}else gt(i,e)}Et(se.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const r=Tt(t);for(Et(se.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(se.uponSanitizeShadowNode,n,null),At(n),vt(n),n.content instanceof l&&e(n.content);Et(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw O("toString is not a function");if("string"!=typeof(e=e.toString()))throw O("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||pt(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=ct(e.nodeName);if(!_e[t]||Ne[t])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)r=yt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Pe&&!ke&&!Le&&-1===e.indexOf("<"))return Q&&ze?Q.createHTML(e):e;if(r=yt(e),!r)return Pe?null:ze?ee:""}r&&Me&&ht(r.firstChild);const u=Tt(Be?e:r);for(;i=u.nextNode();)At(i),vt(i),i.content instanceof l&&xt(i.content);if(Be)return e;if(Pe){if(Ue)for(c=ie.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=ce.call(o,c,!0)),c}let m=Le?r.outerHTML:r.innerHTML;return Le&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(te,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),ke&&g([ue,me,pe],e=>{m=N(m,e," ")}),Q&&ze?Q.createHTML(m):m},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){st=null,Ie=!1},n.isValidAttribute=function(e,t,n){st||pt({});const r=ct(e),o=ct(t);return St(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&_(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=y(se[e],t);return-1===n?void 0:b(se[e],n,1)[0]}return T(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),ie=r(6145),le=r(4848);const ce=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function se({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,le.jsx)(le.Fragment,{children:e.map((e,t)=>(0,le.jsxs)("article",{className:ce("mg-card","mg-card__vc",r,n),children:[e.imgback&&(0,le.jsx)("div",{className:"mg-card__visual",children:(0,le.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,le.jsxs)("div",{className:"mg-card__content",children:[(e.label1||e.label2)&&(0,le.jsxs)("div",{className:"mg-card__meta",children:[e.link&&e.label1&&(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),e.link&&e.label2&&(0,le.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,le.jsx)("header",{className:"mg-card__title",children:(0,le.jsx)("a",{href:e.link,children:e.title?.trim()})}),e.summaryText&&(0,le.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:ae.sanitize(e.summaryText)}}),e.button&&(0,le.jsx)(ie.F,{type:"Primary",label:e.button,href:e.link})]})]},t))})}se.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{se as VerticalCard};
@@ -0,0 +1,11 @@
1
+ /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
2
+
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
+ * Compiled on: 2026-03-21T18:11:19.469Z
4
+ */
5
+ import{default as r}from"react";import{createRoot as e}from"react-dom/client";var o={};function t({selector:o,component:t,fromElement:n,options:a={}}){const{clearContainer:c=!0,debugLabel:l=o,onError:i,identifierPrefix:u}=a,d=t?.default??t,s=u??o.replace(/[[\]\.#=>"' ]/g,"").replace(/^data-mg-?/,"mg-"),m=[];function f(t=document){const a=t.querySelectorAll(o),u=[];return a.forEach((o,t)=>{if("true"===o.dataset.mgHydrated)return;const a=c?o.innerHTML:null;try{const a=n(o);c&&(o.innerHTML="");const f=e(o,{identifierPrefix:`${s}-${t}-`,onCaughtError(r,e){console.error(`[${l}] Caught error in container #${t}:`,r,e),i&&i(r,o)},onUncaughtError(r,e){console.error(`[${l}] Uncaught error in container #${t}:`,r,e),i&&i(r,o)},onRecoverableError(r){console.warn(`[${l}] Recoverable error in container #${t}:`,r)}});f.render(r.createElement(d,a)),o.dataset.mgHydrated="true",m.push({root:f,container:o}),u.push(f)}catch(r){console.error(`[${l}] Container #${t}:`,r),null!==a&&(o.innerHTML=a),i&&i(r,o)}}),u}return f(),{get roots(){return m.map(r=>r.root)},update:f,unmountAll(){m.forEach(({root:r,container:e})=>{r.unmount(),delete e.dataset.mgHydrated}),m.length=0}}}o.d=(r,e)=>{for(var t in e)o.o(e,t)&&!o.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},o.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);export{t as default};