/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/assets/dist/js
NameSizeModeActions
admin-add-ons.js81130644editdlrm
admin-free-addon-modal.js1499860644editdlrm
admin-onboarding-wizard.js7546960644editdlrm
admin-reports-widget.js6982270644editdlrm
admin-reports.js10430690644editdlrm
admin-setup.js3050644editdlrm
admin-shortcodes.js25970644editdlrm
admin-upsell-addons-page.js1949140644editdlrm
admin-upsell-recurring-donations-settings-tab.js1510610644editdlrm
admin-upsell-sale-banner.js6880644editdlrm
admin-widgets.js55420644editdlrm
admin.js2795370644editdlrm
donor-dashboards-app.js12490320644editdlrm
donor-dashboards-block.js46580644editdlrm
give-admin-donation-forms.js8183080644editdlrm
give-classic-template.js131200644editdlrm
give-donation-summary.js84550644editdlrm
give-log-list-table-app.js7893940644editdlrm
give-migrations-list-table-app.js7874700644editdlrm
give-sequoia-template.js153000644editdlrm
give-stripe-becs.js38590644editdlrm
give-stripe-sepa.js38610644editdlrm
give-stripe.js75790644editdlrm
give.js1582780644editdlrm
gutenberg.js2650130644editdlrm
paypal-commerce.js403930644editdlrm
plugin-deactivation-survey.js310380644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/assets/dist/js/gutenberg.js (265013B)
(()=>{var e,t={6430:(e,t,n)=>{"use strict";var r=n(72446),o=n.n(r),a=n(71959),i={insert:"head",singleton:!1};o()(a.Z,i);a.Z.locals;var l=n(45697),u=n.n(l),c=["color","size"];function s(){return s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p={white:"#fff",grey:"#555d66",give:"#66bb6a"},d=function(e){var t=e.color,n=void 0===t?"give":t,r=e.size,o=void 0===r?"24px":r,a=f(e,c);return React.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:o,height:o},a),React.createElement("circle",{fill:p[n],cx:"78.6",cy:"78.6",r:"78.6"}),React.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"}))};d.propTypes={color:u().oneOf(Object.keys(p)),size:u().oneOfType([u().number,u().string])};const m=d;const h={id:{type:"number",default:0},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:""},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"}};var v=n(73858),g={insert:"head",singleton:!1};o()(v.Z,g);v.Z.locals;var b=n(53328),y={insert:"head",singleton:!1};o()(b.Z,y);b.Z.locals;var w=wp.i18n.__;const k=function(){return React.createElement("p",{className:"give-blank-slate__help"},"Need help? Get started with ",React.createElement("a",{href:"http://docs.givewp.com/give101/",target:"_blank",rel:"noopener noreferrer"},w("GiveWP 101")))};var E=n(26673),x={insert:"head",singleton:!1};o()(E.Z,x);E.Z.locals;const S=function(){return React.createElement("div",{className:"placeholder-animation"},React.createElement("div",{className:"timeline-wrapper"},React.createElement("div",{className:"timeline-item"},React.createElement("div",{className:"animated-background"},React.createElement("div",{className:"layer label layer-4"},React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"}),React.createElement("div",{className:"layer-item opaque"}),React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"})),React.createElement("div",{className:"layer-gap small"}),React.createElement("div",{className:"layer h2 layer-5"},React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"}),React.createElement("div",{className:"layer-item opaque"}),React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"})),React.createElement("div",{className:"layer-gap medium"}),React.createElement("div",{className:"layer label layer-6"},React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"})),React.createElement("div",{className:"layer-gap small"}),React.createElement("div",{className:"layer h2 layer-7"},React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"})),React.createElement("div",{className:"layer-gap medium"}),React.createElement("div",{className:"layer-gap medium"}),React.createElement("div",{className:"layer h1 layer-8"},React.createElement("div",{className:"layer-item opaque"}),React.createElement("div",{className:"layer-item"}),React.createElement("div",{className:"layer-item opaque"}))))))};wp.i18n.__;const O=function(e){var t=e.noIcon,n=e.isLoader,r=e.title,o=e.description,a=e.children,i=e.helpLink,l=React.createElement(S,null),u=React.createElement("div",{className:"block-loaded"},!!r&&React.createElement("h3",{className:"give-blank-slate__heading"},r),!!o&&React.createElement("p",{className:"give-blank-slate__message"},o),a,!!i&&React.createElement(k,null));return React.createElement("div",{className:"give-blank-slate"},!t&&React.createElement(m,{size:"80",className:"give-blank-slate__image"}),n?l:u)};var C=wp.i18n.__;function T(e){var t=[];return e&&(t=e.map((function(e){var t=e.id,n=e.title.rendered;return{value:t,label:""===n?"".concat(t," : ").concat(C("No form title")):n}}))),t.unshift({value:"0",label:C("-- Select Form --")}),t}var P=wp.i18n.__,R=wp.components.Button;const _=function(){return React.createElement(O,{title:P("No donation forms found."),description:P("The first step towards accepting online donations is to create a form."),helpLink:!0},React.createElement(R,{isPrimary:!0,isLarge:!0,className:"give-blank-slate__cta",href:"".concat(wpApiSettings.root.replace("/wp-json/",""),"/wp-admin/post-new.php?post_type=give_forms")},P("Create Donation Form")))};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){for(var n=0;n0&&(n(jQuery.map(r,(function(e){jQuery(".give-block-chosen-select").append('")}))),jQuery(".give-block-chosen-select").trigger("chosen:updated"),e.val(t.term))}))}})}},{key:"render",value:function(){var e=this;return React.createElement(V,{className:"give-chosen-base-control"},React.createElement("select",{className:"give-select give-select-chosen give-block-chosen-select",ref:function(t){return e.el=t}},this.props.options.map((function(e,t){return React.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)}))))}}],n&&N(t.prototype,n),r&&N(t,r),a}(z);const B=U;var H=wp.i18n.__,W=wp.data.withSelect,$=wp.components,Q=$.Placeholder,q=$.Spinner;const G=W((function(e){return{forms:e("core").getEntityRecords("postType","give_forms",{per_page:30})}}))((function(e){var t=e.forms,n=e.setAttributes;return t?t&&0===t.length?React.createElement(_,null):React.createElement(O,{title:H("Donation Form")},React.createElement(B,{className:"give-blank-slate__select",options:T(t),onChange:function(e){n({id:Number(e)})},value:0})):React.createElement(Q,null,React.createElement(q,null))}));var K=wp.i18n.__,Y={};Y.displayStyles=[{value:"onpage",label:K("Full Form")},{value:"modal",label:K("Modal")},{value:"reveal",label:K("Reveal")},{value:"button",label:K("One Button Launch")}],Y.contentPosition=[{value:"above",label:K("Above")},{value:"below",label:K("Below")}];const Z=Y;function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){for(var n=0;nd)&&(z=(B=B.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],0=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const Wt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var $t=/[A-Z]|^ms/g,Qt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qt=function(e){return 45===e.charCodeAt(1)},Gt=function(e){return null!=e&&"boolean"!=typeof e},Kt=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return qt(e)?e:e.replace($t,"-$&").toLowerCase()})),Yt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qt,(function(e,t,n){return Xt={name:t,styles:n,next:Xt},t}))}return 1===Wt[e]||qt(e)||"number"!=typeof t||0===t?t:t+"px"};function Zt(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xt={name:n.name,styles:n.styles,next:Xt},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Xt={name:o.name,styles:o.styles,next:Xt},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bn(){return bn=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}function _n(e){return Rn(e)?window.pageYOffset:e.scrollTop}function Dn(e,t){Rn(e)?window.scrollTo(0,t):e.scrollTop=t}function In(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Nn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:On,o=_n(e),a=t-o,i=10,l=0;function u(){var t=In(l+=i,o,a,n);Dn(e,t),l=d)return{placement:"bottom",maxHeight:t};if(x>=d&&!i)return a&&Nn(u,S,C),{placement:"bottom",maxHeight:t};if(!i&&x>=r||i&&k>=r)return a&&Nn(u,S,C),{placement:"bottom",maxHeight:i?k-b:x-b};if("auto"===o||i){var T=t,P=i?w:E;return P>=r&&(T=Math.min(P-b-l.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===o)return Dn(u,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(E>=d&&!i)return a&&Nn(u,O,C),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&w>=r){var R=t;return(!i&&E>=r||i&&w>=r)&&(R=i?w-y:E-y),a&&Nn(u,O,C),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var zn=function(e){return"auto"===e?"bottom":e},Vn=(0,_t.createContext)({getPortalPlacement:null}),Un=function(e){Ot(n,e);var t=An(n);function n(){var e;kt(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0,m=s-f-c,h=!1;m>n&&e.isBottom&&(a&&a(t),e.isBottom=!1),d&&e.isTop&&(l&&l(t),e.isTop=!1),d&&n>m?(o&&!e.isBottom&&o(t),p.scrollTop=s,h=!0,e.isBottom=!0):!d&&-n>c&&(i&&!e.isTop&&i(t),p.scrollTop=0,h=!0,e.isTop=!0),h&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return xt(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return _t.createElement(zr,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(_t.Component);function to(e){var t=e.isEnabled,n=void 0===t||t,r=gn(e,["isEnabled"]);return n?_t.createElement(eo,r):r.children}var no=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ro=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},oo=function(e){return!!e.isDisabled};var ao={clearIndicator:ir,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:ar,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Wn,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return xn(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),xn(t,"backgroundColor",i.neutral0),xn(t,"borderRadius",o),xn(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),xn(t,"marginBottom",a.menuGutter),xn(t,"marginTop",a.menuGutter),xn(t,"position","absolute"),xn(t,"width","100%"),xn(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Hn,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var io={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oo,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},po=1,mo=function(e){Ot(n,e);var t=co(n);function n(e){var r;kt(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){r.components=Sr({components:e})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;o(e,uo(uo({},t),{},{name:a}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.inputIsHiddenAfterUpdate=!i,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=r.state.selectValue;if(o)if(r.isOptionSelected(e,a)){var i=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==i})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(En(a),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,s=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,m=d.focusedOption,h=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof s&&(s(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!f||!m||p&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":c?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):l&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,a=e.options,i=function(e,n){var a=r.isOptionDisabled(e,t),i=r.isOptionSelected(e,t),l=r.getOptionLabel(e),u=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&i||!r.filterOption({label:l,value:u,data:e},o))){var c=a?void 0:function(){return r.onOptionHover(e)},s=a?void 0:function(){return r.selectOption(e)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:s,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:a,isSelected:i,key:f,label:l,type:"option",value:u}}};return a.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map((function(t,r){var o=i(t,"".concat(n,"-").concat(r));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var a="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:a,data:t,options:o})}}else{var l=i(t,"".concat(n));l&&(e.render.push(l),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var o=e.value;r.cacheComponents=Nt(r.cacheComponents,Xn).bind(Tt(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++po);var a=Pn(o);r.buildMenuOptions=Nt(r.buildMenuOptions,(function(e,t){var n=kn(e,2),r=n[0],o=n[1],a=kn(t,2),i=a[0];return o===a[1]&&r.inputValue===i.inputValue&&r.options===i.options})).bind(Tt(r));var i=e.menuIsOpen?r.buildMenuOptions(e,a):{render:[],focusable:[]};return r.state.menuOptions=i,r.state.selectValue=a,r}return xt(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==a){var i=Pn(e.value),l=e.menuIsOpen?this.buildMenuOptions(e,i):{render:[],focusable:[]},u=this.getNextFocusedValue(i),c=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:i,focusedOption:c,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused;(c&&!l&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),c&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?Dn(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a-1&&(c=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:a,focusedValue:null,focusedOption:a.focusable[c]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,c=-1;if(a.length){switch(e){case"previous":c=0===l?0:-1===l?u:l-1;break;case"next":l>-1&&l0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.menuOptions,l=i.focusable;if(l.length){var u=0,c=l.indexOf(a);a||(c=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=c>0?c-1:l.length-1:"down"===e?u=(c+1)%l.length:"pageup"===e?(u=c-n)<0&&(u=0):"pagedown"===e?(u=c+n)>l.length-1&&(u=l.length-1):"last"===e&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:oo(l[u]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(io):uo(uo({},io),this.props.theme):io}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,l=i.isMulti,u=i.isRtl,c=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,u=a.inputValue,c=a.screenReaderStatus,s=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",p=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:c({count:this.countOptions()})});return"".concat(s," ").concat(f," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,l=this.components.Input,u=this.state.inputIsHidden,c=r||this.getElementId("input"),s={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return _t.createElement(Ar,bn({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:On,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:i,value:""},s));var f=this.commonProps,p=f.cx,d=f.theme,m=f.selectProps;return _t.createElement(l,bn({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:m,spellCheck:"false",tabIndex:a,form:i,theme:d,type:"text",value:o},s))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,s=c.controlShouldRenderValue,f=c.isDisabled,p=c.isMulti,d=c.inputValue,m=c.placeholder,h=this.state,v=h.selectValue,g=h.focusedValue,b=h.isFocused;if(!this.hasValue()||!s)return d?null:_t.createElement(l,bn({},u,{key:"placeholder",isDisabled:f,isFocused:b}),m);if(p){var y=v.map((function(t,i){var l=t===g;return _t.createElement(n,bn({},u,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:f,key:"".concat(e.getOptionValue(t)).concat(i),index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return y}if(d)return null;var w=v[0];return _t.createElement(i,bn({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return _t.createElement(e,bn({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return _t.createElement(e,bn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return _t.createElement(n,bn({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return _t.createElement(e,bn({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,s=this.commonProps,f=this.state,p=f.focusedOption,d=f.menuOptions,m=this.props,h=m.captureMenuScroll,v=m.inputValue,g=m.isLoading,b=m.loadingMessage,y=m.minMenuHeight,w=m.maxMenuHeight,k=m.menuIsOpen,E=m.menuPlacement,x=m.menuPosition,S=m.menuPortalTarget,O=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,T=m.noOptionsMessage,P=m.onMenuScrollToTop,R=m.onMenuScrollToBottom;if(!k)return null;var _,D=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,_t.createElement(c,bn({},s,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())_=d.render.map((function(t){if("group"===t.type){t.type;var o=gn(t,["type"]),a="".concat(t.key,"-heading");return _t.createElement(n,bn({},s,o,{Heading:r,headingProps:{id:a,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e)})))}if("option"===t.type)return D(t)}));else if(g){var I=b({inputValue:v});if(null===I)return null;_=_t.createElement(l,s,I)}else{var N=T({inputValue:v});if(null===N)return null;_=_t.createElement(u,s,N)}var M={minMenuHeight:y,maxMenuHeight:w,menuPlacement:E,menuPosition:x,menuShouldScrollIntoView:C},j=_t.createElement(Un,bn({},s,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,l=r.maxHeight;return _t.createElement(o,bn({},s,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:i}),_t.createElement(to,{isEnabled:h,onTopArrive:P,onBottomArrive:R},_t.createElement(Xr,{isEnabled:O},_t.createElement(a,bn({},s,{innerRef:e.getMenuListRef,isLoading:g,maxHeight:l}),_))))}));return S||"fixed"===x?_t.createElement(i,bn({},s,{appendTo:S,controlElement:this.controlRef,menuPlacement:E,menuPosition:x}),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=this.state.selectValue;if(a&&!r){if(o){if(n){var l=i.map((function(t){return e.getOptionValue(t)})).join(n);return _t.createElement("input",{name:a,type:"hidden",value:l})}var u=i.length>0?i.map((function(t,n){return _t.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):_t.createElement("input",{name:a,type:"hidden"});return _t.createElement("div",null,u)}var c=i[0]?this.getOptionValue(i[0]):"";return _t.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?_t.createElement(Lr,{"aria-live":"polite"},_t.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),_t.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,s=this.state.isFocused,f=this.commonProps=this.getCommonProps();return _t.createElement(r,bn({},f,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:s}),this.renderLiveRegion(),_t.createElement(t,bn({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:s,menuIsOpen:c}),_t.createElement(o,bn({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),_t.createElement(n,bn({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(_t.Component);function ho(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rt(e);if(t){var o=Rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pt(this,n)}}mo.defaultProps=fo;var vo={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rt(e);if(t){var o=Rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pt(this,n)}}_t.Component;var bo,yo,wo,ko=(bo=mo,wo=yo=function(e){Ot(n,e);var t=ho(n);function n(){var e;kt(this,n);for(var r=arguments.length,o=new Array(r),a=0;a1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Oa("/wp/v2/block-renderer/".concat(e),ha(ha({context:"edit"},null!==t?{attributes:t}:{}),n))}(n,o,void 0===a?{}:a),l=this.currentFetchRequest=Sa({path:i}).then((function(e){t.isStillMounted&&l===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&l===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return l}}},{key:"render",value:function(){var e=this.props.spinnerLocation,t=e.right,n=e.top,r=e.unit,o=this.state.response,a=this.state.prevResponse,i="";null!==a&&(i='
').concat(a,"
"));var l=this.props,u=l.className,c=l.EmptyResponsePlaceholder,s=l.ErrorResponsePlaceholder;return""===o?React.createElement(c,ua({response:o},this.props)):o?o.error?React.createElement(s,ua({response:o},this.props)):React.createElement(ya,{key:"html",className:u},o):React.createElement(wa,null,React.createElement(ya,{key:"html",className:u},i))}}],n&&ca(t.prototype,n),r&&ca(t,r),a}(ba);Ta.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(Ca,{className:t},Ea("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=xa(Ea("Error loading block: %s"),t.errorMsg);return React.createElement(Ca,{className:n},r)}};const Pa=Ta;var Ra=wp.element.Fragment;const _a=function(e){var t=e.attributes,n=e.setAttributes;return React.createElement(Ra,null,React.createElement(aa,{attributes:t,setAttributes:n}),React.createElement(Pa,{block:"give/progress-bar",attributes:t,spinnerLocation:{right:0,top:-30,unit:"px"}}))};var Da=wp.i18n.__;(0,wp.blocks.registerBlockType)("give/progress-bar",{title:Da("Progress Bar","give"),description:Da("The Progress Bar block displays progress made across donation forms towards a common goal.","give"),category:"give",icon:React.createElement(m,{color:"grey"}),keywords:[Da("donation","give"),Da("progress-bar","give")],attributes:wt,parent:["give/multi-form-goal"],edit:_a})},26673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".timeline-item{background:#fff}@-webkit-keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:520px 0}}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:520px 0}}.placeholder-animation{margin:0 auto;max-width:650px}.animated-background{-webkit-animation-duration:.85s;animation-duration:.85s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:placeHolderShimmer;animation-name:placeHolderShimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear;background:#f6f7f8;background:linear-gradient(90deg,#eee 8%,#ddd 18%,#eee 33%);background-size:520px 100%;position:relative}.container{background-color:#eee;border:1px solid #eee;margin:0 auto;width:650px}.layer{display:flex}.layer.h1{height:28px}.layer.h2{height:22px}.layer.inline-radios{height:12px}.layer.label{height:8px}.layer-item.opaque{background:#fff}.layer-gap{background-color:#fff}.layer-gap.large{height:40px}.layer-gap.medium{height:20px}.layer-gap.small{height:10px}.layer-1 .layer-item:nth-child(odd){width:45%}.layer-1 .layer-item:nth-child(2n){width:55%}.layer-4 .layer-item:first-child{width:30%}.layer-4 .layer-item:nth-child(2){width:10%}.layer-4 .layer-item:nth-child(3){width:20%}.layer-4 .layer-item:nth-child(4){width:30%}.layer-4 .layer-item:nth-child(5){width:10%}.layer-5 .layer-item:first-child{width:40%}.layer-5 .layer-item:nth-child(2){width:5%}.layer-5 .layer-item:nth-child(3){width:15%}.layer-5 .layer-item:nth-child(4){width:40%}.layer-6 .layer-item:nth-child(odd){width:30%}.layer-6 .layer-item:nth-child(2n){width:70%}.layer-8 .layer-item:first-child{width:40%}.layer-8 .layer-item:nth-child(2){width:20%}.layer-8 .layer-item:nth-child(3){width:40%}",""]);const a=o},53328:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'[data-type="give/donation-form"] .components-base-control__field{margin:0 auto;max-width:400px;text-align:left}',""]);const a=o},73858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".wp-block-give-donation-form{position:relative}.wp-block-give-donation-form form[id*=give-form] #give-gateway-radio-list>li input[type=radio]{display:inline-block}.give-change-donation-form-btn svg{margin-top:3px}",""]);const a=o},71959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,".gutenberg__editor .give-blank-slate__image{max-width:96px}.give-chosen-base-control a.chosen-single{box-shadow:none!important}.give-chosen-base-control ul.chosen-results{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin:0!important;text-align:left!important}",""]);const a=o},54361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'[data-type="give/multi-form-goal"] [data-type="give/progress-bar"]{margin:0!important;max-width:100%!important}[data-type="give/multi-form-goal"] [data-type="core/media-text"]{margin:24px!important;max-width:100%!important}',""]);const a=o},17137:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(1519),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"input[id^=give-multi-select-control-]:focus{box-shadow:none;outline:none}",""]);const a=o},1519:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function l(e){for(var t=-1,n=0;n{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,l,u=o(e),c=1;c{"use strict";var r=n(50414);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,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}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64448:(e,t,n)=>{"use strict";var r=n(67294),o=n(27418),a=n(63840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n