OwlCyberSecurity - MANAGER
Edit File: campaignBlocksLandingPage.js
(()=>{var e={25815:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(68081),o=n(40390),i=n(19735),a=n(24534),s=n(50483),l=n(49503),u=n(73716),c=function(e,t,n){for(var r=0,i=0;r=i,i=(0,o.se)(),38===r&&12===i&&(t[n]=1),!(0,o.Sh)(i);)(0,o.K2)();return(0,o.di)(e,o.G1)},d=new WeakMap,p=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(n))&&!r){d.set(e,!0);for(var a=[],s=function(e,t){return(0,o.VF)(function(e,t){var n=-1,r=44;do{switch((0,o.Sh)(r)){case 0:38===r&&12===(0,o.se)()&&(t[n]=1),e[n]+=c(o.G1-1,t,n);break;case 2:e[n]+=(0,o.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,o.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,i.HT)(r)}}while(r=(0,o.K2)());return e}((0,o.c4)(e),t))}(t,a),l=n.props,u=0,p=0;u<s.length;u++)for(var g=0;g<l.length;g++,p++)e.props[p]=a[u]?s[u].replace(/&\f/g,l[g]):l[g]+" "+s[u]}}},g=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function f(e,t){switch((0,i.tW)(e,t)){case 5103:return a.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.j+e+a.vd+e+a.MS+e+e;case 6828:case 4268:return a.j+e+a.MS+e+e;case 6165:return a.j+e+a.MS+"flex-"+e+e;case 5187:return a.j+e+(0,i.HC)(e,/(\w+).+(:[^]+)/,a.j+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.j+e+a.MS+"flex-item-"+(0,i.HC)(e,/flex-|-self/,"")+e;case 4675:return a.j+e+a.MS+"flex-line-pack"+(0,i.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return a.j+e+a.MS+(0,i.HC)(e,"shrink","negative")+e;case 5292:return a.j+e+a.MS+(0,i.HC)(e,"basis","preferred-size")+e;case 6060:return a.j+"box-"+(0,i.HC)(e,"-grow","")+a.j+e+a.MS+(0,i.HC)(e,"grow","positive")+e;case 4554:return a.j+(0,i.HC)(e,/([^-])(transform)/g,"$1"+a.j+"$2")+e;case 6187:return(0,i.HC)((0,i.HC)((0,i.HC)(e,/(zoom-|grab)/,a.j+"$1"),/(image-set)/,a.j+"$1"),e,"")+e;case 5495:case 3959:return(0,i.HC)(e,/(image-set\([^]*)/,a.j+"$1$`$1");case 4968:return(0,i.HC)((0,i.HC)(e,/(.+:)(flex-)?(.*)/,a.j+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.HC)(e,/(.+)-inline(.+)/,a.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.b2)(e)-1-t>6)switch((0,i.wN)(e,t+1)){case 109:if(45!==(0,i.wN)(e,t+4))break;case 102:return(0,i.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+a.j+"$2-$3$1"+a.vd+(108==(0,i.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.K5)(e,"stretch")?f((0,i.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.wN)(e,t+1))break;case 6444:switch((0,i.wN)(e,(0,i.b2)(e)-3-(~(0,i.K5)(e,"!important")&&10))){case 107:return(0,i.HC)(e,":",":"+a.j)+e;case 101:return(0,i.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.j+(45===(0,i.wN)(e,14)?"inline-":"")+"box$3$1"+a.j+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch((0,i.wN)(e,t+11)){case 114:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.j+e+a.MS+e+e}return e}var m=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case a.LU:e.return=f(e.value,e.length);break;case a.Sv:return(0,s.l)([(0,o.C)(e,{value:(0,i.HC)(e.value,"@","@"+a.j)})],r);case a.XZ:if(e.length)return(0,i.kg)(e.props,(function(t){switch((0,i.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.l)([(0,o.C)(e,{props:[(0,i.HC)(t,/:(read-\w+)/,":"+a.vd+"$1")]})],r);case"::placeholder":return(0,s.l)([(0,o.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+a.j+"input-$1")]}),(0,o.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+a.vd+"$1")]}),(0,o.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""}))}}],h=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||m,c={},d=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)c[t[n]]=!0;d.push(e)}));var f,h=[p,g],v=[s.A,(0,l.MY)((function(e){f.insert(e)}))],b=(0,l.r1)(h.concat(a,v));i=function(e,t,n,r){var o;f=n,o=e?e+"{"+t.styles+"}":t.styles,(0,s.l)((0,u.wE)(o),b),r&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new r.v({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:i};return y.sheet.hydrate(d),y}},35137:(e,t,n)=>{"use strict";function r(e){for(var t,n=0,r=0,o=e.length;o>=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)}n.d(t,{A:()=>r})},5441:(e,t,n)=>{"use strict";n.d(t,{E:()=>m,c:()=>g,h:()=>s});var r=n(51609),o=n(25815),i=n(30041),a=n(12323),s={}.hasOwnProperty,l=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null);l.Provider;var u=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(l);return e(t,o,n)}))},c=(0,r.createContext)({}),d=r.useInsertionEffect?r.useInsertionEffect:function(e){e()},p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},f=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,i.SF)(t,n,r),d((function(){return(0,i.sk)(t,n,r)})),null},m=u((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var l=e[p],u=[o],d="";"string"==typeof e.className?d=(0,i.Rk)(t.registered,u,e.className):null!=e.className&&(d=e.className+" ");var g=(0,a.J)(u,void 0,(0,r.useContext)(c));d+=t.key+"-"+g.name;var m={};for(var h in e)s.call(e,h)&&"css"!==h&&h!==p&&(m[h]=e[h]);return m.ref=n,m.className=d,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(f,{cache:t,serialized:g,isStringTag:"string"==typeof l}),(0,r.createElement)(l,m))}))},17437:(e,t,n)=>{"use strict";n.d(t,{AH:()=>s,Y:()=>a,i7:()=>l});var r=n(51609),o=(n(25815),n(5441)),i=(n(4146),n(12323)),a=function(e,t){var n=arguments;if(null==t||!o.h.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=o.E,a[1]=(0,o.c)(e,t);for(var s=2;s<i;s++)a[s]=n[s];return r.createElement.apply(null,a)};function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.J)(t)}r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect;var l=function(){var e=s.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},12323:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r=n(35137),o=n(69209),i=n(91545),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,i.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return g={name:t,styles:n,next:g},t}))}return 1===o.A[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){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 g={name:n.name,styles:n.styles,next:g},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)g={name:r.name,styles:r.styles,next:g},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":u(a)&&(r+=c(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)u(a[l])&&(r+=c(i)+":"+d(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=g,i=n(e);return g=o,p(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var g,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";g=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=p(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=p(n,t,e[s]),o&&(i+=a[s]);f.lastIndex=0;for(var l,u="";null!==(l=f.exec(i));)u+="-"+l[1];return{name:(0,r.A)(i)+u,styles:i,next:g}}},91545:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},69209:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r={animationIterationCount:1,aspectRatio: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}},68081:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},30041:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},11905:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),n(51609);const r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjQ5IiB2aWV3Qm94PSIwIDAgMTQ4IDQ5IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNDAuOTQ3IDI0LjcyaC41NDNzNi40MDEuMTExIDYuNTEgOC40OThjMCA4LjA1Ny03LjkyMSAxNC45LTE3LjI1MiAxNC45LTEuNTE5IDAtMTQuMTA2LS40NDItMTUuMDgyLTE1Ljc4Mi0yLjQ5Ni0uMTEtNi43MjgtLjU1Mi0xMC4zMDgtMi4wOTctMy41ODEgOC45MzktOS4xMTUgMTYuMDAyLTEyLjQ3OCAxNi4wMDItMy4zNjQgMC02LjE4NS00LjQxNC04LjQ2NC0xMi45MTJsLS4yMTctLjg4M0M3OS44NiAzOS45NSA3My44OTEgNDYuMTMgNzAuOTYyIDQ2LjEzYy0zLjQ3MiAwLTcuNzA0LTQuMDg0LTcuNzA0LTcuOTQ2IDAtMy44NjMgMS4xOTQtMTMuMTMzIDEuMTk0LTEzLjEzM3MtMy4xNDcuNjYyLTcuNzA0IDEuMzI0QzU1Ljg4IDMwLjc5MSA1MS4xMDYgNDkgMzIuNDQzIDQ5IDEwLjE5OSA0OSAwIDI0LjUgMCAyNC41YzIuNDY4LTEuNTUgNS41MzItNC44MDUgOC45NjItOC40NTFDMTUuNzg3IDguNzk3IDI0LjA2NiAwIDMyLjAxIDBjMTEuOTM1IDAgMTYuMTY3IDE1LjAwOSAxNi4xNjcgMTUuMDA5bC0uOTc3IDEuNjU1cy0zLjkwNi01LjA3Ni0xMi45MTItNS4wNzZjLTYuODc5IDAtMTIuMDg5IDYuMjg3LTE1Ljg2NCAxMC44NDEtMS4yMjYgMS40OC0yLjMwMSAyLjc3Ny0zLjIzMiAzLjYxNiAwIDAgOS40NCAxNS4xMiAyMS43IDE1LjEyIDYuNTEgMCAxMy41NjQtNS43NCAxNy41NzgtMTQuNDU4LTYuOTQ0Ljk5NC0xNi4wNTggMS44NzYtMjIuNDYgMS4xMDQgMCAwLS4zMjYtLjMzMS0uNDM0LS42NjItLjIxNy0uNDQyLS4yMTctLjg4My0uMjE3LS44ODMgMjIuNjc3IDAgMzkuNzEyLTkuNjAyIDQxLjIzMS0xMC41OTUuMTA5LS4xMS4yMTctLjExLjMyNi0uMTEgMS40NjEuMzU5LjcgNS40My0uMTAxIDEwLjc2LS45MjMgNi4xNDYtMS44OTggMTIuNjM2LjQyNyAxMi42MzYgMi4zODcgMCA3LjE2LTcuNTA0IDkuODczLTEyLjAzLS45NC00Ljg1NS0xLjg4LTkuNDE2LTIuNDAzLTExLjk1YTk5Ljc5NCA5OS43OTQgMCAwIDEtLjQxOC0yLjA2NXYtLjMzbC4yMTctLjExMWMuMTA5LS4xMSA0Ljc3NC0xLjk4NyA3LjcwNC0xLjk4NyAyLjE3IDAgMy40NzIgMS4yMTQgMy40NzIgMy4zMTEgMCAxLjMyNC0uNjUgNC4wODMtMS44NDQgNy4zOTQuNzM4IDcuMDM4IDMuMjAxIDEzLjU5NiA0LjM5IDE2Ljc2LjIwOS41NTcuMzc5IDEuMDA5LjQ5MiAxLjM0bC4wMjgtLjAzNGMxLjIyMi0xLjQ2OCA0Ljg3MS01Ljg1NSA3LjAyNS0xMS4wMDMtMi40OTYtMS45ODYtMy42ODktNC43NDUtMy42ODktOC4wNTYgMC01LjUxOCAzLjAzOC04LjM4NyA1Ljk2OC04LjM4NyAyLjA2MSAwIDQuMjMxIDEuNDM0IDQuMjMxIDQuNjM1IDAgMi4zMTctLjMyNSA0Ljg1NS0uOTc2IDcuNjE1IDEuNzM2IDEuNjU1IDQuNTU3IDMuNDIgOC4zNTUgMy41MzEuNzU5LTcuOTQ2IDQuNTU3LTE5LjMxMyAxMi4wNDQtMTkuMzEzIDcuOTIgMCA5LjExNCA2LjczMiA5LjExNCAxMC44MTUgMCA1LjYyOS00Ljk5MSAxMC40ODUtMTIuNjk1IDEyLjM2LjIxNyA2LjQwMiAxLjk1MyAxMi4wMyA2LjYxOSAxMi4wMyAyLjkyOSAwIDUuMzE3LTEuMjE0IDcuMTYxLTMuNTMyIDMuMjU1LTMuOTczIDQuMDE1LTEwLjM3MyAzLjE0Ny0xNC42NzhsLS4xMDktLjU1MXptLTE2LjYwMSAxLjIxNWM1LjY0Mi0yLjUzOSA1Ljc1MS03LjUwNSA1Ljc1MS03LjYxNSAwLTMuMi0xLjMwMi01LjA3Ny0yLjQ5Ni01LjE4Ny0xLjA4NSAwLTIuNzEyIDYuMDctMy4yNTUgMTIuODAyeiIgZmlsbD0iIzY2QkI2QSIvPgogICAgPHBhdGggZD0iTTY0Ljk5NCAxMi4yNWMwIC4yMi4xMDguMzMxLjMyNS40NDEgNC40NDkuNjYzIDcuMzc5LS43NzIgNy4zNzktOC4wNTYgMC02Ljg0Mi02Ljk0NS0xLjQzNC04LjI0Ny0uNDQxLS4xMDguMTEtLjEwOC4yMi0uMTA4LjQ0MSAxLjE5MyAyLjY0OS44NjggNi41MTEuNjUgNy42MTV6IiBmaWxsPSIjNjZCQjZBIi8+CiAgICA8bWFzayBpZD0idnl2ZWp5cm4xYSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMTE1IiB5PSIzMSIgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIj4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExOS44OTggMzIuMjI3Yy0yLjE3LjIyLTQuMjMyLjExLTQuMjMyLjExLjMyNiA0LjQxNSAxLjQ1OCA3LjM5MSAzLjA4NiA5LjcwOWw3LjkyLS42NjNjLTEuNjgxLTIuMjM0LTIuMzg1LTUuNTgtMi41NDMtOS45MyAwIDAtMi4xNy41NTMtNC4yMzEuNzc0eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCN2eXZlanlybjFhKSI+CiAgICAgICAgPHBhdGggZD0ibTEyNy44MTggNDEuOTM3LTEuMzAyLTExLjgwOS0xMi4wNDQgMS40MzUgMS4zMDIgMTEuODA5IDEyLjA0NC0xLjQzNXoiIGZpbGw9InVybCgjZHJvcHkwdmMyYikiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJuZ3FpN2JtNzNjIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIxMTUiIHk9IjE3IiB3aWR0aD0iMTEiIGhlaWdodD0iMTEiPgogICAgICAgIDxwYXRoIGQ9Ik0xMjQuMzQ3IDI1LjkzN2MtMS42NzkgMS4wNS02Ljg5MSAxLjc5Ni04LjY4MSAxLjY1My4yNjMtMi40NzYuNzg3LTUuODk2IDIuMTctOS42MDEgMS4wNTYtLjI1NCA1Ljg2LS4yNjIgNy4zMTYgMS44MzJhNTYuODgxIDU2Ljg4MSAwIDAgMC0uODA1IDYuMTE2eiIgZmlsbD0iI2ZmZiIvPgogICAgPC9tYXNrPgogICAgPGcgbWFzaz0idXJsKCNuZ3FpN2JtNzNjKSI+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNveHA5dzBhbzVkKSIgZD0iTTExNS41NTggMTcuODczaDkuNTk0djkuNzM1aC05LjU5NHoiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJueW9nNWZtbWllIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI3NiIgeT0iMjYiIHdpZHRoPSI5IiBoZWlnaHQ9IjE1Ij4KICAgICAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTc2LjQ0MyAzNi42NDRjLjU0MyAxLjMyNCAxLjEzIDIuODYxIDEuNzggNC4xODYgMS4wNjktMS4yNTUgMi4yNDMtMi42NiAzLjYyOS00LjY5LjgxNy0xLjE5OCAxLjY2OC0yLjU3OCAyLjM0OC0zLjY5NGwtMS4wODEtNS41MjNjLTEuNzM4IDMuMDA0LTQuNjkyIDcuNTctNi42NzYgOS43MnoiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjbnlvZzVmbW1pZSkiPgogICAgICAgIDxwYXRoIGQ9Ik03Ny4xNDcgNDMuMjYxIDg4LjMyMyAzOS40bC00Ljg4My0xNC45LTExLjE3NiAzLjg2NCA0Ljg4MyAxNC44OTh6IiBmaWxsPSJ1cmwoI2RpanZpNDZ6aGYpIi8+CiAgICA8L2c+CiAgICA8bWFzayBpZD0iN21pY25seDg4ZyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iOTYiIHk9IjI4IiB3aWR0aD0iMTAiIGhlaWdodD0iMTMiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTYuNjc4IDM2Ljg1NWMuNzYgMS4xMDQgMi4xNyAyLjU0NCAzLjE0NiAzLjY0N2E0My44OTMgNDMuODkzIDAgMCAwIDIuNDY1LTMuODg4IDU5LjQxNCA1OS40MTQgMCAwIDAgMy4wNjktNi4zNzVzLTEuMDY4LS4zOC0xLjk0MS0uODkzYy0uODczLS41MTQtMS42MzYtMS4wOTEtMS42MzYtMS4wOTEtMS41MzQgMy41NzgtMy41MjcgNi41NC01LjEwMyA4LjZ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzdtaWNubHg4OGcpIj4KICAgICAgICA8cGF0aCBkPSJtMTAzLjI5NiA0NC4yNTUgNy4yNy0xMy4xMzMtMTEuNzE5LTYuNzMyLTcuMjcgMTMuMDIyIDExLjcxOSA2Ljg0M3oiIGZpbGw9InVybCgjcjNlMTJsd2NwaCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSIyemx4Mm1oaTVpIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI4OCIgeT0iMTMiIHdpZHRoPSI0IiBoZWlnaHQ9IjkiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODguODY1IDE0LjM0N3MuMTA5IDEuOTg2Ljk3NyA2Ljg0MmMxLjE5My0zLjQyMSAxLjgzNC02LjA0OCAxLjgzNC03LjM3MnYtLjMzMmwtMi44MS44NjJ6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoIzJ6bHgybWhpNWkpIj4KICAgICAgICA8cGF0aCBkPSJtODkuNjI1IDEyLjE0LTQuMjMyIDYuODQyIDUuNTM0IDMuNDIxIDQuMjMxLTYuODQyLTUuNTMzLTMuNDIxeiIgZmlsbD0idXJsKCN6OWJobXhidjVqKSIvPgogICAgPC9nPgogICAgPG1hc2sgaWQ9Imdwdm5pNG5tMmsiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjEwNCIgeT0iMTciIHdpZHRoPSI1IiBoZWlnaHQ9IjgiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTA0LjkyMiAxOC44NzNzLS43NiAyLjMxOCAyLjM4NyA1LjE4N2MuNTQyLTIuMzE3Ljg0Ni00LjUyMi45Ni02LjYxN2wtMy4zNDcgMS40M3oiIGZpbGw9IiNmZmYiLz4KICAgIDwvbWFzaz4KICAgIDxnIG1hc2s9InVybCgjZ3B2bmk0bm0yaykiPgogICAgICAgIDxwYXRoIGQ9Im0xMDQuNDg5IDE2LjIyMy0xLjg0NCA3LjI4NCA1LjQyNSAxLjQzNCAxLjk1My03LjE3My01LjUzNC0xLjU0NXoiIGZpbGw9InVybCgjYzU1emR6a3ZqbCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJkMXRvZ2IwY3NtIiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI0NiIgeT0iMjYiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxNCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01NC40NjcgMjYuNzA3Yy0yLjAxNCA0LjM5Ny00LjYxNiA3LjgyLTcuNzYgMTAuNDI0bDQuNjE5IDIuMTNjMi40NDEtMy40ODQgMy42NzktNi43MTcgNC41NTQtOS40NjRsLjQ2NC0xLjY2Ny40MDctMS43Ni0yLjI4NC4zMzd6IiBmaWxsPSIjZmZmIi8+CiAgICA8L21hc2s+CiAgICA8ZyBtYXNrPSJ1cmwoI2QxdG9nYjBjc20pIj4KICAgICAgICA8cGF0aCBkPSJtNDcuNTggMjcuMDE4IDkuNjI5LS44NjMtLjQ3NSAxMy40MTYtMTAuMTg2LS4zOTMgMS4wMzEtMTIuMTZ6IiBmaWxsPSJ1cmwoI3RhcHl2eG5kc24pIi8+CiAgICA8L2c+CiAgICA8ZGVmcz4KICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImRyb3B5MHZjMmIiIHgxPSIxMjUuNTQ1IiB5MT0iMzkuOTY1IiB4Mj0iMTI0LjY4NSIgeTI9IjMyLjA3NCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJveHA5dzBhbzVkIiB4MT0iMTE2LjQxNSIgeTE9IjIzLjY3OSIgeDI9IjExNi40MTUiIHkyPSIzMS44MzQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iZGlqdmk0NnpoZiIgeDE9Ijc4LjExMyIgeTE9IjM5LjIyMSIgeDI9Ijg1LjUzOSIgeTI9IjM3LjM3NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJyM2UxMmx3Y3BoIiB4MT0iMTAzLjE0OCIgeTE9IjM5LjIzNCIgeDI9IjEwNy42NTYiIHkyPSIzMS44NjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iIzY2QkI2QSIvPgogICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzhGNDMiLz4KICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iejliaG14YnY1aiIgeDE9Ijg5LjcxMSIgeTE9IjE1Ljk5MiIgeDI9Ijg4LjQwNiIgeTI9IjE3LjkwNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJjNTV6ZHprdmpsIiB4MT0iMTA1LjI0OCIgeTE9IjIwLjAzOCIgeDI9IjEwNC4zMiIgeTI9IjIyLjYwOCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjNjZCQjZBIi8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzM3OEY0MyIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJ0YXB5dnhuZHNuIiB4MT0iNTUuNTUxIiB5MT0iMzYuNjczIiB4Mj0iNTUuNTUxIiB5Mj0iMjYuODExIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM2NkJCNkEiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzc4RjQzIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="},95175:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(51609),o=n(27723),i=n(47143),a=n(94715),s=n(56427),l=n(38965),u=n(29809);const c=e=>{switch(e){case"amount":return(0,o.__)("Amount raised","give");case"donations":return(0,o.__)("Number of donations","give");case"donors":return(0,o.__)("Number of donors","give");case"amountFromSubscriptions":return(0,o.__)("Recurring amount raised","give");case"subscriptions":return(0,o.__)("Number of recurring donations","give");case"donorsFromSubscriptions":return(0,o.__)("Number of recurring donors","give")}},d=(e,t)=>{switch(e){case"amount":case"amountFromSubscriptions":const{currency:e}=(0,u.DP)();return(0,u.Vo)(e).format(t);default:return t}},p=({campaign:e})=>(0,r.createElement)("div",{className:"givewp-campaign-goal"},(0,r.createElement)("div",{className:"givewp-campaign-goal__container"},(0,r.createElement)("div",{className:"givewp-campaign-goal__container-item"},(0,r.createElement)("span",null,c(e.goalType)),(0,r.createElement)("strong",null,d(e.goalType,e.goalStats.actual))),(0,r.createElement)("div",{className:"givewp-campaign-goal__container-item"},(0,r.createElement)("span",null,(0,o.__)("Our goal","give")),(0,r.createElement)("strong",null,d(e.goalType,e.goal)))),(0,r.createElement)("div",{className:"givewp-campaign-goal__progress-bar"},(0,r.createElement)("div",{className:"givewp-campaign-goal__progress-bar-container"},(0,r.createElement)("div",{className:"givewp-campaign-goal__progress-bar-progress",style:{width:`${e.goalStats.percentage}%`}}))));var g=n(47730);const f={schema:JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/campaign-goal","version":"1.0.0","title":"Campaign Goal","category":"give","description":"Displays the goal of the campaign.","supports":{"align":["wide","full"]},"attributes":{"campaignId":{"type":"number"}},"example":{},"textdomain":"give","viewScript":"file:../../../../build/campaignGoalBlockApp.js","style":"file:../../../../build/campaignGoalBlockApp.css","render":"file:./render.php"}'),settings:{icon:function(){return(0,r.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.16 1.013a1 1 0 0 1 .734.54l.851 1.702 1.702.85a1 1 0 0 1 .26 1.602l-3 3A1 1 0 0 1 19 9h-2.586l-3.707 3.707a1 1 0 0 1-1.414-1.414L15 7.586V5a1 1 0 0 1 .293-.707l3-3a1 1 0 0 1 .867-.28z",fill:"#000"}),(0,r.createElement)("path",{d:"M3 12a9 9 0 0 1 9-9 1 1 0 1 0 0-2C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11a1 1 0 1 0-2 0 9 9 0 1 1-18 0z",fill:"#000"}),(0,r.createElement)("path",{d:"M8 12a4 4 0 0 1 4-4 1 1 0 1 0 0-2 6 6 0 1 0 6 6 1 1 0 1 0-2 0 4 4 0 0 1-8 0z",fill:"#000"}))},edit:function({attributes:e,setAttributes:t}){const{campaign:n,hasResolved:u}=(0,l.A)(e.campaignId),d=(0,a.useBlockProps)(),f=(0,i.useSelect)((e=>e("core").getSite()?.url+"/wp-admin/edit.php?post_type=give_forms&page=give-campaigns"),[]);return u?(0,r.createElement)("div",{...d},(0,r.createElement)(g.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(p,{campaign:n})),n?.id&&(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:(0,o.__)("Settings","give"),initialOpen:!0},(0,r.createElement)(s.TextControl,{value:c(n.goalType),onChange:null,disabled:!0}),(0,r.createElement)(s.ExternalLink,{href:`${f}&id=${e.campaignId}&tab=settings#campaign-goal`,title:(0,o.__)("Edit campaign goal settings","give")},(0,o.__)("Edit campaign goal settings","give"))))):null}}}},65028:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(51609);const o=JSON.parse('{"$schema":"https://json.schemastore.org/block.json","apiVersion":2,"name":"givewp/campaign-donate-button","version":"1.0.0","title":"Donate Button","category":"give","description":"The GiveWP Donate Button inserts an donate button into the page.","supports":{"align":["wide","full"]},"attributes":{"campaignId":{"type":"number"},"useDefaultForm":{"type":"boolean","default":true},"selectedForm":{"type":"string"},"buttonText":{"type":"string"}},"example":{},"textdomain":"give","render":"file:./render.php","style":"file:../../../../build/campaignDonateButtonBlockApp.css"}');var i=n(27723),a=n(47143),s=n(93832),l=n(1455),u=n.n(l),c=n(57626),d=n(94715),p=n(56427),g=n(84871),f=n.n(g),m=n(38965),h=n(47730),v=n(16639);const b={schema:o,settings:{icon:(0,r.createElement)(v.A,{color:"grey"}),edit:function({attributes:e,setAttributes:t}){const n=(0,d.useBlockProps)(),{buttonText:o=(0,i.__)("Donate","give")}=e,{campaign:l,hasResolved:g}=(0,m.A)(e.campaignId),v=(0,a.useSelect)((e=>e("core").getSite()?.url+"/wp-admin/edit.php?post_type=give_forms&page=give-campaigns"),[]),b=(()=>{const{data:t,isLoading:n}=(0,c.Ay)((0,s.addQueryArgs)("/give-api/v2/admin/forms",{campaignId:e.campaignId,status:"publish"}),(e=>u()({path:e})));if(n)return[{label:(0,i.__)("Loading...","give"),value:""}];const r=t?.items.map((e=>({label:e.name,value:e.id})));return[{label:(0,i.__)("Select form","give"),value:""},...r]})();return(0,r.createElement)("div",{...n},(0,r.createElement)(h.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(f(),{block:"givewp/campaign-donate-button",attributes:e})),g&&l?.id&&(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(p.PanelBody,{title:"Settings",initialOpen:!0},(0,r.createElement)(p.TextControl,{label:(0,i.__)("Donate button","give"),value:o,onChange:e=>t({buttonText:e})}),(0,r.createElement)(p.ToggleControl,{label:(0,i.__)("Use default form","give"),checked:e.useDefaultForm,onChange:e=>t({useDefaultForm:e}),help:(0,r.createElement)(r.Fragment,null,(0,i.__)("Uses the campaign’s default form.","give")," ",(0,r.createElement)("a",{href:`${v}&id=${e.campaignId}&tab=forms`,target:"_blank",rel:"noopener noreferrer","aria-label":(0,i.__)("Change campaign default form","give")},(0,i.__)("Change default form","give")))}),!e.useDefaultForm&&(0,r.createElement)(p.SelectControl,{label:(0,i.__)("Form","give"),onChange:e=>t({selectedForm:e}),options:b,value:e.selectedForm,help:(0,i.__)("Donations are collected through this form.","give")}))))},save:()=>null}}},66233:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),o=n(27723),i=n(56427),a=n(94715),s=n(29809);function l({campaignId:e,campaigns:t,hasResolved:n,handleSelect:l,inspectorControls:u=null}){const c=(0,s.DP)(),d=(()=>{if(!n)return[{label:(0,o.__)("Loading...","give"),value:""}];if(t.length){const e=t.map((e=>({label:`${e.title} ${"draft"===e.status?`(${(0,o.__)("Draft","give")})`:""}`.trim(),value:e.id.toString()})));return[{label:(0,o.__)("Select...","give"),value:""},...e]}return[{label:(0,o.__)("No campaigns found.","give"),value:""}]})();return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:(0,o.__)("Campaign","give"),initialOpen:!0},(0,r.createElement)(i.SelectControl,{label:(0,o.__)("Select a Campaign","give"),value:e?.toString(),options:d,onChange:e=>l(parseInt(e)),help:(0,r.createElement)(r.Fragment,null,(0,o.__)("Select a campaign to display.","give")+" ",e&&(0,r.createElement)("a",{href:`${c.campaignsAdminUrl}&id=${e}&tab=settings`,target:"_blank",rel:"noopener noreferrer",className:"givewp-campaign-cover-block__edit-campaign-link","aria-label":(0,o.__)("Edit campaign settings in a new tab","give")},(0,o.__)("Edit campaign","give")))}),u))}},95723:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),o=n(27723),i=n(46005),a=n(55395),s=n(11905);const l=({campaigns:e,hasResolved:t,handleSelect:n})=>{const[l,u]=(0,r.useState)(null),c=(()=>{if(!t)return[{label:(0,o.__)("Loading...","give"),value:""}];if(e.length){const t=e.map((e=>({label:`${e.title} ${"draft"===e.status?`(${(0,o.__)("Draft","give")})`:""}`.trim(),value:e.id})));return[{label:(0,o.__)("Select a campaign","give"),value:""},...t]}return[{label:(0,o.__)("No campaigns found.","give"),value:""}]})(),d=c.find((e=>e.value===l));return(0,r.createElement)("div",{className:"givewp-campaign-selector"},(0,r.createElement)("img",{className:"givewp-campaign-selector__logo",src:s.A,alt:"givewp-logo"}),(0,r.createElement)("div",{className:"givewp-campaign-selector__select"},(0,r.createElement)("label",{htmlFor:"campaignId",className:"givewp-campaign-selector__label"},(0,o.__)("Choose a campaign","give")),(0,r.createElement)(i.Ay,{name:"campaignId",inputId:"campaignId",value:d,onChange:e=>u(e?.value),noOptionsMessage:()=>(0,r.createElement)("p",null,(0,o.__)("No campaigns were found.","give")),options:c,loadingMessage:()=>(0,r.createElement)(r.Fragment,null,(0,o.__)("Loading Campaigns...","give")),isLoading:!t,theme:a.t,styles:a.Y})),(0,r.createElement)("button",{className:"givewp-campaign-selector__submit",type:"button",disabled:!l,onClick:()=>{n(l)}},(0,o.__)("Confirm","give")))}},47730:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),o=n(66233),i=n(59292),a=n(95723),s=n(3582);function l({campaignId:e,handleSelect:t,children:n,inspectorControls:l=null,showInspectorControl:u=!0}){const[c]=(0,s.useEntityProp)("postType","page","campaignId"),{campaigns:d,hasResolved:p}=(0,i.A)({status:["active","draft"]});return(0,r.useEffect)((()=>{c&&e!==c&&t(c)}),[c]),(0,r.createElement)(r.Fragment,null,!e&&(0,r.createElement)(a.A,{handleSelect:e=>t(e),campaigns:d,hasResolved:p}),!c&&u&&(0,r.createElement)(o.A,{campaignId:e,campaigns:d,hasResolved:p,handleSelect:e=>t(e),inspectorControls:l}),e&&n)}},55395:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r,t:()=>o});const r={input:(e,t)=>({...e,height:"3rem"}),option:(e,t)=>({...e,paddingTop:"0.8rem",paddingBottom:"0.8rem",fontSize:"1rem"}),control:(e,t)=>({...e,fontSize:"1rem"})},o=e=>({...e,colors:{...e.colors,primary:"#27ae60"}})},38965:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3582);function o(e){const t=(0,r.useEntityRecord)("givewp","campaign",e);return{campaign:{...t?.record},hasResolved:t?.hasResolved}}},59292:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3582);function o({ids:e=[],page:t=1,per_page:n=30,status:o=["active"],sortBy:i="date",orderBy:a="desc"}={}){const s=(0,r.useEntityRecords)("givewp","campaign",{ids:e,page:t,per_page:n,status:o,sortBy:i,orderBy:a});return{campaigns:s?.records,totalItems:s.totalItems,totalPages:s.totalPages,hasResolved:s?.hasResolved}}},29809:(e,t,n)=>{"use strict";function r(){return window.GiveCampaignOptions}function o(e,t){return new Intl.NumberFormat(navigator.language,{style:"currency",currency:e,...t})}n.d(t,{DP:()=>r,Vo:()=>o}),n(3582),n(1455)},16639:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(51609),o=n(5556),i=n.n(o);const a={white:"#fff",grey:"#555d66",give:"#66bb6a"},s=({color:e="give",size:t="24px",...n})=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 157.2 157.2",width:t,height:t,...n},(0,r.createElement)("circle",{fill:a[e],cx:"78.6",cy:"78.6",r:"78.6"}),(0,r.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:i().oneOf(Object.keys(a)),size:i().oneOfType([i().number,i().string])};const l=s},4146:(e,t,n)=>{"use strict";var r=n(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=g(n);o&&o!==f&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),h=0;h<a.length;++h){var v=a[h];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=p(n,v);try{u(t,v,b)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,I=n?Symbol.for("react.scope"):60119;function A(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case g:return e;default:switch(e=e&&e.$$typeof){case u:case p:case h:case m:case l:return e;default:return t}}case o:return t}}}function C(e){return A(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=g,t.isAsyncMode=function(e){return C(e)||A(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return A(e)===u},t.isContextProvider=function(e){return A(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return A(e)===p},t.isFragment=function(e){return A(e)===i},t.isLazy=function(e){return A(e)===h},t.isMemo=function(e){return A(e)===m},t.isPortal=function(e){return A(e)===o},t.isProfiler=function(e){return A(e)===s},t.isStrictMode=function(e){return A(e)===a},t.isSuspense=function(e){return A(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===g||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===I||e.$$typeof===v)},t.typeOf=A},73404:(e,t,n)=>{"use strict";e.exports=n(3072)},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4596:(e,t,n)=>{"use strict";n.d(t,{S:()=>ie});for(var r=n(58168),o=n(89379),i=n(23029),a=n(92901),s=n(85501),l=n(29426),u=n(89394),c=n(51609),d=n(46815),p=n(17437),g=n(76685),f=n(80045),m={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},h=function(e){return(0,p.Y)("span",(0,r.A)({css:m},e))},v={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" 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";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(l?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},b=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,d=l.ariaLiveMessages,g=l.getOptionLabel,f=l.inputValue,m=l.isMulti,b=l.isOptionDisabled,y=l.isSearchable,I=l.menuIsOpen,A=l.options,C=l.screenReaderStatus,M=l.tabSelectsValue,w=l["aria-label"],S=l["aria-live"],E=(0,c.useMemo)((function(){return(0,o.A)((0,o.A)({},v),d||{})}),[d]),N=(0,c.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,i=t.options,a=t.removedValue,l=t.removedValues,u=t.value,c=a||r||(e=u,Array.isArray(e)?null:e),d=c?g(c):"",p=i||l||void 0,f=p?p.map(g):[],m=(0,o.A)({isDisabled:c&&b(c,s),label:d,labels:f},t);n=E.onChange(m)}return n}),[t,E,b,s,g]),x=(0,c.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&E.onFocus){var a={focused:t,label:g(t),isDisabled:b(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s};e=E.onFocus(a)}return e}),[n,r,g,b,E,i,s]),L=(0,c.useMemo)((function(){var e="";if(I&&A.length&&E.onFilter){var t=C({count:i.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,I,E,A,C]),j=(0,c.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":I?"menu":"input";e=E.guidance({"aria-label":w,context:t,isDisabled:n&&b(n,s),isMulti:m,isSearchable:y,tabSelectsValue:M})}return e}),[w,n,r,m,b,y,I,E,s,M]),T="".concat(x," ").concat(L," ").concat(j),O=(0,p.Y)(c.Fragment,null,(0,p.Y)("span",{id:"aria-selection"},N),(0,p.Y)("span",{id:"aria-context"},T)),D="initial-input-focus"===(null==t?void 0:t.action);return(0,p.Y)(c.Fragment,null,(0,p.Y)(h,{id:u},D&&O),(0,p.Y)(h,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text"},a&&!D&&O))},y=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],I=new RegExp("["+y.map((function(e){return e.letters})).join("")+"]","g"),A={},C=0;C<y.length;C++)for(var M=y[C],w=0;w<M.letters.length;w++)A[M.letters[w]]=M.base;var S=function(e){return e.replace(I,(function(e){return A[e]}))},E=(0,g.A)(S),N=function(e){return e.replace(/^\s+|\s+$/g,"")},x=function(e){return"".concat(e.label," ").concat(e.value)},L=["innerRef"];function j(e){var t=e.innerRef,n=(0,f.A)(e,L),o=(0,d.r)(n,"onExited","in","enter","exit","appear");return(0,p.Y)("input",(0,r.A)({ref:t},o,{css:(0,p.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var T=["boxSizing","height","overflow","paddingRight","position"],O={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function D(e){e.preventDefault()}function k(e){e.stopPropagation()}function _(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function P(){return"ontouchstart"in window||navigator.maxTouchPoints}var z=!("undefined"==typeof window||!window.document||!window.document.createElement),V=0,R={capture:!1,passive:!1},Y=function(){return document.activeElement&&document.activeElement.blur()},B={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function F(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,c.useRef)(!1),s=(0,c.useRef)(!1),l=(0,c.useRef)(0),u=(0,c.useRef)(null),p=(0,c.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,g=u.current,f=t>0,m=d-p-c,h=!1;m>t&&a.current&&(r&&r(e),a.current=!1),f&&s.current&&(i&&i(e),s.current=!1),f&&t>m?(n&&!a.current&&n(e),g.scrollTop=d,h=!0,a.current=!0):!f&&-t>c&&(o&&!s.current&&o(e),g.scrollTop=0,h=!0,s.current=!0),h&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),g=(0,c.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,c.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,c.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),h=(0,c.useCallback)((function(e){if(e){var t=!!d.s&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,g]),v=(0,c.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,g]);return(0,c.useEffect)((function(){if(t){var e=u.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,c.useRef)({}),i=(0,c.useRef)(null),a=(0,c.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;if(r&&T.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&V<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(O).forEach((function(e){var t=O[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&P()&&(t.addEventListener("touchmove",D,R),e&&(e.addEventListener("touchstart",_,R),e.addEventListener("touchmove",k,R))),V+=1}}),[r]),s=(0,c.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;V=Math.max(V-1,0),r&&V<1&&T.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&P()&&(t.removeEventListener("touchmove",D,R),e&&(e.removeEventListener("touchstart",_,R),e.removeEventListener("touchmove",k,R)))}}),[r]);return(0,c.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return(0,p.Y)(c.Fragment,null,n&&(0,p.Y)("div",{onClick:Y,css:B}),t((function(e){o(e),i(e)})))}var H={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Z=function(e){var t=e.name,n=e.onFocus;return(0,p.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:H,value:"",onChange:function(){}})},G={clearIndicator:d.a,container:d.b,control:d.d,dropdownIndicator:d.e,group:d.g,groupHeading:d.f,indicatorsContainer:d.i,indicatorSeparator:d.h,input:d.j,loadingIndicator:d.l,loadingMessage:d.k,menu:d.m,menuList:d.n,menuPortal:d.o,multiValue:d.p,multiValueLabel:d.q,multiValueRemove:d.t,noOptionsMessage:d.u,option:d.v,placeholder:d.w,singleValue:d.x,valueContainer:d.y},W={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}},U={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,d.z)(),captureMenuScroll:!(0,d.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:x,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,u=s?N(t):t,c=s?N(a(e)):a(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=E(u),c=S(c)),"start"===l?c.substr(0,u.length)===u:c.indexOf(u)>-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:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,d.A)(),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,unstyled:!1};function Q(e,t,n,r){return{type:"option",data:t,isDisabled:ee(e,t,n),isSelected:te(e,t,n),label:K(e,t),value:q(e,t),index:r}}function $(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Q(e,n,t,r)})).filter((function(t){return J(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Q(e,n,t,r);return J(e,i)?i:void 0})).filter(d.K)}function X(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,u.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function J(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!re(e)||!i)&&ne(e,{label:a,value:s,data:o},r)}var K=function(e,t){return e.getOptionLabel(t)},q=function(e,t){return e.getOptionValue(t)};function ee(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function te(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=q(e,t);return n.some((function(t){return q(e,t)===r}))}function ne(e,t,n){return!e.filterOption||e.filterOption(t,n)}var re=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},oe=1,ie=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,i.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=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.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue((0,d.B)(a.filter((function(e){return r.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,d.C)(e),{action:"select-option",option:e,name:i});o?r.setValue((0,d.B)([].concat((0,u.A)(a),[e])),"select-option",e):r.setValue((0,d.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=(0,d.D)(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,d.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=(0,d.D)(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return K(r.props,e)},r.getOptionValue=function(e){return q(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=G[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,d.F)(r.props)},r.buildCategorizedOptions=function(){return $(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return X(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,o.A)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,d.G)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>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=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),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(){return re(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,g=r.state,f=g.focusedOption,m=g.focusedValue,h=g.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&r.isOptionSelected(f,h))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++oe),r.state.selectValue=(0,d.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var a=r.buildFocusableOptions(),s=a.indexOf(r.state.selectValue[0]);r.state.focusedOption=a[s]}return r}return(0,a.A)(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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,d.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,d.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(W):(0,o.A)((0,o.A)({},W),this.props.theme):W}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().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 ee(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return te(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ne(this.props,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:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=e.menuIsOpen,p=e.required,g=this.getComponents().Input,f=this.state,m=f.inputIsHidden,h=f.ariaSelection,v=this.commonProps,b=i||this.getElementId("input"),y=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(g,(0,r.A)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},y)):c.createElement(j,(0,r.A)({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:d.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,d=this.props,p=d.controlShouldRenderValue,g=d.isDisabled,f=d.isMulti,m=d.inputValue,h=d.placeholder,v=this.state,b=v.selectValue,y=v.focusedValue,I=v.isFocused;if(!this.hasValue()||!p)return m?null:c.createElement(l,(0,r.A)({},u,{key:"placeholder",isDisabled:g,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return b.map((function(t,s){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,r.A)({},u,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:g,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var A=b[0];return c.createElement(s,(0,r.A)({},u,{data:A,isDisabled:g}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?c.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return c.createElement(n,(0,r.A)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,u=t.NoOptionsMessage,p=t.Option,g=this.commonProps,f=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,v=m.inputValue,b=m.isLoading,y=m.loadingMessage,I=m.minMenuHeight,A=m.maxMenuHeight,C=m.menuIsOpen,M=m.menuPlacement,w=m.menuPosition,S=m.menuPortalTarget,E=m.menuShouldBlockScroll,N=m.menuShouldScrollIntoView,x=m.noOptionsMessage,L=m.onMenuScrollToTop,j=m.onMenuScrollToBottom;if(!C)return null;var T,O=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,u=t.value,d=f===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),b={id:v,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return c.createElement(p,(0,r.A)({},g,{innerProps:b,data:i,isDisabled:a,isSelected:s,key:v,label:l,type:o,value:u,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return c.createElement(n,(0,r.A)({},g,{key:l,data:i,options:a,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return O(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return O(t,"".concat(t.index))}));else if(b){var D=y({inputValue:v});if(null===D)return null;T=c.createElement(l,g,D)}else{var k=x({inputValue:v});if(null===k)return null;T=c.createElement(u,g,k)}var _={minMenuHeight:I,maxMenuHeight:A,menuPlacement:M,menuPosition:w,menuShouldScrollIntoView:N},P=c.createElement(d.M,(0,r.A)({},g,_),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return c.createElement(i,(0,r.A)({},g,_,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),c.createElement(F,{captureEnabled:h,onTopArrive:L,onBottomArrive:j,lockEnabled:E},(function(t){return c.createElement(a,(0,r.A)({},g,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:b,maxHeight:l,focusedOption:f}),T)})))}));return S||"fixed"===w?c.createElement(s,(0,r.A)({},g,{appendTo:S,controlElement:this.controlRef,menuPlacement:M,menuPosition:w}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return c.createElement(Z,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return c.createElement("input",{name:i,type:"hidden",value:l})}var u=s.length>0?s.map((function(t,n){return c.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):c.createElement("input",{name:i,type:"hidden",value:""});return c.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return c.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return c.createElement(b,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,d=a.menuIsOpen,p=this.state.isFocused,g=this.commonProps=this.getCommonProps();return c.createElement(o,(0,r.A)({},g,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),c.createElement(t,(0,r.A)({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:d}),c.createElement(i,(0,r.A)({},g,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,r.A)({},g,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,u=e.options,c=e.value,p=e.menuIsOpen,g=e.inputValue,f=e.isMulti,m=(0,d.H)(c),h={};if(n&&(c!==n.value||u!==n.options||p!==n.menuIsOpen||g!==n.inputValue)){var v=p?function(e,t){return X($(e,t))}(e,m):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);h={selectValue:m,focusedOption:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var I=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},A=a,C=s&&l;return s&&!C&&(A={value:(0,d.D)(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(A=null),(0,o.A)((0,o.A)((0,o.A)({},h),I),{},{prevProps:e,ariaSelection:A,prevWasFocused:C})}}]),n}(c.Component);ie.defaultProps=U},46815:(e,t,n)=>{"use strict";n.d(t,{A:()=>x,B:()=>P,C:()=>_,D:()=>k,E:()=>b,F:()=>Le,G:()=>C,H:()=>y,I:()=>E,J:()=>h,K:()=>D,M:()=>Z,a:()=>se,b:()=>X,d:()=>pe,e:()=>ae,f:()=>me,g:()=>fe,h:()=>le,i:()=>K,j:()=>ve,k:()=>Q,l:()=>ce,m:()=>F,n:()=>G,o:()=>$,p:()=>Ae,q:()=>Ce,r:()=>z,s:()=>O,t:()=>Me,u:()=>U,v:()=>Se,w:()=>Ee,x:()=>Ne,y:()=>J,z:()=>N});var r=n(89379),o=n(58168),i=n(17437),a=n(3453),s=n(80045),l=n(82284),u=n(57528),c=n(64467),d=n(51609),p=n(75795),g=n(18491),f=n(27003),m=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],h=function(){};function v(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function b(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];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(v(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var y=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.A)(e)&&null!==e?[e]:[];var t},I=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,m);return(0,r.A)({},t)},A=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function C(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function M(e){return C(e)?window.pageYOffset:e.scrollTop}function w(e,t){C(e)?window.scrollTo(0,t):e.scrollTop=t}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h,o=M(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;w(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function E(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?w(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&w(e,Math.max(t.offsetTop-o,0))}function N(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function x(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var L=!1,j={get passive(){return L=!0}},T="undefined"!=typeof window?window:{};T.addEventListener&&T.removeEventListener&&(T.addEventListener("p",h,j),T.removeEventListener("p",h,!1));var O=L;function D(e){return null!=e}function k(e,t,n){return e?t:n}function _(e){return e}function P(e){return e}var z=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 Object.entries(e).filter((function(e){var t=(0,a.A)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,a.A)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},V=["children","innerProps"],R=["children","innerProps"];var Y,B=function(e){return"auto"===e?"bottom":e},F=function(e,t){var n,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return(0,r.A)((n={label:"menu"},(0,c.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,c.A)(n,"position","absolute"),(0,c.A)(n,"width","100%"),(0,c.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},H=(0,d.createContext)(null),Z=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,u=e.theme,c=((0,d.useContext)(H)||{}).setPortalPlacement,p=(0,d.useRef)(null),g=(0,d.useState)(o),m=(0,a.A)(g,2),h=m[0],v=m[1],b=(0,d.useState)(null),y=(0,a.A)(b,2),I=y[0],A=y[1],E=u.spacing.controlHeight;return(0,f.A)((function(){var e=p.current;if(e){var t="fixed"===s,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),g=p.bottom,f=p.height,m=p.top,h=n.offsetParent.getBoundingClientRect().top,v=a||C(c=l)?window.innerHeight:c.clientHeight,b=M(l),y=parseInt(getComputedStyle(n).marginBottom,10),I=parseInt(getComputedStyle(n).marginTop,10),A=h-I,E=v-m,N=A+b,x=d-b-m,L=g-v+b+y,j=b+m-I,T=160;switch(o){case"auto":case"bottom":if(E>=f)return{placement:"bottom",maxHeight:t};if(x>=f&&!a)return i&&S(l,L,T),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&E>=r)return i&&S(l,L,T),{placement:"bottom",maxHeight:a?E-y:x-y};if("auto"===o||a){var O=t,D=a?A:N;return D>=r&&(O=Math.min(D-y-s,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&w(l,L),{placement:"bottom",maxHeight:t};break;case"top":if(A>=f)return{placement:"top",maxHeight:t};if(N>=f&&!a)return i&&S(l,j,T),{placement:"top",maxHeight:t};if(!a&&N>=r||a&&A>=r){var k=t;return(!a&&N>=r||a&&A>=r)&&(k=a?A-I:N-I),i&&S(l,j,T),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:E});v(r.maxHeight),A(r.placement),null==c||c(r.placement)}}),[o,i,s,l,n,c,E]),t({ref:p,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:I||B(i),maxHeight:h})})},G=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},W=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},U=W,Q=W,$=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}},X=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},J=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},K=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},q=["size"],ee=["innerProps","isRtl","size"],te={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ne=function(e){var t=e.size,n=(0,s.A)(e,q);return(0,i.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:te},n))},re=function(e){return(0,i.Y)(ne,(0,o.A)({size:20},e),(0,i.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},oe=function(e){return(0,i.Y)(ne,(0,o.A)({size:20},e),(0,i.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ie=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},ae=ie,se=ie,le=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},ue=(0,i.i7)(Y||(Y=(0,u.A)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),ce=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},de=function(e){var t=e.delay,n=e.offset;return(0,i.Y)("span",{css:(0,i.AH)({animation:"".concat(ue," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},pe=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},ge=["data"],fe=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},me=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},he=["innerRef","isDisabled","isHidden","inputClassName"],ve=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ye),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},be={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ye={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},be)},Ie=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},be)},Ae=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Ce=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Me=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},we=function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",n,t)},Se=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},Ee=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ne=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},xe={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.Y)(re,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,i.Y)("div",(0,o.A)({ref:a},A(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.Y)(oe,null))},DownChevron:oe,CrossIcon:re,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,p=e.selectProps;return(0,i.Y)("div",(0,o.A)({},A(e,"group",{group:!0}),u),(0,i.Y)(s,(0,o.A)({},l,{selectProps:p,theme:d,getStyles:r,getClassNames:a,cx:n}),c),(0,i.Y)("div",null,t))},GroupHeading:function(e){var t=I(e);t.data;var n=(0,s.A)(t,ge);return(0,i.Y)("div",(0,o.A)({},A(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.Y)("span",(0,o.A)({},t,A(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=I(e),a=r.innerRef,l=r.isDisabled,u=r.isHidden,c=r.inputClassName,d=(0,s.A)(r,he);return(0,i.Y)("div",(0,o.A)({},A(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.Y)("input",(0,o.A)({className:t({input:!0},c),ref:a,style:Ie(u),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,l=void 0===a?4:a,u=(0,s.A)(e,ee);return(0,i.Y)("div",(0,o.A)({},A((0,r.A)((0,r.A)({},u),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.Y)(de,{delay:0,offset:n}),(0,i.Y)(de,{delay:160,offset:!0}),(0,i.Y)(de,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,i.Y)("div",(0,o.A)({},A(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,u=e.menuPlacement,c=e.menuPosition,m=(0,d.useRef)(null),h=(0,d.useRef)(null),v=(0,d.useState)(B(u)),b=(0,a.A)(v,2),y=b[0],I=b[1],C=(0,d.useMemo)((function(){return{setPortalPlacement:I}}),[]),M=(0,d.useState)(null),w=(0,a.A)(M,2),S=w[0],E=w[1],N=(0,d.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===c?0:window.pageYOffset,n=e[y]+t;n===(null==S?void 0:S.offset)&&e.left===(null==S?void 0:S.rect.left)&&e.width===(null==S?void 0:S.rect.width)||E({offset:n,rect:e})}}),[s,c,y,null==S?void 0:S.offset,null==S?void 0:S.rect.left,null==S?void 0:S.rect.width]);(0,f.A)((function(){N()}),[N]);var x=(0,d.useCallback)((function(){"function"==typeof h.current&&(h.current(),h.current=null),s&&m.current&&(h.current=(0,g.ll)(s,m.current,N,{elementResize:"ResizeObserver"in window}))}),[s,N]);(0,f.A)((function(){x()}),[x]);var L=(0,d.useCallback)((function(e){m.current=e,x()}),[x]);if(!t&&"fixed"!==c||!S)return null;var j=(0,i.Y)("div",(0,o.A)({ref:L},A((0,r.A)((0,r.A)({},e),{},{offset:S.offset,position:c,rect:S.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,i.Y)(H.Provider,{value:C},t?(0,p.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,l=(0,s.A)(e,R);return(0,i.Y)("div",(0,o.A)({},A((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,l=(0,s.A)(e,V);return(0,i.Y)("div",(0,o.A)({},A((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,s=e.isDisabled,l=e.removeProps,u=e.selectProps,c=n.Container,d=n.Label,p=n.Remove;return(0,i.Y)(c,{data:o,innerProps:(0,r.A)((0,r.A)({},A(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:u},(0,i.Y)(d,{data:o,innerProps:(0,r.A)({},A(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,i.Y)(p,{data:o,innerProps:(0,r.A)((0,r.A)({},A(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},MultiValueContainer:we,MultiValueLabel:we,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({role:"button"},n),t||(0,i.Y)(re,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,i.Y)("div",(0,o.A)({},A(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.Y)("div",(0,o.A)({},A(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return(0,i.Y)("div",(0,o.A)({},A(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Le=function(e){return(0,r.A)((0,r.A)({},xe),e.components)}},46005:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(52836),o=n(58168),i=n(51609),a=n(4596),s=(n(25815),n(75795),n(27003),(0,i.forwardRef)((function(e,t){var n=(0,r.u)(e);return i.createElement(a.S,(0,o.A)({ref:t},n))})))},52836:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(89379),o=n(3453),i=n(80045),a=n(51609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,u=void 0!==l&&l,c=e.defaultValue,d=void 0===c?null:c,p=e.inputValue,g=e.menuIsOpen,f=e.onChange,m=e.onInputChange,h=e.onMenuClose,v=e.onMenuOpen,b=e.value,y=(0,i.A)(e,s),I=(0,a.useState)(void 0!==p?p:n),A=(0,o.A)(I,2),C=A[0],M=A[1],w=(0,a.useState)(void 0!==g?g:u),S=(0,o.A)(w,2),E=S[0],N=S[1],x=(0,a.useState)(void 0!==b?b:d),L=(0,o.A)(x,2),j=L[0],T=L[1],O=(0,a.useCallback)((function(e,t){"function"==typeof f&&f(e,t),T(e)}),[f]),D=(0,a.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),M(void 0!==n?n:e)}),[m]),k=(0,a.useCallback)((function(){"function"==typeof v&&v(),N(!0)}),[v]),_=(0,a.useCallback)((function(){"function"==typeof h&&h(),N(!1)}),[h]),P=void 0!==p?p:C,z=void 0!==g?g:E,V=void 0!==b?b:j;return(0,r.A)((0,r.A)({},y),{},{inputValue:P,menuIsOpen:z,onChange:O,onInputChange:D,onMenuClose:_,onMenuOpen:k,value:V})}},76685:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(i=t[n])||r(o)&&r(i)))return!1;var o,i;return!0}function i(e,t){void 0===t&&(t=o);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}},27003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(51609).useLayoutEffect},1063:(e,t,n)=>{"use strict";var r=n(51609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},19888:(e,t,n)=>{"use strict";e.exports=n(1063)},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM},1455:e=>{"use strict";e.exports=window.wp.apiFetch},94715:e=>{"use strict";e.exports=window.wp.blockEditor},56427:e=>{"use strict";e.exports=window.wp.components},3582:e=>{"use strict";e.exports=window.wp.coreData},47143:e=>{"use strict";e.exports=window.wp.data},27723:e=>{"use strict";e.exports=window.wp.i18n},84871:e=>{"use strict";e.exports=window.wp.serverSideRender},93832:e=>{"use strict";e.exports=window.wp.url},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},64243:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},73893:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},60519:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},57528:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},89394:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(64243),o=n(73893),i=n(27800),a=n(60519);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(92327);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},18491:(e,t,n)=>{"use strict";n.d(t,{ll:()=>c});var r=n(97193),o=n(42956);function i(e){return(0,o.vq)(e)?e:e.contextElement}function a(e){const t=i(e);if(!(0,o.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:a,height:s,$:l}=function(e){const t=(0,o.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=(0,o.sb)(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:i,u=(0,r.LI)(n)!==s||(0,r.LI)(i)!==l;return u&&(n=s,i=l),{width:n,height:i,$:u}}(t);let u=(l?(0,r.LI)(n.width):n.width)/a,c=(l?(0,r.LI)(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),c&&Number.isFinite(c)||(c=1),{x:u,y:c}}const s=(0,r.Jx)(0);function l(e){const t=(0,o.zk)(e);return(0,o.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:s}function u(e,t,n,s){void 0===t&&(t=!1),void 0===n&&(n=!1);const u=e.getBoundingClientRect(),c=i(e);let d=(0,r.Jx)(1);t&&(s?(0,o.vq)(s)&&(d=a(s)):d=a(e));const p=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,o.zk)(e))&&t}(c,n,s)?l(c):(0,r.Jx)(0);let g=(u.left+p.x)/d.x,f=(u.top+p.y)/d.y,m=u.width/d.x,h=u.height/d.y;if(c){const e=(0,o.zk)(c),t=s&&(0,o.vq)(s)?(0,o.zk)(s):s;let n=e.frameElement;for(;n&&s&&t!==e;){const e=a(n),t=n.getBoundingClientRect(),r=(0,o.L9)(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;g*=e.x,f*=e.y,m*=e.x,h*=e.y,g+=i,f+=s,n=(0,o.zk)(n).frameElement}}return(0,r.B1)({width:m,height:h,x:g,y:f})}function c(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:p=!1}=a,g=i(e),f=s||l?[...g?(0,o.v9)(g):[],...(0,o.v9)(t)]:[];f.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const m=g&&d?function(e,t){let n,i=null;const a=(0,o.ep)(e);function s(){clearTimeout(n),i&&i.disconnect(),i=null}return function o(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),s();const{left:c,top:d,width:p,height:g}=e.getBoundingClientRect();if(l||t(),!p||!g)return;const f={rootMargin:-(0,r.RI)(d)+"px "+-(0,r.RI)(a.clientWidth-(c+p))+"px "+-(0,r.RI)(a.clientHeight-(d+g))+"px "+-(0,r.RI)(c)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return o();t?o(!1,t):n=setTimeout((()=>{o(!1,1e-7)}),100)}m=!1}try{i=new IntersectionObserver(h,{...f,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(h,f)}i.observe(e)}(!0),s}(g,n):null;let h,v=-1,b=null;c&&(b=new ResizeObserver((e=>{let[r]=e;r&&r.target===g&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{b&&b.observe(t)}))),n()})),g&&!p&&b.observe(g),b.observe(t));let y=p?u(e):null;return p&&function t(){const r=u(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,h=requestAnimationFrame(t)}(),n(),()=>{f.forEach((e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),m&&m(),b&&b.disconnect(),b=null,p&&cancelAnimationFrame(h)}}o.ep,o.vq},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>l,Jx:()=>s,LI:()=>i,RI:()=>a,T9:()=>o,jk:()=>r});const r=Math.min,o=Math.max,i=Math.round,a=Math.floor,s=e=>({x:e,y:e});function l(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},42956:(e,t,n)=>{"use strict";function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return e instanceof Node||e instanceof o(e).Node}function s(e){return e instanceof Element||e instanceof o(e).Element}function l(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function u(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=h(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(r(e))}function p(e){const t=f(),n=h(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function g(e){let t=b(e);for(;l(t)&&!m(t);){if(p(t))return t;t=b(t)}return null}function f(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(r(e))}function h(e){return o(e).getComputedStyle(e)}function v(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function y(e){const t=b(e);return m(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&c(t)?t:y(t)}function I(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r);return i?t.concat(a,a.visualViewport||[],c(r)?r:[]):t.concat(r,I(r))}n.d(t,{$4:()=>b,CP:()=>v,L9:()=>h,Lv:()=>d,Tc:()=>f,ZU:()=>c,ep:()=>i,eu:()=>m,gJ:()=>g,mq:()=>r,sQ:()=>p,sb:()=>l,v9:()=>I,vq:()=>s,zk:()=>o})},24534:(e,t,n)=>{"use strict";n.d(t,{IO:()=>d,LU:()=>l,MS:()=>r,Sv:()=>c,XZ:()=>s,YK:()=>a,j:()=>i,vd:()=>o,yE:()=>u});var r="-ms-",o="-moz-",i="-webkit-",a="comm",s="rule",l="decl",u="@import",c="@keyframes",d="@layer"},49503:(e,t,n)=>{"use strict";n.d(t,{MY:()=>i,r1:()=>o});var r=n(19735);function o(e){var t=(0,r.FK)(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function i(e){return function(t){t.root||(t=t.return)&&e(t)}}},73716:(e,t,n)=>{"use strict";n.d(t,{wE:()=>a});var r=n(24534),o=n(19735),i=n(40390);function a(e){return(0,i.VF)(s("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function s(e,t,n,r,a,d,p,g,f){for(var m=0,h=0,v=p,b=0,y=0,I=0,A=1,C=1,M=1,w=0,S="",E=a,N=d,x=r,L=S;C;)switch(I=w,w=(0,i.K2)()){case 40:if(108!=I&&58==(0,o.wN)(L,v-1)){-1!=(0,o.K5)(L+=(0,o.HC)((0,i.Tb)(w),"&","&\f"),"&\f")&&(M=-1);break}case 34:case 39:case 91:L+=(0,i.Tb)(w);break;case 9:case 10:case 13:case 32:L+=(0,i.mw)(I);break;case 92:L+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)(u((0,i.nf)((0,i.K2)(),(0,i.OW)()),t,n),f);break;default:L+="/"}break;case 123*A:g[m++]=(0,o.b2)(L)*M;case 125*A:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+h:-1==M&&(L=(0,o.HC)(L,/\f/g,"")),y>0&&(0,o.b2)(L)-v&&(0,o.BC)(y>32?c(L+";",r,n,v-1):c((0,o.HC)(L," ","")+";",r,n,v-2),f);break;case 59:L+=";";default:if((0,o.BC)(x=l(L,t,n,m,h,a,g,S,E=[],N=[],v),d),123===w)if(0===h)s(L,t,x,x,E,d,v,g,N);else switch(99===b&&110===(0,o.wN)(L,3)?100:b){case 100:case 108:case 109:case 115:s(e,x,x,r&&(0,o.BC)(l(e,x,x,0,0,a,g,S,a,E=[],v),N),a,N,v,g,r?E:N);break;default:s(L,x,x,x,[""],N,0,g,N)}}m=h=y=0,A=M=1,S=L="",v=p;break;case 58:v=1+(0,o.b2)(L),y=I;default:if(A<1)if(123==w)--A;else if(125==w&&0==A++&&125==(0,i.YL)())continue;switch(L+=(0,o.HT)(w),w*A){case 38:M=h>0?1:(L+="\f",-1);break;case 44:g[m++]=((0,o.b2)(L)-1)*M,M=1;break;case 64:45===(0,i.se)()&&(L+=(0,i.Tb)((0,i.K2)())),b=(0,i.se)(),h=v=(0,o.b2)(S=L+=(0,i.Cv)((0,i.OW)())),w++;break;case 45:45===I&&2==(0,o.b2)(L)&&(A=0)}}return d}function l(e,t,n,a,s,l,u,c,d,p,g){for(var f=s-1,m=0===s?l:[""],h=(0,o.FK)(m),v=0,b=0,y=0;v<a;++v)for(var I=0,A=(0,o.c1)(e,f+1,f=(0,o.tn)(b=u[v])),C=e;I<h;++I)(C=(0,o.Bq)(b>0?m[I]+" "+A:(0,o.HC)(A,/&\f/g,m[I])))&&(d[y++]=C);return(0,i.rH)(e,t,n,0===s?r.XZ:c,d,p,g)}function u(e,t,n){return(0,i.rH)(e,t,n,r.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(e,2,-2),0)}function c(e,t,n,a){return(0,i.rH)(e,t,n,r.LU,(0,o.c1)(e,0,a),(0,o.c1)(e,a+1,-1),a)}},50483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,l:()=>i});var r=n(24534),o=n(19735);function i(e,t){for(var n="",r=(0,o.FK)(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function a(e,t,n,a){switch(e.type){case r.IO:if(e.children.length)break;case r.yE:case r.LU:return e.return=e.return||e.value;case r.YK:return"";case r.Sv:return e.return=e.value+"{"+i(e.children,a)+"}";case r.XZ:e.value=e.props.join(",")}return(0,o.b2)(n=i(e.children,a))?e.return=e.value+"{"+n+"}":""}},40390:(e,t,n)=>{"use strict";n.d(t,{C:()=>d,Cv:()=>E,G1:()=>s,K2:()=>f,Nc:()=>M,OW:()=>h,Sh:()=>b,Tb:()=>A,Tp:()=>p,VF:()=>I,YL:()=>g,c4:()=>y,di:()=>v,mw:()=>C,nf:()=>S,rH:()=>c,se:()=>m});var r=n(19735),o=1,i=1,a=0,s=0,l=0,u="";function c(e,t,n,r,a,s,l){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:o,column:i,length:l,return:""}}function d(e,t){return(0,r.kp)(c("",null,null,"",null,null,0),e,{length:-e.length},t)}function p(){return l}function g(){return l=s>0?(0,r.wN)(u,--s):0,i--,10===l&&(i=1,o--),l}function f(){return l=s<a?(0,r.wN)(u,s++):0,i++,10===l&&(i=1,o++),l}function m(){return(0,r.wN)(u,s)}function h(){return s}function v(e,t){return(0,r.c1)(u,e,t)}function b(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function y(e){return o=i=1,a=(0,r.b2)(u=e),s=0,[]}function I(e){return u="",e}function A(e){return(0,r.Bq)(v(s-1,w(91===e?e+2:40===e?e+1:e)))}function C(e){for(;(l=m())&&l<33;)f();return b(e)>2||b(l)>3?"":" "}function M(e,t){for(;--t&&f()&&!(l<48||l>102||l>57&&l<65||l>70&&l<97););return v(e,h()+(t<6&&32==m()&&32==f()))}function w(e){for(;f();)switch(l){case e:return s;case 34:case 39:34!==e&&39!==e&&w(l);break;case 40:41===e&&w(e);break;case 92:f()}return s}function S(e,t){for(;f()&&e+l!==57&&(e+l!==84||47!==m()););return"/*"+v(t,s-1)+"*"+(0,r.HT)(47===e?e:f())}function E(e){for(;!b(m());)f();return v(e,s)}},19735:(e,t,n)=>{"use strict";n.d(t,{BC:()=>m,Bq:()=>s,FK:()=>f,HC:()=>u,HT:()=>o,K5:()=>c,YW:()=>l,b2:()=>g,c1:()=>p,kg:()=>h,kp:()=>i,tW:()=>a,tn:()=>r,wN:()=>d});var r=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}function s(e){return e.trim()}function l(e,t){return(e=t.exec(e))?e[0]:e}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function p(e,t,n){return e.slice(t,n)}function g(e){return e.length}function f(e){return e.length}function m(e,t){return t.push(e),e}function h(e,t){return e.map(t).join("")}},19367:(e,t,n)=>{"use strict";n.d(t,{BE:()=>G,Es:()=>L,Tn:()=>l,X3:()=>N,ZH:()=>i,aw:()=>X,b0:()=>s,bZ:()=>f,bu:()=>P,dO:()=>E,lK:()=>O,lg:()=>k,mF:()=>z,mf:()=>x,qm:()=>$,qv:()=>a,r9:()=>I,rL:()=>u,sb:()=>F});var r=n(51609);const o=()=>{},i=o(),a=Object,s=e=>e===i,l=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),c=e=>l(e.then),d=new WeakMap;let p=0;const g=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(a(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=d.get(e),o)return o;if(o=++p+"~",d.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=g(e[i])+",";d.set(e,o)}if(n==a){o="#";const t=a.keys(e).sort();for(;!s(i=t.pop());)s(e[i])||(o+=i+":"+g(e[i])+",");d.set(e,o)}}return o},f=new WeakMap,m={},h={},v="undefined",b=typeof window!=v,y=typeof document!=v,I=(e,t)=>{const n=f.get(e);return[()=>!s(t)&&e.get(t)||m,r=>{if(!s(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,u(o,r),o||m)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||m]};let A=!0;const[C,M]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],w={isOnline:()=>A,isVisible:()=>{const e=y&&document.visibilityState;return s(e)||"hidden"!==e}},S={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),C("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),M("focus",e)}),initReconnect:e=>{const t=()=>{A=!0,e()},n=()=>{A=!1};return C("online",t),C("offline",n),()=>{M("online",t),M("offline",n)}}},E=!r.useId,N=!b||"Deno"in window,x=e=>b&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(e):setTimeout(e,1),L=N?r.useEffect:r.useLayoutEffect,j="undefined"!=typeof navigator&&navigator.connection,T=!N&&j&&(["slow-2g","2g"].includes(j.effectiveType)||j.saveData),O=e=>{if(l(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"",t]};let D=0;const k=()=>++D,_=2;var P={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:_,RECONNECT_EVENT:1};async function z(...e){const[t,n,r,o]=e,a=u({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=a.populateCache;const p=a.rollbackOnError;let g=a.optimisticData;const m=!1!==a.revalidate,h=a.throwOnError;if(l(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(v))}return v(n);async function v(n){const[o]=O(n);if(!o)return;const[a,u]=I(t,o),[v,b,y,A]=f.get(t),C=()=>{const e=v[o];return m&&(delete y[o],delete A[o],e&&e[0])?e[0](_).then((()=>a().data)):a().data};if(e.length<3)return C();let M,w=r;const S=k();b[o]=[S,0];const E=!s(g),N=a(),x=N.data,L=N._c,j=s(L)?x:L;if(E&&(g=l(g)?g(j,x):g,u({data:g,_c:j})),l(w))try{w=w(j)}catch(e){M=e}if(w&&c(w)){if(w=await w.catch((e=>{M=e})),S!==b[o][0]){if(M)throw M;return w}M&&E&&(e=>"function"==typeof p?p(e):!1!==p)(M)&&(d=!0,u({data:j,_c:i}))}if(d&&!M)if(l(d)){const e=d(w,j);u({data:e,error:i,_c:i})}else u({data:w,error:i,_c:i});if(b[o][1]=k(),Promise.resolve(C()).then((()=>{u({_c:i})})),!M)return w;if(h)throw M}}const V=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},R=(e,t)=>{if(!f.has(e)){const n=u(S,t),r={},a=z.bind(i,e);let s=o;const l={},c=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=l[t];if(o)for(const e of o)e(n,r)},p=()=>{if(!f.has(e)&&(f.set(e,[r,{},{},{},a,d,c]),!N)){const t=n.initFocus(setTimeout.bind(i,V.bind(i,r,0))),o=n.initReconnect(setTimeout.bind(i,V.bind(i,r,1)));s=()=>{t&&t(),o&&o(),f.delete(e)}}};return p(),[e,a,p,s]}return[e,f.get(e)[4]]},[Y,B]=R(new Map),F=u({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!s(o)&&i>o||setTimeout(n,a,r)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>g(e)==g(t),isPaused:()=>!1,cache:Y,mutate:B,fallback:{}},w),H=(e,t)=>{const n=u(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=u(o,a))}return n},Z=(0,r.createContext)({}),G=e=>{const{value:t}=e,n=(0,r.useContext)(Z),o=l(t),a=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?a:H(n,a)),[o,n,a]),c=a&&a.provider,d=(0,r.useRef)(i);c&&!d.current&&(d.current=R(c(s.cache||Y),a));const p=d.current;return p&&(s.cache=p[0],s.mutate=p[1]),L((()=>{if(p)return p[2]&&p[2](),p[3]}),[]),(0,r.createElement)(Z.Provider,u(e,{value:s}))},W=b&&window.__SWR_DEVTOOLS_USE__,U=W?window.__SWR_DEVTOOLS_USE__:[],Q=U.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=O(t),[,,,o]=f.get(Y);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return s(i)?n(...e):(delete o[r],i)}),r))),$=e=>function(...t){const n=u(F,(0,r.useContext)(Z)),[o,i,a]=(e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=H(n,a);let c=e;const{use:d}=s,p=(d||[]).concat(Q);for(let e=p.length;e--;)c=p[e](c);return c(o,i||s.fetcher||null,s)},X=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=r)},57626:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(51609),o=n(19888),i=n(19367);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},l=(i.qv.defineProperty(i.BE,"defaultValue",{value:i.sb}),(0,i.qm)(((e,t,n)=>{const{cache:l,compare:u,suspense:c,fallbackData:d,revalidateOnMount:p,revalidateIfStale:g,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:h,keepPreviousData:v}=n,[b,y,I,A]=i.bZ.get(l),[C,M]=(0,i.lK)(e),w=(0,r.useRef)(!1),S=(0,r.useRef)(!1),E=(0,r.useRef)(C),N=(0,r.useRef)(t),x=(0,r.useRef)(n),L=()=>x.current,j=()=>L().isVisible()&&L().isOnline(),[T,O,D,k]=(0,i.r9)(l,C),_=(0,r.useRef)({}).current,P=(0,i.b0)(d)?n.fallback[C]:d,z=(e,t)=>{for(const n in _){const r=n;if("data"===r){if(!u(e[r],t[r])){if(!(0,i.b0)(e[r]))return!1;if(!u(W,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},V=(0,r.useMemo)((()=>{const e=!!C&&!!t&&((0,i.b0)(p)?!L().isPaused()&&!c&&(!!(0,i.b0)(g)||g):p),n=t=>{const n=(0,i.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=T(),o=k(),a=n(r),s=r===o?a:n(o);let l=a;return[()=>{const e=n(T());return z(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,C]),R=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>D(C,((t,n)=>{z(n,t)||e()}))),[l,C]),V[0],V[1]),Y=!w.current,B=b[C]&&b[C].length>0,F=R.data,H=(0,i.b0)(F)?P:F,Z=R.error,G=(0,r.useRef)(H),W=v?(0,i.b0)(F)?G.current:F:H,U=!(B&&!(0,i.b0)(Z))&&(Y&&!(0,i.b0)(p)?p:!L().isPaused()&&(c?!(0,i.b0)(H)&&g:(0,i.b0)(H)||g)),Q=!!(C&&t&&Y&&U),$=(0,i.b0)(R.isValidating)?Q:R.isValidating,X=(0,i.b0)(R.isLoading)?Q:R.isLoading,J=(0,r.useCallback)((async e=>{const t=N.current;if(!C||!t||S.current||L().isPaused())return!1;let r,o,a=!0;const s=e||{},l=!I[C]||!s.dedupe,c=()=>i.dO?!S.current&&C===E.current&&w.current:C===E.current,d={isValidating:!1,isLoading:!1},p=()=>{O(d)},g=()=>{const e=I[C];e&&e[1]===o&&delete I[C]},f={isValidating:!0};(0,i.b0)(T().data)&&(f.isLoading=!0);try{if(l&&(O(f),n.loadingTimeout&&(0,i.b0)(T().data)&&setTimeout((()=>{a&&c()&&L().onLoadingSlow(C,n)}),n.loadingTimeout),I[C]=[t(M),(0,i.lg)()]),[r,o]=I[C],r=await r,l&&setTimeout(g,n.dedupingInterval),!I[C]||I[C][1]!==o)return l&&c()&&L().onDiscarded(C),!1;d.error=i.ZH;const e=y[C];if(!(0,i.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return p(),l&&c()&&L().onDiscarded(C),!1;const s=T().data;d.data=u(s,r)?s:r,l&&c()&&L().onSuccess(r,C,n)}catch(e){g();const t=L(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&c()&&(t.onError(e,C,t),(!0===n||(0,i.Tn)(n)&&n(e))&&j()&&t.onErrorRetry(e,C,t,(e=>{const t=b[C];t&&t[0]&&t[0](i.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,p(),!0}),[C,l]),K=(0,r.useCallback)(((...e)=>(0,i.mF)(l,E.current,...e)),[]);if((0,i.Es)((()=>{N.current=t,x.current=n,(0,i.b0)(F)||(G.current=F)})),(0,i.Es)((()=>{if(!C)return;const e=J.bind(i.ZH,s);let t=0;const n=(0,i.aw)(C,b,((n,r={})=>{if(n==i.bu.FOCUS_EVENT){const n=Date.now();L().revalidateOnFocus&&n>t&&j()&&(t=n+L().focusThrottleInterval,e())}else if(n==i.bu.RECONNECT_EVENT)L().revalidateOnReconnect&&j()&&e();else{if(n==i.bu.MUTATE_EVENT)return J();if(n==i.bu.ERROR_REVALIDATE_EVENT)return J(r)}}));return S.current=!1,E.current=C,w.current=!0,O({_k:M}),U&&((0,i.b0)(H)||i.X3?e():(0,i.mf)(e)),()=>{S.current=!0,n()}}),[C]),(0,i.Es)((()=>{let e;function t(){const t=(0,i.Tn)(f)?f(T().data):f;t&&-1!==e&&(e=setTimeout(n,t))}function n(){T().error||!m&&!L().isVisible()||!h&&!L().isOnline()?t():J(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[f,m,h,C]),(0,r.useDebugValue)(W),c&&(0,i.b0)(H)&&C){if(!i.dO&&i.X3)throw new Error("Fallback data is required when using suspense in SSR.");N.current=t,x.current=n,S.current=!1;const e=A[C];if(!(0,i.b0)(e)){const t=K(e);a(t)}if(!(0,i.b0)(Z))throw Z;{const e=J(s);(0,i.b0)(W)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:K,get data(){return _.data=!0,W},get error(){return _.error=!0,Z},get isValidating(){return _.isValidating=!0,$},get isLoading(){return _.isLoading=!0,X}}})))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;var t=n(65028),r=n(51609);const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"givewp/campaign-donations","version":"1.0.0","title":"Campaign Donations","category":"give","description":"Display all the donations associated with a campaign.","attributes":{"campaignId":{"type":"integer"},"showAnonymous":{"type":"boolean","default":true},"showIcon":{"type":"boolean","default":true},"showButton":{"type":"boolean","default":true},"donateButtonText":{"type":"string","default":"Donate"},"sortBy":{"type":"string","default":"recent-donations"},"donationsPerPage":{"type":"number","default":5},"loadMoreButtonText":{"type":"string","default":"Load more"}},"supports":{"className":true},"example":{},"textdomain":"give","render":"file:./render.php","style":"file:../../../../build/campaignDonationsBlockApp.css"}');var i=n(94715),a=n(56427),s=n(27723),l=n(84871),u=n.n(l),c=n(47730),d=n(38965),p=n(16639);const g={schema:o,settings:{icon:(0,r.createElement)(p.A,{color:"grey"}),edit:function({attributes:e,setAttributes:t}){const n=(0,i.useBlockProps)(),{campaign:o,hasResolved:l}=(0,d.A)(e.campaignId),{showAnonymous:p,showIcon:g,showButton:f,donateButtonText:m,sortBy:h,donationsPerPage:v,loadMoreButtonText:b}=e;return(0,r.createElement)("div",{...n},(0,r.createElement)(c.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(u(),{block:"givewp/campaign-donations",attributes:e})),l&&o?.id&&(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Display Elements","give"),initialOpen:!0},(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show anonymous","give"),checked:p,onChange:e=>t({showAnonymous:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show icon","give"),checked:g,onChange:e=>t({showIcon:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show button","give"),checked:f,onChange:e=>t({showButton:e})}),(0,r.createElement)(a.TextControl,{label:(0,s.__)("Donate Button","give"),value:m,onChange:e=>t({donateButtonText:e}),help:(0,s.__)("This shows on the header","give")})),(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Settings","give"),initialOpen:!0},(0,r.createElement)(a.SelectControl,{label:(0,s.__)("Sort by","give"),value:h,options:[{label:(0,s.__)("Top donations","give"),value:"top-donations"},{label:(0,s.__)("Recent donations","give"),value:"recent-donations"}],onChange:e=>t({sortBy:e}),help:(0,s.__)("The order donations are displayed in.","give")}),(0,r.createElement)(a.__experimentalNumberControl,{label:(0,s.__)("Limit","give"),value:v,min:1,max:100,onChange:e=>t({donationsPerPage:parseInt(e)}),help:(0,s.__)("The maximum number of donations to display.","give")}))))},save:()=>null}},f={schema:JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"givewp/campaign-donors","version":"1.0.0","title":"Campaign Donors","category":"give","description":"Display all the donors associated with a campaign.","attributes":{"campaignId":{"type":"integer"},"showAnonymous":{"type":"boolean","default":true},"showCompanyName":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showButton":{"type":"boolean","default":true},"donateButtonText":{"type":"string","default":"Join the list"},"sortBy":{"type":"string","default":"top-donors"},"donorsPerPage":{"type":"number","default":5},"loadMoreButtonText":{"type":"string","default":"Load more"}},"supports":{"className":true},"example":{},"textdomain":"give","render":"file:./render.php","style":"file:../../../../build/campaignDonorsBlockApp.css"}'),settings:{icon:(0,r.createElement)(p.A,{color:"grey"}),edit:function({attributes:e,setAttributes:t}){const n=(0,i.useBlockProps)(),{campaign:o,hasResolved:l}=(0,d.A)(e.campaignId),{showAnonymous:p,showCompanyName:g,showAvatar:f,showButton:m,donateButtonText:h,sortBy:v,donorsPerPage:b,loadMoreButtonText:y}=e;return(0,r.createElement)("div",{...n},(0,r.createElement)(c.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(u(),{block:"givewp/campaign-donors",attributes:e})),l&&o?.id&&(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Display Elements","give"),initialOpen:!0},(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show anonymous","give"),checked:p,onChange:e=>t({showAnonymous:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show company name","give"),checked:g,onChange:e=>t({showCompanyName:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show avatar","give"),checked:f,onChange:e=>t({showAvatar:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show button","give"),checked:m,onChange:e=>t({showButton:e})}),(0,r.createElement)(a.TextControl,{label:(0,s.__)("Donate Button","give"),value:h,onChange:e=>t({donateButtonText:e}),help:(0,s.__)("This shows on the header","give")})),(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Settings","give"),initialOpen:!0},(0,r.createElement)(a.SelectControl,{label:(0,s.__)("Sort by","give"),value:v,options:[{label:(0,s.__)("Top Donors","give"),value:"top-donors"},{label:(0,s.__)("Recent Donors","give"),value:"recent-donors"}],onChange:e=>t({sortBy:e}),help:(0,s.__)("The order donors are displayed in.","give")}),(0,r.createElement)(a.__experimentalNumberControl,{label:(0,s.__)("Limit","give"),value:b,min:1,max:100,onChange:e=>t({donorsPerPage:parseInt(e)}),help:(0,s.__)("The maximum number of donors to display.","give")}))))},save:()=>null}};var m=n(95175);const h={schema:JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"givewp/campaign-stats-block","version":"1.0.0","title":"Campaign Statistics","category":"give","description":"Displays the campaign’s statistics.","attributes":{"campaignId":{"type":"integer"},"statistic":{"type":"string","enum":["top-donation","average-donation"],"default":"top-donation"}},"supports":{"align":["wide","full"],"anchor":true,"className":true,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}}},"example":{},"textdomain":"give","render":"file:./render.php","viewScript":"file:../../../../build/campaignStatsBlockApp.js","style":"file:../../../../build/campaignStatsBlockApp.css"}'),settings:{icon:(0,r.createElement)((function(){return(0,r.createElement)(a.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2a1 1 0 0 1 1 1v14.8c0 .577 0 .949.024 1.232.022.272.06.372.085.422a1 1 0 0 0 .437.437c.05.025.15.063.422.085C5.25 20 5.623 20 6.2 20H21a1 1 0 1 1 0 2H6.162c-.528 0-.982 0-1.357-.03-.395-.033-.789-.104-1.167-.297a3 3 0 0 1-1.311-1.311c-.193-.378-.264-.772-.296-1.167A17.9 17.9 0 0 1 2 17.838V3a1 1 0 0 1 1-1z",fill:"#000"}),(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13.5a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1zM11.5 10.5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zM16 7.5a1 1 0 0 1 1 1v9a1 1 0 1 1-2 0v-9a1 1 0 0 1 1-1zM20.5 4.5a1 1 0 0 1 1 1v12a1 1 0 1 1-2 0v-12a1 1 0 0 1 1-1z",fill:"#000"}))}),null),edit:function({attributes:e,setAttributes:t}){const n=(0,i.useBlockProps)(),{campaign:o,hasResolved:l}=(0,d.A)(e?.campaignId),p="top-donation"===e.statistic?(0,s.__)("Displays the top donation of the selected campaign.","give"):(0,s.__)("Displays the average donation of the selected campaign.","give");return(0,r.createElement)("div",{...n},(0,r.createElement)(c.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(u(),{block:"givewp/campaign-stats-block",attributes:e})),l&&o?.id&&(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:"Settings",initialOpen:!0},(0,r.createElement)(a.SelectControl,{label:(0,s.__)("Type","give"),help:p,value:e.statistic,options:[{value:"top-donation",label:(0,s.__)("Top Donation","give")},{value:"average-donation",label:(0,s.__)("Average Donation","give")}],onChange:e=>t({statistic:e})}))))}}};var v=n(1455),b=n.n(v),y=n(93832),I=n(57626);function A({attributes:e,data:t}){const[n,o]=(0,r.useState)(!1),{comment:i,date:a,donorName:l,avatar:u}=t,{commentLength:c,showAvatar:d,showDate:p,showName:g,readMoreText:f=(0,s.__)("Read More","give")}=e,m=i.slice(0,c)+(i.length>c?"...":"");return(0,r.createElement)("div",{className:"givewp-campaign-comment-block-card"},d&&(0,r.createElement)("div",{className:"givewp-campaign-comment-block-card__avatar"},(0,r.createElement)("img",{src:u,alt:(0,s.__)("Donor avatar")})),(0,r.createElement)("div",{className:"givewp-campaign-comment-block__content"},g&&(0,r.createElement)("p",{className:"givewp-campaign-comment-block-card__donor-name"},l),p&&(0,r.createElement)("p",{className:"givewp-campaign-comment-block-card__details"},a),(0,r.createElement)("p",{className:"givewp-campaign-comment-block-card__comment"},n?i:m),i?.length>c&&!n&&(0,r.createElement)("button",{className:"givewp-campaign-comment-block-card__read-more",onClick:()=>o(!n)},f)))}function C({secondaryColor:e}){return(0,r.createElement)("div",{className:"givewp-campaign-comments-block-empty-state"},(0,r.createElement)("div",{className:"givewp-campaign-donations-block-empty-state__icon"},(0,r.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M10 33.48h4.351c.567 0 1.131.068 1.681.203l4.597 1.117a7.126 7.126 0 0 0 3.044.07l5.083-.988a7.007 7.007 0 0 0 3.545-1.846l3.596-3.498a2.505 2.505 0 0 0 0-3.615c-.924-.9-2.389-1-3.434-.238l-4.191 3.058c-.6.439-1.33.675-2.082.675h-4.047 2.576c1.452 0 2.628-1.144 2.628-2.557v-.511c0-1.173-.82-2.195-1.99-2.479l-3.975-.967a8.374 8.374 0 0 0-1.976-.236c-1.608 0-4.519 1.332-4.519 1.332l-4.886 2.043m-6.667-.708V34c0 .934 0 1.4.182 1.757.16.314.414.569.728.728.357.182.823.182 1.757.182h1.333c.933 0 1.4 0 1.757-.181.313-.16.568-.415.728-.729.182-.356.182-.823.182-1.757v-9.666c0-.934 0-1.4-.182-1.757a1.667 1.667 0 0 0-.728-.728c-.357-.182-.824-.182-1.757-.182H6.001c-.934 0-1.4 0-1.757.182-.314.16-.569.415-.728.728-.182.357-.182.823-.182 1.757zM28.653 5.989c-.995-2.082-3.288-3.185-5.518-2.12-2.23 1.064-3.18 3.588-2.247 5.804.577 1.37 2.23 4.028 3.41 5.86.435.677.653 1.015.971 1.213.273.17.614.262.936.251.374-.012.732-.197 1.448-.565 1.936-.997 4.698-2.473 5.882-3.37 1.917-1.452 2.392-4.121.957-6.15s-3.937-2.229-5.84-.923z",stroke:e,"stroke-width":"3.333","stroke-linecap":"round","stroke-linejoin":"round"}))),(0,r.createElement)("div",{className:"givewp-campaign-comments-block-empty-state__details"},(0,r.createElement)("strong",{className:"givewp-campaign-comments-block-empty-state__title"},(0,s.__)("Leave a supportive message by","give")),(0,r.createElement)("p",{className:"givewp-campaign-comments-block-empty-state__description"},(0,s.__)("donating to the campaign.","give"))))}function M({attributes:e,secondaryColor:t}){const{title:n=(0,s.__)("Share your support","give")}=e,{data:o,isLoading:i}=(0,I.Ay)((0,y.addQueryArgs)(`/givewp/v3/campaigns/${e?.campaignId}/comments`,{id:e?.campaignId,perPage:e?.commentsPerPage,anonymous:e?.showAnonymous}),(e=>b()({path:e})));return i?null:o&&0===o?.length?(0,r.createElement)(C,{secondaryColor:t}):(0,r.createElement)("div",{className:"givewp-campaign-comment-block"},(0,r.createElement)("h4",{className:"givewp-campaign-comment-block__title"},n),(0,r.createElement)("p",{className:"givewp-campaign-comment-block__cta"},(0,s.__)("Leave a supportive message by donating to the campaign.","give")),o?.map(((t,n)=>(0,r.createElement)(A,{key:`givewp-campaign-comment-${n}`,attributes:e,data:t}))))}const w=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"givewp/campaign-comments-block","version":"1.0.0","title":"Campaign Comments","category":"give","description":"Display all the donor comments associated with a campaign.","attributes":{"blockId":{"type":"string"},"campaignId":{"type":"number"},"title":{"type":"string"},"showAnonymous":{"type":"boolean","default":true},"showAvatar":{"type":"boolean","default":true},"showDate":{"type":"boolean","default":true},"showName":{"type":"boolean","default":true},"commentLength":{"type":"number","default":200},"readMoreText":{"type":"string"},"commentsPerPage":{"type":"number","default":3}},"supports":{"anchor":true,"className":true,"splitting":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true},"color":{"gradients":true,"link":true,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"margin":false,"padding":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}}},"example":{},"textdomain":"give","render":"file:./render.php","viewScript":"file:../../../../build/campaignCommentsBlockApp.js","editorScript":"file:../../../../build/campaignBlocks.js","style":"file:../../../../build/campaignCommentsBlockApp.css","editorStyle":"file:../../../../build/assets/dist/css/design-system/foundation.css"}'),S=window.wp.primitives,E={schema:w,settings:{icon:(0,r.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(S.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),edit:function({attributes:e,setAttributes:t,clientId:n}){const o=(0,i.useBlockProps)(),{campaign:l,hasResolved:u}=(0,d.A)(e?.campaignId);(0,r.useEffect)((()=>{e.blockId||t({blockId:n})}),[]);const{title:p=(0,s.__)("Share your support","give"),readMoreText:g=(0,s.__)("Read More","give")}=e;return(0,r.createElement)("figure",{...o},(0,r.createElement)(c.A,{campaignId:e.campaignId,handleSelect:e=>t({campaignId:e})},(0,r.createElement)(M,{attributes:e,secondaryColor:l?.secondaryColor})),u&&l?.id&&(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Display Elements","give"),initialOpen:!0},(0,r.createElement)(a.TextControl,{label:(0,s.__)("Title","give"),value:p,onChange:e=>t({title:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show Anonymous","give"),checked:e.showAnonymous,onChange:e=>t({showAnonymous:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show Avatar","give"),checked:e.showAvatar,onChange:e=>t({showAvatar:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show Date","give"),checked:e.showDate,onChange:e=>t({showDate:e})}),(0,r.createElement)(a.ToggleControl,{label:(0,s.__)("Show Name","give"),checked:e.showName,onChange:e=>t({showName:e})})),(0,r.createElement)(a.PanelBody,{title:(0,s.__)("Comment Settings","give"),initialOpen:!0},(0,r.createElement)(a.TextControl,{label:(0,s.__)("Comment Length","give"),help:(0,s.__)("Limits the amount of characters to be displayed on donations with comments.","give"),value:String(e.commentLength),onChange:e=>t({commentLength:Number(e)})}),(0,r.createElement)(a.TextControl,{label:(0,s.__)("Read More Text","give"),value:g,onChange:e=>t({readMoreText:e})}),(0,r.createElement)(a.TextControl,{label:(0,s.__)("Comments Per Page","give"),help:(0,s.__)("Set the number of comments to be displayed on the first page load.","give"),value:String(e.commentsPerPage),onChange:e=>t({commentsPerPage:Number(e)})}))))}}};[t.A,g,f,m.A,h,E].forEach((t=>{(0,e.getBlockType)(t.schema.name)||(0,e.registerBlockType)(t.schema,t.settings)}))})()})();