(()=>{var e={2694:(e,t,r)=>{"use strict";var o=r(6925);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,a,s){if(s!==o){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 t(){return e}e.isRequired=e;var r={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:n};return r.PropTypes=r,r}},5556:(e,t,r)=>{e.exports=r(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](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 o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.i18n;var o=r(5556),n=r.n(o);const a={white:"#fff",grey:"#555d66",give:"#66bb6a"},s=({color:t="give",size:r="24px",...o})=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:r,height:r,...o},(0,e.createElement)("circle",{fill:a[t],cx:"78.6",cy:"78.6",r:"78.6"}),(0,e.createElement)("path",{fill:"#fff",d:"M89.8 84.2c.3.7 1 1.3 1 1.3 13.9 1.7 33.6-.2 48.6-2.2-8.6 18.5-24 30.8-38.1 30.8-26.5 0-46.9-32.1-46.9-32.1 8.2-7.2 21.7-30.8 41.2-30.8s28 10.7 28 10.7l2.2-3.5s-9.1-31.9-34.9-31.9-53.2 42.3-69.2 52c0 0 22 52.2 70.2 52.2 40.4 0 50.6-38.6 52.5-48.2 5.4-.8 9.9-1.6 12.8-2.1 1-2.2 2.1-6.1 1.3-11.3-16.1 6.2-40.5 13.2-69.1 13.2-.1 0 0 1 .4 1.9z"}));s.propTypes={color:n().oneOf(Object.keys(a)),size:n().oneOfType([n().number,n().string])};const i=s,{useInstanceId:l}=wp.compose,{BaseControl:c,ColorPalette:p}=wp.components,d=({name:t,label:r,help:o,className:n,value:a,hideLabelFromVision:s,onChange:i=null,colors:u})=>{const g=`give-color-control-${t}-${l(d)}`;return(0,e.createElement)(c,{label:r,hideLabelFromVision:s,id:g,help:o,className:n},(0,e.createElement)(p,{value:a,colors:u,onChange:e=>i(e),clearable:!0}))};d.propTypes={label:n().string,value:n().any.isRequired,onChange:n().func,name:n().string.isRequired,help:n().string,className:n().string,hideLabelFromVision:n().bool};const u=d,{InspectorControls:g}=wp.blockEditor,{PanelBody:b,ToggleControl:m}=wp.components,h=giveProgressBarThemeSupport.editorColorPalette,f=({attributes:r,setAttributes:o})=>{const{accent_color:n}=r;return(0,e.createElement)(g,{key:"inspector"},(0,e.createElement)(b,{title:(0,t.__)("Appearance","give"),initialOpen:!0},(0,e.createElement)(u,{colors:h,name:"color",label:(0,t.__)("Accent Color","give"),onChange:e=>((e,t)=>{o({[e]:t})})("accent_color",e),value:n})))},{Fragment:v}=wp.element,y=wp.serverSideRender,{registerBlockType:w}=wp.blocks;w("give/donor-dashboard",{title:(0,t.__)("Donor Dashboard","give"),description:(0,t.__)("The Donor Dashboard block allows donors to modify and review their donor information from the front-end.","give"),category:"give",icon:(0,e.createElement)(i,{color:"grey"}),keywords:[(0,t.__)("donor","give"),(0,t.__)("dashboard","give")],attributes:{align:{type:"string",default:"wide"},accent_color:{type:"string",default:"#68bb6c"}},supports:{align:["wide"]},edit:({attributes:t,setAttributes:r})=>(0,e.createElement)(v,null,(0,e.createElement)(f,{attributes:t,setAttributes:r}),(0,e.createElement)(y,{block:"give/donor-dashboard",attributes:t})),save:()=>null})})()})();