1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,513826,e=>{e.v({active:"progress-module-scss-module__s6K66W__active",clickable:"progress-module-scss-module__s6K66W__clickable",completed:"progress-module-scss-module__s6K66W__completed",dark:"progress-module-scss-module__s6K66W__dark",horizontal:"progress-module-scss-module__s6K66W__horizontal",line:"progress-module-scss-module__s6K66W__line",logoContainer:"progress-module-scss-module__s6K66W__logoContainer",progressContainer:"progress-module-scss-module__s6K66W__progressContainer",progressTitle:"progress-module-scss-module__s6K66W__progressTitle",stepConnector:"progress-module-scss-module__s6K66W__stepConnector",stepContent:"progress-module-scss-module__s6K66W__stepContent",stepIndicator:"progress-module-scss-module__s6K66W__stepIndicator",stepLabel:"progress-module-scss-module__s6K66W__stepLabel",stepWrapper:"progress-module-scss-module__s6K66W__stepWrapper"})},512296,e=>{e.v({poweredBy:"poweredBy-module-scss-module__eFxqsG__poweredBy"})},995333,(e,t,s)=>{!function(e,t){t(s)}(e.e,function(e){"use strict";var t="0123456789bcdefghjkmnpqrstuvwxyz",s=0x26278b4,a=110574,l=6378137,n=.00669447819799;function i(e){return Math.log(e)/Math.log(2)}function r(e){var t;if(Array.isArray(e))if(2!==e.length)t="expected array of length 2, got length "+e.length;else{var s=e[0],a=e[1];"number"!=typeof s||isNaN(s)?t="latitude must be a number":s<-90||s>90?t="latitude must be within the range [-90, 90]":"number"!=typeof a||isNaN(a)?t="longitude must be a number":(a<-180||a>180)&&(t="longitude must be within the range [-180, 180]")}else t="location must be an array";if(void 0!==t)throw Error("Invalid GeoFire location '"+e+"': "+t)}function o(e){var s;if("string"!=typeof e)s="geohash must be a string";else if(0===e.length)s="geohash cannot be the empty string";else for(var a=0,l=e;a<l.length;a++){var n=l[a];-1===t.indexOf(n)&&(s="geohash cannot contain '"+n+"'")}if(void 0!==s)throw Error("Invalid GeoFire geohash '"+e+"': "+s)}function c(e){if("number"!=typeof e||isNaN(e))throw Error("Error: degrees must be a number");return e*Math.PI/180}function d(e,s){if(void 0===s&&(s=10),r(e),void 0!==s){if("number"!=typeof s||isNaN(s))throw Error("precision must be a number");if(s<=0)throw Error("precision must be greater than 0");if(s>22)throw Error("precision cannot be greater than 22");if(Math.round(s)!==s)throw Error("precision must be an integer")}for(var a={min:-90,max:90},l={min:-180,max:180},n="",i=0,o=0,c=1;n.length<s;){var d=c?e[1]:e[0],u=c?l:a,m=(u.min+u.max)/2;d>m?(i=1+(i<<1),u.min=m):(i=0+(i<<1),u.max=m),c=!c,o<4?o++:(o=0,n+=t[i],i=0)}return n}function u(e,t){var s=c(t),a=Math.cos(s)*l*Math.PI/180*(1/Math.sqrt(1-n*Math.sin(s)*Math.sin(s)));return a<1e-12?360*(e>0):Math.min(360,e/a)}function m(e,t){var s=u(e,t);return Math.abs(s)>1e-6?Math.max(1,i(360/s)):1}function h(e){return Math.min(i(0x1313c5a/e),110)}function p(e){if(e<=180&&e>=-180)return e;var t=e+180;return t>0?t%360-180:180- -t%360}function x(e,t){var s=t/a,l=Math.min(90,e[0]+s),n=Math.max(-90,e[0]-s);return Math.min(2*Math.floor(h(t)),2*Math.floor(m(t,l))-1,2*Math.floor(m(t,n))-1,110)}function f(e,t){var s=t/a,l=Math.min(90,e[0]+s),n=Math.max(-90,e[0]-s),i=Math.max(u(t,l),u(t,n));return[[e[0],e[1]],[e[0],p(e[1]-i)],[e[0],p(e[1]+i)],[l,e[1]],[l,p(e[1]-i)],[l,p(e[1]+i)],[n,e[1]],[n,p(e[1]-i)],[n,p(e[1]+i)]]}function g(e,s){o(e);var a=Math.ceil(s/5);if(e.length<a)return[e,e+"~"];var l=(e=e.substring(0,a)).substring(0,e.length-1),n=t.indexOf(e.charAt(e.length-1)),i=5-(s-5*l.length),r=n>>i<<i,c=r+(1<<i);return c>31?[l+t[r],l+"~"]:[l+t[r],l+t[c]]}e.BASE32=t,e.BITS_PER_CHAR=5,e.E2=n,e.EARTH_EQ_RADIUS=l,e.EARTH_MERI_CIRCUMFERENCE=s,e.EPSILON=1e-12,e.GEOHASH_PRECISION=10,e.MAXIMUM_BITS_PRECISION=110,e.METERS_PER_DEGREE_LATITUDE=a,e.boundingBoxBits=x,e.boundingBoxCoordinates=f,e.degreesToRadians=c,e.distanceBetween=function(e,t){r(e),r(t);var s=c(t[0]-e[0]),a=c(t[1]-e[1]),l=Math.sin(s/2)*Math.sin(s/2)+Math.cos(c(e[0]))*Math.cos(c(t[0]))*Math.sin(a/2)*Math.sin(a/2);return 2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))*6371},e.geohashForLocation=d,e.geohashQuery=g,e.geohashQueryBounds=function(e,t){r(e);var s=Math.max(1,x(e,t)),a=Math.ceil(s/5),l=f(e,t).map(function(e){return g(d(e,a),s)});return l.filter(function(e,t){return!l.some(function(s,a){return t>a&&e[0]===s[0]&&e[1]===s[1]})})},e.latitudeBitsForResolution=h,e.longitudeBitsForResolution=m,e.metersToLongitudeDegrees=u,e.validateGeohash=o,e.validateKey=function(e){var t;if("string"!=typeof e?t="key must be a string":0===e.length?t="key cannot be the empty string":11+e.length>
1755?t="key is too long to be stored in Firebase":/[\[\].#$\/\u0000-\u001F\u007F]/.test(e)&&(t="key cannot contain any of the following characters: . # $ ] [ /"),void 0!==t)throw Error("Invalid GeoFire key '"+e+"': "+t)},e.validateLocation=r,e.wrapLongitude=p,Object.defineProperty(e,"__esModule",{value:!0})})},825036,(e,t,s)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},826807,(e,t,s)=>{t.exports=e.g&&e.g.Object===Object&&e.g},528253,(e,t,s)=>{var a=e.r(826807),l="object"==typeof self&&self&&self.Object===Object&&self;t.exports=a||l||Function("return this")()},318359,(e,t,s)=>{var a=e.r(528253);t.exports=function(){return a.Date.now()}},919424,(e,t,s)=>{var a=/\s/;t.exports=function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}},425390,(e,t,s)=>{var a=e.r(919424),l=/^\s+/;t.exports=function(e){return e?e.slice(0,a(e)+1).replace(l,""):e}},854057,(e,t,s)=>{t.exports=e.r(528253).Symbol},347466,(e,t,s)=>{var a=e.r(854057),l=Object.prototype,n=l.hasOwnProperty,i=l.toString,r=a?a.toStringTag:void 0;t.exports=function(e){var t=n.call(e,r),s=e[r];try{e[r]=void 0;var a=!0}catch(e){}var l=i.call(e);return a&&(t?e[r]=s:delete e[r]),l}},903830,(e,t,s)=>{var a=Object.prototype.toString;t.exports=function(e){return a.call(e)}},919490,(e,t,s)=>{var a=e.r(854057),l=e.r(347466),n=e.r(903830),i="[object Null]",r="[object Undefined]",o=a?a.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?r:i:o&&o in Object(e)?l(e):n(e)}},423327,(e,t,s)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},961322,(e,t,s)=>{var a=e.r(919490),l=e.r(423327),n="[object Symbol]";t.exports=function(e){return"symbol"==typeof e||l(e)&&a(e)==n}},914715,(e,t,s)=>{var a=e.r(425390),l=e.r(825036),n=e.r(961322),i=0/0,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(n(e))return i;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var s=o.test(e);return s||c.test(e)?d(e.slice(2),s?2:8):r.test(e)?i:+e}},476293,(e,t,s)=>{var a=e.r(825036),l=e.r(318359),n=e.r(914715),i="Expected a function",r=Math.max,o=Math.min;t.exports=function(e,t,s){var c,d,u,m,h,p,x=0,f=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError(i);function j(t){var s=c,a=d;return c=d=void 0,x=t,m=e.apply(a,s)}function b(e){return x=e,h=setTimeout(w,t),f?j(e):m}function y(e){var s=e-p,a=e-x,l=t-s;return g?o(l,u-a):l}function N(e){var s=e-p,a=e-x;return void 0===p||s>=t||s<0||g&&a>=u}function w(){var e=l();if(N(e))return _(e);h=setTimeout(w,y(e))}function _(e){return(h=void 0,v&&c)?j(e):(c=d=void 0,m)}function S(){return void 0===h?m:_(l())}function k(){var e=l(),s=N(e);if(c=arguments,d=this,p=e,s){if(void 0===h)return b(p);if(g)return clearTimeout(h),h=setTimeout(w,t),j(p)}return void 0===h&&(h=setTimeout(w,t)),m}return t=n(t)||0,a(s)&&(f=!!s.leading,u=(g="maxWait"in s)?r(n(s.maxWait)||0,t):u,v="trailing"in s?!!s.trailing:v),k.cancel=function(){void 0!==h&&clearTimeout(h),x=0,
1c=p=d=h=void 0},k.flush=S,k}},121580,e=>{e.v({active:"location-module-scss-module__ANGymq__active",closeButton:"location-module-scss-module__ANGymq__closeButton",header:"location-module-scss-module__ANGymq__header",infoAddress:"location-module-scss-module__ANGymq__infoAddress",infoButton:"location-module-scss-module__ANGymq__infoButton",infoContent:"location-module-scss-module__ANGymq__infoContent",infoTitle:"location-module-scss-module__ANGymq__infoTitle",infoWindow:"location-module-scss-module__ANGymq__infoWindow",locationContainer:"location-module-scss-module__ANGymq__locationContainer",locationList:"location-module-scss-module__ANGymq__locationList",locationNumber:"location-module-scss-module__ANGymq__locationNumber",locationPin:"location-module-scss-module__ANGymq__locationPin",mapContainer:"location-module-scss-module__ANGymq__mapContainer",mapMarker:"location-module-scss-module__ANGymq__mapMarker",mapMobileOverlay:"location-module-scss-module__ANGymq__mapMobileOverlay",mapWrapper:"location-module-scss-module__ANGymq__mapWrapper",markerPin:"location-module-scss-module__ANGymq__markerPin",mobileMapButton:"location-module-scss-module__ANGymq__mobileMapButton",pulse:"location-module-scss-module__ANGymq__pulse",searchAreaButton:"location-module-scss-module__ANGymq__searchAreaButton",selected:"location-module-scss-module__ANGymq__selected",showMobileMap:"location-module-scss-module__ANGymq__showMobileMap"})},951739,e=>{e.v({calendarContainer:"calendar-module-scss-module__WGB11q__calendarContainer",containerFluid:"calendar-module-scss-module__WGB11q__containerFluid"})},751122,e=>{e.v({accordionEventTypes:"eventTypes-module-scss-module__cIccjq__accordionEventTypes",containerFluid:"eventTypes-module-scss-module__cIccjq__containerFluid",description:"eventTypes-module-scss-module__cIccjq__description",eventDetails:"eventTypes-module-scss-module__cIccjq__eventDetails",payout:"eventTypes-module-scss-module__cIccjq__payout",rule:"eventTypes-module-scss-module__cIccjq__rule",subTitle:"eventTypes-module-scss-module__cIccjq__subTitle"})},361805,e=>{e.v({accountContainer:"account-module-scss-module__5MABwq__accountContainer",containerFluid:"account-module-scss-module__5MABwq__containerFluid",orDivider:"account-module-scss-module__5MABwq__orDivider",orgButton:"account-module-scss-module__5MABwq__orgButton"})},216241,e=>{e.v({logoArea:"welcome-module-scss-module__3ZQyVq__logoArea","rsp-calender-card-text":"welcome-module-scss-module__3ZQyVq__rsp-calender-card-text",rspCalenderCard:"welcome-module-scss-module__3ZQyVq__rspCalenderCard",rspCalenderCardText:"welcome-module-scss-module__3ZQyVq__rspCalenderCardText",rspHead:"welcome-module-scss-module__3ZQyVq__rspHead",rspWidget:"welcome-module-scss-module__3ZQyVq__rspWidget",scbLeft:"welcome-module-scss-module__3ZQyVq__scbLeft",scbLeftTextBox:"welcome-module-scss-module__3ZQyVq__scbLeftTextBox",scbLtbClock:"welcome-module-scss-module__3ZQyVq__scbLtbClock",scbLtbClockImg:"welcome-module-scss-module__3ZQyVq__scbLtbClockImg",scbRight:"welcome-module-scss-module__3ZQyVq__scbRight",successContentBox:"welcome-module-scss-module__3ZQyVq__successContentBox"})},703538,__turbopack_context__=>{"use strict";__turbopack_context__.s(["default",()=>NewRequest],703538);var __TURBOPACK__imported__module__391166__=__turbopack_context__.i(391166),__TURBOPACK__imported__module__354926__=__turbopack_context__.i(354926),__TURBOPACK__imported__module__890080__=__turbopack_context__.i(890080),__TURBOPACK__imported__module__391166__1=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__=__turbopack_context__.i(622610),__TURBOPACK__imported__module__250503__=__turbopack_context__.i(250503),__TURBOPACK__imported__module__513826__=__turbopack_context__.i(513826),__TURBOPACK__imported__module__327012__=__turbopack_context__.i(327012),__TURBOPACK__imported__module__512296__=__turbopack_context__.i(512296);let Footer=()=>{let e=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>{var t,s;return(null==(s=e.brand)||null==(t=s.site)?void 0:t.navbarMode)||"light"}),t=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.termsUrl}),s=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.privacyUrl});return(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"d-none d-md-block position-absolute start-0 bottom-0 w-100 px-4 pb-2 text-center mb-3",children:[(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"w-100 d-flex justify-content-center align-items-center gap-4",children:[t&&(0,__TURBOPACK__imported__module__391166__1.jsx)("span",{children:(0,__TURBOPACK__imported__module__391166__1.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-decoration-none text-".concat("light"===e?"dark":"white"),children:(0,__TURBOPACK__imported__module__391166__1.jsx)("small",{style:{fontSize:"12px"},children:"Terms"})})}),s&&(0,__TURBOPACK__imported__module__391166__1.jsx)("span",{children:(0,__TURBOPACK__imported__module__391166__1.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"text-decoration-none text-".concat("light"===e?"dark":"white"),children:(0,__TURBOPACK__imported__module__391166__1.jsx)("small",{style:{fontSize:"12px"},children:"Privacy"})})})]}),(0,__TURBOPACK__imported__module__391166__1.jsxs)("small",{className:"".concat(__TURBOPACK__imported__module__512296__.poweredBy," d-flex justify-content-center align-items-center w-100 gap-2 text-").concat("light"===e?"dark":"white"," mt-2"),children:["Powered By",(0,__TURBOPACK__imported__module__391166__1.jsx)("br",{}),(0,__TURBOPACK__imported__module__391166__1.jsx)("a",{className:"text-".concat("light"===e?"dark":"white"),href:"https://www.donationscout.com",target:"_blank",rel:"noopener noreferrer",children:"DonationScout"})]})]})},Progress=e=>{var t;let{orientation:s="vertical",Logo:a}=e,l=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>e.request.step),n=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>e.request.preferredDay),i=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>e.request.events),r=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>e.request.account),o=(0,__TURBOPACK__imported__module__250503__.useSelector)(e=>{var t,s;return(null==(s=e.brand)||null==(t=s.site)?void 0:t.navbarMode)||"light"}),c=(0,__TURBOPACK__imported__module__250503__.useDispatch)(),d=[{step:1,label:"Location Details",active:[1,2,3]}
1,...3==l&&0===i.length||n?[]:[{step:4,label:"Choose Day",active:[4]}],...(null==r?void 0:r.currentUser)&&(null==r||null==(t=r.currentUser)?void 0:t.uid)?[]:[{step:5,label:"Login/Signup",active:[5]}],{step:6,label:"Organization Details",active:[6,7,8]},...n?[]:[{step:9,label:"Mailing Address",active:[9,10]},{step:11,label:"Promotional Materials",active:[11]}],{step:12,label:"Review & Confirmation",active:[12]},{step:13,label:"Request Submitted",active:[13]}],u=e=>e.includes(l),m=e=>{let t=d.find(t=>t.step===e);return!!t&&l>Math.max(...t.active)},h=e=>{if(m(e)&&14!==l){let t=d.find(t=>t.step===e);t&&c((0,__TURBOPACK__imported__module__327012__.setStep)(Math.min(...t.active)))}},p=()=>d.findIndex(e=>e.active.includes(l))+1;return(0,__TURBOPACK__imported__module__391166__1.jsxs)(__TURBOPACK__imported__module__391166__1.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"container d-flex justify-content-between align-items-center d-md-none mt-3",children:[(0,__TURBOPACK__imported__module__391166__1.jsx)("h1",{className:"h3 m-0 ".concat("light"===o?"text-primary":"text-white"),children:"Application"}),(0,__TURBOPACK__imported__module__391166__1.jsx)("p",{className:"m-0 ".concat("light"===o?"text-primary":"text-white"),children:(0,__TURBOPACK__imported__module__391166__1.jsxs)("small",{children:["Step ",p()," of ",d.length]})})]}),(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.progressContainer," ").concat("horizontal"===s?"".concat(__TURBOPACK__imported__module__513826__.horizontal):"").concat("dark"===o?" ".concat(__TURBOPACK__imported__module__513826__.dark):""),children:["horizontal"!==s&&(0,__TURBOPACK__imported__module__391166__1.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.logoContainer),children:(0,__TURBOPACK__imported__module__391166__1.jsx)("a",{href:"/",children:(0,__TURBOPACK__imported__module__391166__1.jsx)(a,{})})}),(0,__TURBOPACK__imported__module__391166__1.jsxs)("h4",{className:"d-none d-md-block m-0 ".concat(null==__TURBOPACK__imported__module__513826__?void 0:__TURBOPACK__imported__module__513826__.progressTitle),children:["Application: ",(0,__TURBOPACK__imported__module__391166__1.jsxs)("small",{className:"fw-light",children:["Step ",p()," of ",d.length]})]}),d.map((e,t)=>(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.stepWrapper," ").concat(m(e.step)?"".concat(__TURBOPACK__imported__module__513826__.clickable):""),onClick:()=>h(e.step),role:m(e.step)?"button":void 0,tabIndex:m(e.step)?0:void 0,onKeyPress:t=>{("Enter"===t.key||" "===t.key)&&h(e.step)},children:[t<d.length-1&&(0,__TURBOPACK__imported__module__391166__1.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.stepConnector," ").concat(0===t?"".concat(__TURBOPACK__imported__module__513826__.first):""),children:(0,__TURBOPACK__imported__module__391166__1.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.line," ").concat(m(e.step)?"".concat(__TURBOPACK__imported__module__513826__.completed):"")})}),(0,__TURBOPACK__imported__module__391166__1.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.stepContent),children:[(0,__TURBOPACK__imported__module__391166__1.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__513826__.stepIndicator," ").concat(m(e.step)?"".concat(__TURBOPACK__imported__module__513826__.completed):u(e.active)?"".concat(__TURBOPACK__imported__module__513826__.active):""),children:m(e.step)?(0,__TURBOPACK__imported__module__391166__1.jsx)("i",{className:"bi bi-check-lg"}):u(e.active)?(0,__TURBOPACK__imported__module__391166__1.jsx)("i",{className:"bi bi-circle-fill"}):(0,__TURBOPACK__imported__module__391166__1.jsx)(__TURBOPACK__imported__module__391166__1.Fragment,{})}),(0,__TURBOPACK__imported__module__391166__1.jsx)("span",{className:"".concat(__TURBOPACK__imported__module__513826__.stepLabel," ").concat(u(e.active)?"".concat(__TURBOPACK__imported__module__513826__.active):""," ").concat("dark"===o?__TURBOPACK__imported__module__513826__.dark:""),children:e.label})]})]},t)),(0,__TURBOPACK__imported__module__391166__1.jsx)(Footer,{})]})]})},__TURBOPACK__default__export__=Progress;
1var __TURBOPACK__imported__module__776466__=__turbopack_context__.i(776466),__TURBOPACK__imported__module__250503__1=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__391166__2=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__1=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__973512__=__turbopack_context__.i(973512),__TURBOPACK__imported__module__391166__3=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__2=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__385096__=__turbopack_context__.i(385096),__TURBOPACK__imported__module__464585__=__turbopack_context__.i(464585),__TURBOPACK__imported__module__250503__2=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__375248__=__turbopack_context__.i(375248),__TURBOPACK__imported__module__897275__=__turbopack_context__.i(897275),__TURBOPACK__imported__module__187636__=__turbopack_context__.i(187636),__TURBOPACK__imported__module__119202__=__turbopack_context__.i(119202),__TURBOPACK__imported__module__667422__=__turbopack_context__.i(667422),__TURBOPACK__imported__module__327012__1=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__=__turbopack_context__.i(165009),__TURBOPACK__imported__module__423625__=__turbopack_context__.i(423625),d=(e=>(e.ADDRESS="address",e.LATLNG="latlng",e.PLACE_ID="place_id",e))(d||{}),p=(e=>(e.XML="xml",e.JSON="json",e))(p||{});let g="https://maps.googleapis.com/maps/api/geocode",s={outputFormat:"json"};async function l(e){let{outputFormat:t,...s}=e,a=new URLSearchParams(s).toString(),n="".concat(g,"/").concat(t,"?").concat(a);try{let e=await (await fetch(n)).json(),{status:t,error_message:s}=e;if("OK"===t)return e;throw Error("Geocoding failed: ".concat(s,". Server returned status code ").concat(t,"."))}catch(e){throw e instanceof Error?Error("Geocoding request failed: ".concat(e.message)):Error("Geocoding request failed with unknown error: ".concat(e))}}function m(e){s={...s,...e}}function w(e){s.key=e}function y(e){s.language=e}function $(e){s.region=e}function h(e){s.components=e}function E(e){s.bounds=e}function L(e){s.result_type=e}function _(e){s.location_type=e}function j(e){s.outputFormat=e}function G(e){s.enable_address_descriptor=e}function u(e,t,a){if("string"!=typeof e||"string"!=typeof t)throw Error("Both requestType and value are required and must be of type string. \n requestType: ".concat(typeof e,", value: ").concat(typeof t));return l({...s,...a,[e]:t})}function O(e,t,s,a){let l={outputFormat:"json"};return t&&(l.key=t),s&&(l.language=s),a&&(l.region=a),u("address",e,l)}function S(e,t,s,a){let l={outputFormat:"json"};return t&&(l.key=t),s&&(l.language=s),a&&(l.region=a),u("place_id",e,l)}function A(e,t,s,a,l,n){let i={outputFormat:"json"};return s&&(i.key=s),a&&(i.language=a),l&&(i.region=l),n&&(i.location_type=n),u("latlng","".concat(e,",").concat(t),i)}var __TURBOPACK__imported__module__391166__4=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__3=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__3=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__310440__=__turbopack_context__.i(310440);let mapStyles=[{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}],mapStylesWithLabels=[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.icon",stylers:[{visibility:"off"}]}],generateStyles=()=>({pulsingMarkerStyles:"\n .map-marker {\n position: absolute;\n transform: translate(-50%, -50%);\n }\n \n .marker-pin {\n width: 35px;\n height: 35px;\n border-radius: 50%;\n background: var(--bs-primary);\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n color: white;\n font-size: 12px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n }\n\n .marker-pin.selected {\n background: var(--bs-secondary);\n font-weight: 700;\n }\n\n .marker-pin.disabled {\n background: color-mix(in srgb, var(--bs-primary) 65%, white);
1\n cursor: not-allowed;\n }\n ",overlayStyles:"\n .map-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(255, 255, 255, 0.5);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 20px;\n }\n .map-overlay i {\n font-size: 4rem;\n color: var(--bs-primary);\n margin-bottom: 1rem;\n }\n .map-overlay p {\n color: var(--bs-primary);\n font-size: 1.1rem;\n max-width: 300px;\n margin: 0;\n }\n "}),PulsingMarker=e=>{let{text:t,isSelected:s,disabled:a}=e,[l,n]=__TURBOPACK__imported__module__622610__3.default.useState("white"),i=(0,__TURBOPACK__imported__module__250503__3.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.secondaryColor});return __TURBOPACK__imported__module__622610__3.default.useEffect(()=>{s&&i&&n((0,__TURBOPACK__imported__module__310440__.isLightColor)(i)?"black":"white")},[s,i]),(0,__TURBOPACK__imported__module__391166__4.jsxs)("div",{className:"map-marker",children:[(0,__TURBOPACK__imported__module__391166__4.jsx)("div",{className:"marker-pin ".concat(s?"selected":""," ").concat(a?"disabled":""),style:s?{color:l}:{},children:t}),(0,__TURBOPACK__imported__module__391166__4.jsx)("style",{children:generateStyles().pulsingMarkerStyles})]})};var __TURBOPACK__imported__module__995333__=__turbopack_context__.i(995333),__TURBOPACK__imported__module__476293__=__turbopack_context__.i(476293),__TURBOPACK__imported__module__121580__=__turbopack_context__.i(121580),__TURBOPACK__imported__module__264458__=__turbopack_context__.i(264458);w("AIzaSyDjRn2JBBbYwfOtfrKOj_5E6b07dMNkVHQ"),_("APPROXIMATE");let Location=e=>{let t=(0,__TURBOPACK__imported__module__250503__2.useDispatch)(),s=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.step),a=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.brand)?void 0:t.id});(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>{var t;return null==(t=e.brand)?void 0:t.brand});let l=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.event),n=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.locations),i=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.type),r=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.share),o=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.brandLoaded),c=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.userPublicLoaded),d=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.eventsLoaded),u=(0,__TURBOPACK__imported__module__250503__2.useSelector)(e=>e.request.donationTypesLoaded),{overlayStyles:m}=generateStyles(),[h,p]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),[x,f]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),[g,v]=(0,__TURBOPACK__imported__module__622610__2.useState)(""),[j,b]=(0,__TURBOPACK__imported__module__622610__2.useState)(null),[y,N]=(0,__TURBOPACK__imported__module__622610__2.useState)({lat:39.8283,lng:-98.5795}),[w,_]=(0,__TURBOPACK__imported__module__622610__2.useState)(null),[S,k]=(0,__TURBOPACK__imported__module__622610__2.useState)(null),{isLoaded:C}=(0,__TURBOPACK__imported__module__423625__.useJsApiLoader)({id:"google-map-script",googleMapsApiKey:"AIzaSyDjRn2JBBbYwfOtfrKOj_5E6b07dMNkVHQ"}),q=__TURBOPACK__imported__module__622610__2.default.useCallback(function(e){_(e)},[]),D=__TURBOPACK__imported__module__622610__2.default.useCallback(function(){_(null)},[]);(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>{if(!w)return;let e=[w.addListener("bounds_changed",()=>V(w)),w.addListener("zoom_changed",()=>V(w)),w.addListener("dragend",()=>V(w))];return V(w),()=>{e.forEach(e=>{window.google.maps.event.removeListener(e)})}},[w]);let E=(e,t)=>(0,__TURBOPACK__imported__module__375248__.getCollection)("locations",{where:[["brandID","==",a],["within"+e+"miles."+t.toString().trim().replaceAll(" ",""),"==",!0]]}),[T,M]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),[A,F]=(0,__TURBOPACK__imported__module__622610__2.useState)(null),[L,O]=(0,__TURBOPACK__imported__module__622610__2.useState)(null),[z,I]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),[P,B]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),R=500,W=e=>{if(!e)return 0;let t=e.getCenter(),s=e.getNorthEast();return(0,__TURBOPACK__imported__module__995333__.distanceBetween)([t.lat(),t.lng()],[s.lat(),s.lng()])},[G,U]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),K=__TURBOPACK__imported__module__622610__2.default.useCallback((0,__TURBOPACK__imported__module__476293__.default)(e=>{if(!e||!e.getBounds())return;let t=e.getBounds();t&&(I(W(t)<=R),O(t))},300),[]),V=e=>{K(e)},Z=(e,t)=>!t||"number"!=typeof t.lat||"number"!=typeof t.lng||isNaN(t.lat)||isNaN(t.lng)?(console.warn("Invalid center coordinates for sorting:",t),e):[...e].sort((e,s)=>{let a=et(e);if(a!==et(s))return a?1:-1;let l=parseFloat(e.lat),n=parseFloat(e.lng),i=parseFloat(s.lat),r=parseFloat(s.lng),o=!isNaN(l)&&!isNaN(n)&&"number"==typeof l&&"number"==typeof n,c=!isNaN(i)&&!isNaN(r)&&"number"==typeof i&&"number"==typeof r;return o||c?o?c?(0,__TURBOPACK__imported__module__995333__.distanceBetween)([t.lat,t.lng],[l,n])-(0,__TURBOPACK__imported__module__995333__.distanceBetween)([t.lat,t.lng],[i,r]):(console.debug("Location with invali
1d coordinates:",{id:s.id,name:s.location,lat:s.lat,lng:s.lng}),-1):(console.debug("Location with invalid coordinates:",{id:e.id,name:e.location,lat:e.lat,lng:e.lng}),1):(console.debug("Location with invalid coordinates:",{locationA:{id:e.id,name:e.location,lat:e.lat,lng:e.lng},locationB:{id:s.id,name:s.location,lat:s.lat,lng:s.lng}}),0)}),H=async()=>{U(!1),B(!0),b(null),I(!1);try{let e=w.getBounds();if(!e){console.error("No bounds available"),b("Map bounds not available");return}let n=e.getNorthEast(),i=e.getSouthWest();if(!n||!i){console.error("Invalid bounds corners"),b("Invalid map bounds");return}let r=i.lat(),o=i.lng(),c=n.lat(),d=n.lng(),u=(r+c)/2,m=(o+d)/2,h=(0,__TURBOPACK__imported__module__995333__.distanceBetween)([u,m],[c,d]),p=(0,__TURBOPACK__imported__module__995333__.geohashQueryBounds)([u,m],1e3*h).map(e=>{let[t,s]=e;return(0,__TURBOPACK__imported__module__375248__.getCollection)("locations",{where:[["brandID","==",a]],order:["geohash","asc"],start:[t],end:[s]})}),x=await Promise.all(p),f=[];if(x.forEach(e=>{e=__TURBOPACK__imported__module__667422__.default.methods.filterLocations(e,!1),f.push(...e)}),f=f.filter(t=>{let s=new window.google.maps.LatLng(t.lat,t.lng);return e.contains(s)}),l&&(f=l.locationIDs?f.filter(e=>Object.keys(l.locationIDs).includes(e.id)):[]),0===f.length)t((0,__TURBOPACK__imported__module__327012__1.setLocations)([]));
1else{let a={lat:(e.getNorthEast().lat()+e.getSouthWest().lat())/2,lng:(e.getNorthEast().lng()+e.getSouthWest().lng())/2},l=Z(f,a);t((0,__TURBOPACK__imported__module__327012__1.setZipCode)(zipToUse)),t((0,__TURBOPACK__imported__module__327012__1.setLocations)(l)),1===s&&t((0,__TURBOPACK__imported__module__327012__1.next)(1))}}catch(e){b(e.message),console.error("Error in searchVisibleArea:",e)}finally{B(!1)}},[Y,Q]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1),$={styles:n.length>0?mapStylesWithLabels:mapStyles,zoomControl:Y,mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,clickableIcons:!1,scrollwheel:Y,gestureHandling:Y?"cooperative":"none",minZoom:2,maxZoom:18,draggable:Y,disableDefaultUI:!Y},J=()=>{if(U(!0),b(null),M(!0),!navigator.geolocation){b("Geolocation is not supported by your browser"),M(!1);return}navigator.geolocation.getCurrentPosition(e=>{let{latitude:t,longitude:s}=e.coords;w&&(w.panTo({lat:t,lng:s}),w.setZoom(11)),new window.google.maps.Geocoder().geocode({location:{lat:t,lng:s}},(e,t)=>{if("OK"===t){if(e[0]){let t=e[0].address_components.find(e=>e.types.includes("postal_code"));if(t){let e=t.short_name;v(e),X(e)}else b("Could not find zip code for your location")}}else b("Could not determine your location");M(!1)})},e=>{let t;switch(e.code){case e.PERMISSION_DENIED:t="Location access is turned off. Please enable location services in your browser settings to use this feature.";break;case e.POSITION_UNAVAILABLE:t="Location information is unavailable at this time.";break;case e.TIMEOUT:t="The request to get your location timed out.";break;default:t="An unknown error occurred while trying to get your location."}b(t),M(!1)},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})},X=e=>{f(!0),b(null),F(null);try{U(!0);let a=e||g;if(a.length<5){b("Please enter a valid zip code."),f(!1);return}new window.google.maps.Geocoder().geocode({address:a},(e,n)=>{var i,r;if("OK"===n&&(null==(r=e[0])||null==(i=r.geometry)?void 0:i.location)){let n={lat:e[0].geometry.location.lat(),lng:e[0].geometry.location.lng()};w&&(w.panTo(n),w.setZoom(11));let i=a.toString().trim().replaceAll(" ","");v(i);let r=E("10",a);(0,__TURBOPACK__imported__module__187636__.from)(r).pipe((0,__TURBOPACK__imported__module__119202__.switchMap)(e=>(e=__TURBOPACK__imported__module__667422__.default.methods.filterLocations(e,!1)).length<2?(0,__TURBOPACK__imported__module__187636__.from)(E("15",a)):(0,__TURBOPACK__imported__module__897275__.of)(e))).pipe((0,__TURBOPACK__imported__module__119202__.switchMap)(e=>(e=__TURBOPACK__imported__module__667422__.default.methods.filterLocations(e,!1)).length<2?(0,__TURBOPACK__imported__module__187636__.from)(E("20",a)):(0,__TURBOPACK__imported__module__897275__.of)(e))).subscribe(e=>{if(e=__TURBOPACK__imported__module__667422__.default.methods.filterLocations(e,!1),l&&(e=l.locationIDs?e.filter(e=>Object.keys(l.locationIDs).includes(e.id)):[]),0==e.length)t((0,__TURBOPACK__imported__module__327012__1.setLocations)([]));else{let l=Z(e,n);t((0,__TURBOPACK__imported__module__327012__1.setZipCode)(a)),t((0,__TURBOPACK__imported__module__327012__1.setLocations)(l)),1===s&&t((0,__TURBOPACK__imported__module__327012__1.next)(1))}f(!1),Q(!0)})}else b("Invalid zip code"),f(!1)})}catch(e){b(e.message),f(!1)}},ee=e=>{p(e.id),t((0,__TURBOPACK__imported__module__327012__1.setLocation)(e)),t((0,__TURBOPACK__imported__module__327012__1.fetchBrand)()),t((0,__TURBOPACK__imported__module__327012__1.fetchUserPublic)()),"event_reservation"===i?r?(t((0,__TURBOPACK__imported__module__327012__1.setEvents)([])),t((0,__TURBOPACK__imported__module__327012__1.setEventsLoaded)(!0))):t((0,__TURBOPACK__imported__module__327012__1.fetchEvents)()):r?t((0,__TURBOPACK__imported__module__327012__1.setDonationTypesLoaded)(!0)):t((0,__TURBOPACK__imported__module__327012__1.fetchDonationTypes)())},et=e=>!(null==l?void 0:l.digital)&&("Non Participating"===e.status||"Temporarily Closed"===e.status||"Scheduled"===e.status),es=e=>"Temporarily Closed"===e.status?"This cafe is temporarily closed, please select another nearby cafe or check back to book with this location soon.":"Scheduled"===e.status?"This cafe is coming soon and will be ready to host you in the future!":"This location is not participating in the fundraiser program at this time.";(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>{o&&c&&(d||u)&&(t((0,__TURBOPACK__imported__module__327012__1.next)(1)),p(!1))},[o,c,d,u]),(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>{b(null),f(!1)},[]),(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>
1{if(w&&n.length>0&&G){let e=new window.google.maps.LatLngBounds;n.forEach(t=>{e.extend({lat:+t.lat,lng:+t.lng})}),w.fitBounds(e,{padding:{top:50,right:50,bottom:50,left:50}}),w.setOptions({gestureHandling:"cooperative",draggable:!0})}},[n,w,G]);let ea=(e,t)=>{k({...e,index:t+1})},el=()=>{k(null)};(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>{if(!w)return;let e=[w.addListener("drag",()=>V(w)),w.addListener("zoom_changed",()=>V(w))];return()=>{e.forEach(e=>{window.google.maps.event.removeListener(e)})}},[w]);let[en,ei]=(0,__TURBOPACK__imported__module__622610__2.useState)(!1);return(0,__TURBOPACK__imported__module__622610__2.useEffect)(()=>{en&&w&&setTimeout(()=>{if(window.google.maps.event.trigger(w,"resize"),n.length>0){let e=new window.google.maps.LatLngBounds;n.forEach(t=>{e.extend({lat:+t.lat,lng:+t.lng})}),w.fitBounds(e)}},100)},[en,w]),(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{children:C?(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__391166__3.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:__TURBOPACK__imported__module__121580__.header,children:(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"container-fluid px-0",children:(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("h4",{className:"mb-0 text-primary",children:"Find a Location Near You"}),(0,__TURBOPACK__imported__module__391166__3.jsx)("p",{className:"d-none d-md-block text-primary mt-0",children:(0,__TURBOPACK__imported__module__391166__3.jsx)("small",{children:"Enter a zip code or use your current location to find participating locations near you."})}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"d-block d-md-flex flex-wrap gap-3",children:[(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"d-none d-md-block flex-grow-1",children:[(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"input-group",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__385096__.Form.Control,{className:j?"is-invalid":"",id:"zip-code",value:g,onChange:e=>v(e.target.value),onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),X())},placeholder:"Enter zip code",maxLength:"7"}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("button",{id:"searchButton",onClick:()=>X(),disabled:x,className:"btn btn-primary",children:[x?(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{size:"sm",className:"me-2"}):(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-search me-2"}),"Search"]})]}),j&&(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"invalid-feedback d-block",id:"zip-code-feedback",children:j})]}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"d-block d-md-none",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__385096__.Form.Control,{className:j?"is-invalid":"",id:"zip-code",value:g,onChange:e=>v(e.target.value),onKeyPress:e=>{"Enter"===e.key&&(e.preventDefault(),X())},placeholder:"Enter zip code",maxLength:"7"})}),j&&(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"invalid-feedback d-block",id:"zip-code-feedback",children:j}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("button",{id:"searchButton",onClick:()=>X(),disabled:x,className:"btn btn-primary w-100 mt-2",children:[x?(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{size:"sm",className:"me-2"}):(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-search me-2"}),"Search"]})]}),(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"d-block d-md-none mt-3 mb-3",children:(0,__TURBOPACK__imported__module__391166__3.jsx)("center",{children:"OR"})}),(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__3.jsx)("button",{id:"nearMeButton",className:"btn btn-outline-primary w-100",onClick:J,disabled:T,children:T?(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__391166__3.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{size:"sm",className:"me-2"}),"Finding Location..."]}):(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__391166__3.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-crosshair me-2"}),"Use My Location"]})})})]})]})})})}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:__TURBOPACK__imported__module__121580__.locationContainer,children:[(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:(0,__TURBOPACK__imported__module__264458__.default)("col-12 ".concat(Y?"col-md-8":""," h-100 mb-3 mb-0 pe-md-0"),__TURBOPACK__imported__module__121580__.mapWrapper,{[__TURBOPACK__imported__module__121580__.showMobileMap]:en}),children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("button",{className:"btn btn-primary text-white ".concat(__TURBOPACK__imported__module__121580__.closeButton," shadow"),onClick:()=>ei(!1),children:(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-x-lg"})}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:__TURBOPACK__imported__module__121580__.mapContainer,children:[(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__423
1625__.GoogleMap,{mapContainerStyle:{width:"100%",height:"100%"},center:y,zoom:5,options:$,onUnmount:D,onLoad:q,children:[n.map((e,t)=>(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__423625__.OverlayView,{position:{lat:+e.lat,lng:+e.lng},mapPaneName:__TURBOPACK__imported__module__423625__.OverlayView.OVERLAY_MOUSE_TARGET,children:(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{onClick:()=>!et(e)&&k({...e,index:t+1}),children:(0,__TURBOPACK__imported__module__391166__3.jsx)(PulsingMarker,{text:(t+1).toString(),isSelected:(null==S?void 0:S.id)===e.id,disabled:et(e)})})},t)),S&&(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__423625__.InfoWindowF,{position:{lat:+S.lat,lng:+S.lng},onCloseClick:()=>k(null),options:{pixelOffset:new window.google.maps.Size(0,-20)},children:(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"bg-primary",style:{color:"white",padding:"20px",borderRadius:"8px",boxShadow:"0 2px 7px 1px rgba(0,0,0,0.3)",position:"relative"},children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("style",{children:"\n .gm-style .gm-style-iw-c {\n padding: 0 !important;\n background: transparent !important;\n box-shadow: none !important;\n border-radius: 5px !important;\n max-width: 100%;\n }\n .gm-style .gm-style-iw-d {\n overflow: visible !important;\n background: transparent !important;\n }\n .gm-style .gm-style-iw-tc::after{\n background: var(--bs-primary) !important;\n }\n "}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("h5",{style:{color:"white",marginBottom:"10px",fontSize:"18px"},children:S.location}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("p",{style:{color:"white",marginBottom:"15px",fontSize:"14px",opacity:.8},children:[S.address1,(0,__TURBOPACK__imported__module__391166__3.jsx)("br",{}),S.city,", ",S.state," ",S.zip]}),(0,__TURBOPACK__imported__module__391166__3.jsx)("button",{onClick:()=>ee(S),style:{border:"none",padding:"8px 16px",borderRadius:"4px",width:"100%",color:"var(--bs-primary)",cursor:"pointer",fontWeight:"500"},className:"bg-light",children:"Select"})]})]})})]}),!Y&&(!n||0===n.length)&&(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"map-overlay",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("style",{children:m}),(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-search"}),(0,__TURBOPACK__imported__module__391166__3.jsx)("p",{children:(0,__TURBOPACK__imported__module__391166__3.jsx)("strong",{children:"Please search by zip code or use the find button to show participating locations"})})]}),z&&(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:__TURBOPACK__imported__module__121580__.searchAreaButton,children:(0,__TURBOPACK__imported__module__391166__3.jsx)("button",{onClick:H,disabled:P,className:"btn btn-primary shadow",children:P?(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__391166__3.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{size:"sm",className:"me-2"}),"Searching Area..."]}):(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__391166__3.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-search me-2"}),"Search This Area"]})})})]})]}),Y&&(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"col-12 col-md-4 h-100 ps-md-0",children:(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:__TURBOPACK__imported__module__121580__.locationList,children:x||P?(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"text-center",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{animation:"border",role:"status",variant:"primary"}),(0,__TURBOPACK__imported__module__391166__3.jsx)("h6",{children:"Searching for locations..."})]}):n.length>0?null==n?void 0:n.map((e,t)=>(0,__TURBOPACK__imported__module__391166__3.jsxs)(__TURBOPACK__imported__module__165009__.default,{disabled:h||et(e),className:"text-start w-100 position-relative mb-2 text-center",variant:"outline-primary",onClick:()=>ee(e),onMouseEnter:()=>ea(e,t),onMouseLeave:el,children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("span",{className:"w-100",children:(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"d-flex align-items-top gap-2 pt-2",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:__TURBOPACK__imported__module__121580__.locationNumber,children:t+1}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"text-start",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("strong",{className:"h5",children:e.location}),(0,__TURBOPACK__imported__module__391166__3.jsx)("br",{}),(0,__TURBOPACK__imported__module__391166__3.jsxs)("small",{style:{lineHeight:"1em"},children:[e.address1,(0,__TURBOPACK__imported__module__391166__3.jsx)("br",{}),e.city,", ",e.state," ",e.zip]})]})]})}),h===e.id&&(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{className:"mt-4 me-4 position-absolute end-0 top-0"}),et(e)&&(0,__TURBOPACK__imported__module__391166__3.jsx)("small",{className:"alert alert-info d-block mt-2 mb-1",children:es(e)})]},e.id)):(0,__TURBOPACK__imported__module__391166__3.jsxs)("div",{className:"text-center text-danger",children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("h1",{children:(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-exclamation-triangle"})}),(0,__TURBOPACK__imported__module__391166__3.jsx)("h6",{children:"No participating locations foun
1d in this area"})]})})}),Y&&(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:__TURBOPACK__imported__module__121580__.mobileMapButton,children:(0,__TURBOPACK__imported__module__391166__3.jsxs)("button",{className:"btn btn-primary",onClick:()=>ei(!0),children:[(0,__TURBOPACK__imported__module__391166__3.jsx)("i",{className:"bi bi-map me-2"}),"View Map"]})})]})]}):(0,__TURBOPACK__imported__module__391166__3.jsx)("div",{className:"w-100 d-flex align-items-center justify-content-center mt-4",children:(0,__TURBOPACK__imported__module__391166__3.jsx)(__TURBOPACK__imported__module__464585__.Spinner,{animation:"border",role:"status",variant:"secondary"})})})},__TURBOPACK__default__export__1=Location;var __TURBOPACK__imported__module__391166__5=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__4=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__857323__=__turbopack_context__.i(857323),__TURBOPACK__imported__module__79797__=__turbopack_context__.i(79797),__TURBOPACK__imported__module__464585__1=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__250503__4=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__2=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__391166__6=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__5=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__5=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__3=__TURBOPACK__imported__module__327012__;let Back=()=>{let e=(0,__TURBOPACK__imported__module__250503__5.useDispatch)();return(0,__TURBOPACK__imported__module__391166__6.jsx)("p",{className:"d-none d-md-block mt-4 fw-bold",children:(0,__TURBOPACK__imported__module__391166__6.jsx)("a",{onClick:()=>e((0,__TURBOPACK__imported__module__327012__3.back)()),className:"text-primary",children:(0,__TURBOPACK__imported__module__391166__6.jsxs)("small",{children:[(0,__TURBOPACK__imported__module__391166__6.jsx)("span",{className:"bi-arrow-left"})," BACK"]})})})},__TURBOPACK__default__export__2=Back;var __TURBOPACK__imported__module__755742__=__turbopack_context__.i(755742),__TURBOPACK__imported__module__951739__=__turbopack_context__.i(951739),__TURBOPACK__imported__module__667422__1=__TURBOPACK__imported__module__667422__,__TURBOPACK__imported__module__493549__=__turbopack_context__.i(493549),__TURBOPACK__imported__module__310440__1=__TURBOPACK__imported__module__310440__,__TURBOPACK__imported__module__751122__=__turbopack_context__.i(751122);let EventTypes=e=>{let t=(0,__TURBOPACK__imported__module__250503__4.useDispatch)(),s=(0,__TURBOPACK__imported__module__250503__4.useSelector)(e=>e.request.events),a=(0,__TURBOPACK__imported__module__250503__4.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.secondaryColor}),[l,n]=(0,__TURBOPACK__imported__module__622610__4.useState)(!1),[i,r]=(0,__TURBOPACK__imported__module__622610__4.useState)("#FFFFFF");(0,__TURBOPACK__imported__module__622610__4.useEffect)(()=>{if(a){let e=(0,__TURBOPACK__imported__module__310440__1.isLightColor)(a)?"#000000":"#FFFFFF";r(e),document.documentElement.style.setProperty("--contrast-color",e)}},[a]);let o=e=>{t((0,__TURBOPACK__imported__module__327012__2.setEvent)(e)),t((0,__TURBOPACK__imported__module__327012__2.next)(1))},[c,d]=(0,__TURBOPACK__imported__module__622610__4.useState)((0,__TURBOPACK__imported__module__493549__.default)().toDate());return(0,__TURBOPACK__imported__module__622610__4.useEffect)(()=>{window.scrollTo({top:"0",behavior:"smooth"})},[]),(0,__TURBOPACK__imported__module__391166__5.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__751122__.containerFluid),children:s.length>0?(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__391166__5.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__5.jsx)("h4",{className:"mt-4 text-primary",children:"Choose an Event Type"}),(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__imported__module__857323__.Accordion,{defaultActiveKey:1==s.length?0:null,className:__TURBOPACK__imported__module__751122__.accordionEventTypes,children:s&&s.length>0&&s.map((e,t)=>(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__857323__.Accordion.Item,{eventKey:t,children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__857323__.Accordion.Button,{className:"d-block",children:[(0,__TURBOPACK__imported__module__391166__5.jsx)("strong",{className:"h5 m-0 d-block w-100",children:e.name}),(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"d-block fs-7 fw-light w-100",children:e.multiDay?(e.allowLess?"Up to ":"")+e.dayLength.toString()+" days":"Single day"})]}),(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__imported__module__857323__.Accordion.Collapse,{className:"collapse show",children:(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__857323__.Accordion.Body,{children:[e.digital&&(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"d-flex justify-content-start gap-2 ".concat(__TURBOPACK__imported__module__751122__.payout),children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{children:["For each ",(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:["$",e.productPrice]})," ",e.productType.toLowerCase()]}),(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:["Dollars"===e.givebackType?"$":"",e.givebackAmount]}),"Dollars"!==e.givebackType?"%":""," goes back to your organization."]})]}),!e.digital&&e.payout&&(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"d-flex justify-content-start gap-2 ".concat(__TURBOPACK__imported__module__751122__.payout),children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:[e.payout,"%"]})," Payout","Total Sales"===e.payoutType?" on Total Sales":""]}),(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__5.jsx)("strong",{children:e.payoutTimeframe})," Days to Pay"]})]}),(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:__TURBOPACK__imported__module__751122__.eventDetails,children:[e.multiDay?(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__391166__5.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"m-0 text-start",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("small",{children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:[e.allowLess?"Up to ":"",e.dayLength," days starting on"]})})}),(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"m-0 text-start",children:e.startDayOfWeek.map((e,t)=>(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"badge me-1",style:{backgroundColor:"var(--bs-primary)"},variant:null,children:(0,__TURBOPACK__imported__module__391166__5.jsx)("small",{children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:[e,"s"]}
1)})},"repeatDay".concat(t)))})]}):(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__391166__5.Fragment,{children:[e.starts&&(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"m-0 text-start",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("small",{children:e.allDay?(0,__TURBOPACK__imported__module__391166__5.jsx)("strong",{children:"All Day"}):(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:[__TURBOPACK__imported__module__667422__1.default.methods.convertDateTZ((0,__TURBOPACK__imported__module__493549__.default)(e.starts),e.timezone).format("h:mm a")," ","to"," ",__TURBOPACK__imported__module__667422__1.default.methods.convertDateTZ((0,__TURBOPACK__imported__module__493549__.default)(e.ends),e.timezone).format("h:mm a")]})})}),e.sortedRepeatDays&&(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"m-0 text-start",children:e.sortedRepeatDays.map((e,t)=>(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"badge me-1",style:{backgroundColor:"var(--bs-primary)"},variant:null,children:(0,__TURBOPACK__imported__module__391166__5.jsx)("small",{children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("strong",{children:[e,"s"]})})},"repeatDay".concat(t)))})]}),e.description&&e.description.length>0&&(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__5.jsx)("h5",{className:__TURBOPACK__imported__module__751122__.subTitle,children:"Description"}),(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"mt-2",dangerouslySetInnerHTML:{__html:e.description}})]}),e.rules&&e.rules.length>0&&(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__5.jsx)("h5",{className:__TURBOPACK__imported__module__751122__.subTitle,children:"Rules & Restrictions"}),e.rules.map((e,t)=>(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:__TURBOPACK__imported__module__751122__.rule,children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("span",{children:[t+1,". ",e]})},"rule".concat(t)))]}),(0,__TURBOPACK__imported__module__391166__5.jsx)("div",{className:"m-0 mt-4 text-end",children:(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__imported__module__79797__.Button,{disabled:l,onClick:()=>o(e),style:{backgroundColor:"var(--bs-primary)"},variant:null,className:"text-white w-100",children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("span",{children:["Continue"," ",l&&(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__imported__module__464585__1.Spinner,{variant:"light",className:"ms-2"})]})})})]})]})})]},t))})]}):(0,__TURBOPACK__imported__module__391166__5.jsxs)(__TURBOPACK__imported__module__391166__5.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__5.jsx)("h4",{className:"mt-4 mb-4 text-primary",children:"Choose a Preferred Day"}),(0,__TURBOPACK__imported__module__391166__5.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__951739__.calendarContainer),children:(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"onboarding",children:[(0,__TURBOPACK__imported__module__391166__5.jsxs)("div",{className:"d-flex justify-content-between align-items-center gap-5 mb-4",children:[(0,__TURBOPACK__imported__module__493549__.default)(c).isAfter((0,__TURBOPACK__imported__module__493549__.default)())?(0,__TURBOPACK__imported__module__391166__5.jsx)("button",{onClick:()=>d((0,__TURBOPACK__imported__module__493549__.default)(c).subtract(1,"month").toDate()),className:"btn btn-light text-primary rounded-circle previous-month",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"bi bi-chevron-left"})}):(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{style:{width:"42px"},children:" "}),(0,__TURBOPACK__imported__module__391166__5.jsx)("h4",{className:"m-0 text-dark text-center",style:{width:"250px",maxWidth:"100%"},children:(0,__TURBOPACK__imported__module__493549__.default)(c).format("MMMM, YYYY")}),(0,__TURBOPACK__imported__module__391166__5.jsx)("button",{onClick:()=>d((0,__TURBOPACK__imported__module__493549__.default)(c).add(1,"month").toDate()),className:"btn btn-light text-primary rounded-circle next-month",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"bi bi-chevron-right"})})]}),(0,__TURBOPACK__imported__module__391166__5.jsx)("p",{className:"bg-light rounded p-2 text-center",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("strong",{children:"Choose a day."})}),(0,__TURBOPACK__imported__module__391166__5.jsx)("div",{className:"d-flex justify-content-between align-items-center gap-5 mb-4",children:(0,__TURBOPACK__imported__module__391166__5.jsx)(__TURBOPACK__imported__module__755742__.default,{calendarType:"gregory",activeStartDate:c,minDate:(0,__TURBOPACK__imported__module__493549__.default)().add(7,"day").toDate(),showNavigation:!1,prev2Label:null,next2Label:null,onChange:e=>{t((0,__TURBOPACK__imported__module__327012__2.setPreferredDay)((0,__TURBOPACK__imported__module__493549__.default)(e).unix())),t((0,__TURBOPACK__imported__module__327012__2.next)(1))},tileContent:e=>{let{date:t}=e;return(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{className:"mt-3 mb-3 mx-auto btn btn-light text-primary rounded-circle d-flex justify-content-center align-items-center",children:(0,__TURBOPACK__imported__module__391166__5.jsx)("span",{children:t.getDate()})})}})})]})})]})})},__TURBOPACK__default__export__3=EventTypes;var __TURBOPACK__imported__module__391166__7=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__6=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__755742__1=__TURBOPACK__imported__module__755742__,__TURBOPACK__imported__module__464585__2=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__251312__=__turbopack_context__.i(251312),__TURBOPACK__imported__module__250503__6=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__4=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__667422__2=__TURBOPACK__imported__module__667422__,__TURBOPACK__imported__module__951739__1=__TURBOPACK__imported__module__951739__;
1let CalendarPicker=()=>{let e=(0,__TURBOPACK__imported__module__250503__6.useDispatch)(),t=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.event),s=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.location),a=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.brand),l=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.userPublic),n=null==l?void 0:l.removedDays,i=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.userOrgsLoaded),r=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.user),o=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.orgs),c=(0,__TURBOPACK__imported__module__250503__6.useSelector)(e=>e.request.locationLoaded),d=(null==t?void 0:t.multiDay)||!1,u=(null==t?void 0:t.digital)||!1,m=(null==t?void 0:t.startDayOfWeek)||[],h=Object.keys((null==t?void 0:t.repeatDays)||{}),p={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},x=(null==t?void 0:t.dayLength)||0,f=null==t?void 0:t.allowLess,g=(0,__TURBOPACK__imported__module__251312__.default)().add((null==t?void 0:t.cutoffDays)||14,"days"),[v,j]=(0,__TURBOPACK__imported__module__622610__6.useState)(!1),[b,y]=(0,__TURBOPACK__imported__module__622610__6.useState)(!1),[N,w]=(0,__TURBOPACK__imported__module__622610__6.useState)(x),[_,S]=(0,__TURBOPACK__imported__module__622610__6.useState)((0,__TURBOPACK__imported__module__251312__.default)().toDate()),[k,C]=(0,__TURBOPACK__imported__module__622610__6.useState)((null==t?void 0:t.multiDay)?[null,null]:null),[q,D]=(0,__TURBOPACK__imported__module__622610__6.useState)((0,__TURBOPACK__imported__module__251312__.default)().unix()),[E,T]=(0,__TURBOPACK__imported__module__622610__6.useState)(!1),[M,A]=(0,__TURBOPACK__imported__module__622610__6.useState)((0,__TURBOPACK__imported__module__251312__.default)().add(12,"months").toDate()),[F,L]=(0,__TURBOPACK__imported__module__622610__6.useState)(null),[O,z]=(0,__TURBOPACK__imported__module__622610__6.useState)([]),I=e=>{let l=(0,__TURBOPACK__imported__module__251312__.default)(e.date),i=l.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat);if(d){let t=k[0]?(0,__TURBOPACK__imported__module__251312__.default)(k[0]):null,r=k[1]?(0,__TURBOPACK__imported__module__251312__.default)(k[1]):null,o=k.filter(e=>e).length>0,c=2===k.filter(e=>e).length;if(u){if(c){if(l.isSame(t,"d")||l.isSame(r,"d"))return!1;if(!(l.isAfter(t)&&l.isBefore(r)))return!0}else if(!m.includes((0,__TURBOPACK__imported__module__251312__.default)(e.date).format("dddd")))return!0}else{if(!h.includes(l.format("dddd"))||(null==s?void 0:s.schedule)&&i in(null==s?void 0:s.schedule)||(null==a?void 0:a.removedDays)&&i in(null==a?void 0:a.removedDays)||n&&i in n)return!0;if(f){if(c)if(l.isBefore(t)||l.isAfter(r))return!0;else return!1;if(o&&!O.includes(l.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat))||!o&&!m.includes(l.format("dddd")))return!0}else if(c){if(l.isSame(t,"d")||l.isSame(r,"d"))return!1;if(!(l.isAfter(t)&&l.isBefore(r)))return!0}else if(o)l.isSame(t,"d");else{if(!m.includes(l.format("dddd")))return!0;let e=Array.from(Array(x).keys()).map(e=>l.clone().add(e,"d").format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat));if((e=e.filter(e=>{let t=(0,__TURBOPACK__imported__module__251312__.default)(e,__TURBOPACK__imported__module__667422__2.default.constants.dayformat);return(null==s||!s.schedule||!(e in(null==s?void 0:s.schedule)))&&(null==a||!a.removedDays||!(e in(null==a?void 0:a.removedDays)))&&(!n||!(e in n))&&!!h.includes(t.format("dddd"))})).length<x)return!0}}}else if(!h.includes(l.format("dddd"))||(null==s?void 0:s.schedule)&&i in(null==s?void 0:s.schedule)||(null==t?void 0:t.removedDays)&&(null==t?void 0:t.removedDays[i])&&(null==t?void 0:t.removedDays[i][null==s?void 0:s.id])||(null==a?void 0:a.removedDays)&&i in(null==a?void 0:a.removedDays)||n&&i in n||(0,__TURBOPACK__imported__module__251312__.default)().isAfter((0,__TURBOPACK__imported__module__251312__.default)(i,__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)))return!0;return!1};(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>
1{if(d){if(!k[0]||k[0]&&k[1])return;let e=(0,__TURBOPACK__imported__module__251312__.default)(k[0]),t=Array.from(Array(e.clone().add(x,"d").diff(e,"d")).keys()),l=(t=(t=t.map(t=>Object.assign({},{index:t,key:e.clone().add(t,"d").format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)}))).filter(e=>{let t=(0,__TURBOPACK__imported__module__251312__.default)(e.key,__TURBOPACK__imported__module__667422__2.default.constants.dayformat);return(!!u||null==s||!s.schedule||!(e.key in(null==s?void 0:s.schedule)))&&(!!u||null==a||!a.removedDays||!(e.key in(null==a?void 0:a.removedDays)))&&(!!u||!n||!(e.key in n))&&(!!u||!!h.includes(t.format("dddd")))&&!0}))[0].index;0!==(t=t.filter(e=>e.index===l+1&&(l++,!0)).map(e=>e.key)).length||k[1]||C([k[0],k[0]]);let i=t.length+1;w(i),t.unshift(e.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)),z(t),(u||!f)&&e&&!k[1]&&(C([e,(0,__TURBOPACK__imported__module__251312__.default)(k[0]).clone().add(i-1,"d").toDate()]),T(!0))}else{if(!k)return;let s=(0,__TURBOPACK__imported__module__251312__.default)(k);e((0,__TURBOPACK__imported__module__327012__4.setDate)({day:s.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat),start:"".concat(s.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)," ").concat((0,__TURBOPACK__imported__module__251312__.default)(t.starts).format("HH:mm")),end:"".concat(s.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)," ").concat((0,__TURBOPACK__imported__module__251312__.default)(t.ends).format("HH:mm")),shortDate:s.format("ddd"),longDate:s.format("MMM D"),month:s.format("MMMM"),dayOfWeek:s.format("dddd"),date:s.toDate()})),B();return}D((0,__TURBOPACK__imported__module__251312__.default)().unix())},[k]),(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>{E&&T(!1)},[E]);let P=()=>{let s=(0,__TURBOPACK__imported__module__251312__.default)(k[0]),a=(0,__TURBOPACK__imported__module__251312__.default)(k[1]),l=[];for(let e=0;e<a.diff(s,"d")+1;e++)l.push(s.clone().add("d",e).format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat));e((0,__TURBOPACK__imported__module__327012__4.setDate)({start:"".concat(s.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)," ").concat((0,__TURBOPACK__imported__module__251312__.default)(t.starts).format("HH:mm")),end:"".concat(a.format(__TURBOPACK__imported__module__667422__2.default.constants.dayFormat)," ").concat((0,__TURBOPACK__imported__module__251312__.default)(t.ends).format("HH:mm")),longDate:"".concat(s.format("ddd, MMM D")," - ").concat(a.format("ddd, MMM D")),dates:l})),B()},B=()=>{r.id?(j(!0),y(!0),e((0,__TURBOPACK__imported__module__327012__4.fetchUserOrgs)(r.parentUserID?r.parentUserID:r.id))):e((0,__TURBOPACK__imported__module__327012__4.next)(1))};(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>{i&&b&&(0==o.length&&e((0,__TURBOPACK__imported__module__327012__4.setOrg)({})),j(!1),e((0,__TURBOPACK__imported__module__327012__4.next)(1)))},[i,b]),(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>{let e=new Date,s=g;if(null==t?void 0:t.perpetual)e=(0,__TURBOPACK__imported__module__251312__.default)().add(365,"d").toDate();else{var a,l;let n=(0,__TURBOPACK__imported__module__251312__.default)(null==t||null==(a=t.duration)?void 0:a.ends,__TURBOPACK__imported__module__667422__2.default.constants.dayFormat),i=(0,__TURBOPACK__imported__module__251312__.default)(null==t||null==(l=t.duration)?void 0:l.starts,__TURBOPACK__imported__module__667422__2.default.constants.dayFormat);e=(0,__TURBOPACK__imported__module__251312__.default)().isAfter(n)?new Date:n.toDate(),s.isBefore(i)&&(s=i)}if((null==t?void 0:t.multiDay)&&k[1]){let t=m.map(e=>p[e]).sort((e,t)=>e-t),s=(0,__TURBOPACK__imported__module__251312__.default)(e).day(),a=t.filter(e=>e<=s).pop();e=a?(0,__TURBOPACK__imported__module__251312__.default)(e).day(a).add(x-1,"d").toDate():(0,__TURBOPACK__imported__module__251312__.default)(e).subtract(1,"w").day(m.map(e=>p[e]).pop()).add(x-1,"d").toDate()}A(e),L(s)},[k]);let R=e=>Array.from({length:e.daysInMonth()},(t,s)=>e.clone().startOf("month").add(s,"days")).filter(e=>e.isAfter(F)).filter(e=>!I({date:e.toDate()})).length;return(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>
1{if(F){let e=(0,__TURBOPACK__imported__module__251312__.default)(_),t=R(e);for(;0===t&&(0,__TURBOPACK__imported__module__251312__.default)(M).isAfter(e);)t=R(e.add(1,"month"));S(e.toDate())}},[F]),(0,__TURBOPACK__imported__module__622610__6.useEffect)(()=>{e((0,__TURBOPACK__imported__module__327012__4.fetchLocation)()),window.scrollTo({top:"0",behavior:"smooth"})},[]),(0,__TURBOPACK__imported__module__391166__7.jsxs)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__951739__1.containerFluid),children:[(0,__TURBOPACK__imported__module__391166__7.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__7.jsx)("h4",{className:"mt-4 text-primary",children:"Choose a Day"}),(0,__TURBOPACK__imported__module__391166__7.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__951739__1.calendarContainer),children:c&&F?(0,__TURBOPACK__imported__module__391166__7.jsxs)("div",{className:"onboarding",children:[(0,__TURBOPACK__imported__module__391166__7.jsxs)("div",{className:"d-flex justify-content-between align-items-center gap-5 mb-4",children:[(0,__TURBOPACK__imported__module__251312__.default)(_).isAfter((0,__TURBOPACK__imported__module__251312__.default)())?(0,__TURBOPACK__imported__module__391166__7.jsx)("button",{onClick:()=>S((0,__TURBOPACK__imported__module__251312__.default)(_).subtract(1,"month").toDate()),className:"btn btn-light text-primary rounded-circle previous-month",children:(0,__TURBOPACK__imported__module__391166__7.jsx)("span",{className:"bi bi-chevron-left"})}):(0,__TURBOPACK__imported__module__391166__7.jsx)("span",{style:{width:"42px"},children:" "}),(0,__TURBOPACK__imported__module__391166__7.jsx)("h4",{className:"m-0 text-dark text-center",style:{width:"250px",maxWidth:"100%"},children:(0,__TURBOPACK__imported__module__251312__.default)(_).format("MMMM, YYYY")}),(0,__TURBOPACK__imported__module__391166__7.jsx)("button",{onClick:()=>S((0,__TURBOPACK__imported__module__251312__.default)(_).add(1,"month").toDate()),className:"btn btn-light text-primary rounded-circle next-month",children:(0,__TURBOPACK__imported__module__391166__7.jsx)("span",{className:"bi bi-chevron-right"})})]}),d&&!k[0]&&(0,__TURBOPACK__imported__module__391166__7.jsx)("p",{className:"bg-light rounded p-2 text-center",children:(0,__TURBOPACK__imported__module__391166__7.jsx)("strong",{children:"Choose your start day."})}),!d&&(0,__TURBOPACK__imported__module__391166__7.jsx)("p",{className:"bg-light rounded p-2 text-center",children:(0,__TURBOPACK__imported__module__391166__7.jsx)("strong",{children:"Choose a day."})}),d&&k[0]&&f&&!k[1]&&(0,__TURBOPACK__imported__module__391166__7.jsx)("p",{className:"bg-light rounded p-2 text-center",children:(0,__TURBOPACK__imported__module__391166__7.jsxs)("strong",{children:["Choose up to ",N," consecutive days."]})}),!E&&(0,__TURBOPACK__imported__module__391166__7.jsx)(__TURBOPACK__imported__module__755742__1.default,{calendarType:"gregory",onChange:C,allowPartialRange:!0,activeStartDate:_,showNavigation:!1,prev2Label:null,next2Label:null,selectRange:d,goToRangeStartOnSelect:!1,tileDisabled:I,value:k,tileContent:e=>{let{date:t}=e;return(0,__TURBOPACK__imported__module__391166__7.jsx)("span",{className:"mt-3 mb-3 mx-auto btn btn-light text-primary rounded-circle d-flex justify-content-center align-items-center",children:(0,__TURBOPACK__imported__module__391166__7.jsx)("span",{children:t.getDate()})})},minDate:F.toDate(),maxDate:M},!u&&f?"react-calendar":q.toString()),d&&k[0]&&k[1]&&(0,__TURBOPACK__imported__module__391166__7.jsxs)("button",{disabled:v,onClick:P,className:"d-block w-100 mt-5 btn btn-lg btn-primary",children:[v&&(0,__TURBOPACK__imported__module__391166__7.jsx)(__TURBOPACK__imported__module__464585__2.Spinner,{size:"sm",className:"me-2"}),"Continue with ",(0,__TURBOPACK__imported__module__391166__7.jsx)("br",{className:"d-block d-md-none"}),(0,__TURBOPACK__imported__module__391166__7.jsx)("strong",{children:(0,__TURBOPACK__imported__module__251312__.default)(k[0]).format("ll")})," to ",(0,__TURBOPACK__imported__module__391166__7.jsx)("strong",{children:(0,__TURBOPACK__imported__module__251312__.default)(k[1]).format("ll")})]}),d&&k[0]&&(0,__TURBOPACK__imported__module__391166__7.jsx)("button",{onClick:()=>{C([null,null]),T(!0)},className:"d-block w-100 mt-2 btn btn-lg btn-outline-primary",children:"Clear"})]}):(0,__TURBOPACK__imported__module__391166__7.jsx)(__TURBOPACK__imported__module__464585__2.Spinner,{})})]})},__TURBOPACK__default__export__4=CalendarPicker;var __TURBOPACK__imported__module__391166__8=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__7=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__354926__1=__TURBOPACK__imported__module__354926__,__TURBOPACK__imported__module__250503__7=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__144831__=__turbopack_context__.i(144831),__TURBOPACK__imported__module__327012__5=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__79797__1=__TURBOPACK__imported__module__79797__,__TURBOPACK__imported__module__464585__3=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__313372__=__turbopack_context__.i(313372),__TURBOPACK__imported__module__363485__=__turbopack_context__.i(363485),__TURBOPACK__imported__module__165009__1=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__949783__=__turbopack_context__.i(949783),__TURBOPACK__imported__module__361805__=__turbopack_context__.i(361805),__TURBOPACK__imported__module__990767__=__turbopack_context__.i(990767),__TURBOPACK__imported__module__192824__=__turbopack_context__.i(192824);let Account=e=>{let t=(0,__TURBOPACK__imported__module__354926__1.useAuth)(),s=(0,__TURBOPACK__imported__module__250503__7.useDispatch)(),a=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.primaryColor}),l=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.site)?void 0:t.termsUrl}),n=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.request.userOrgsLoaded),i=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.request.userPublic),r=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.account.emailVerified),o=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.account.processing),c=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.account.accountEmailError),d=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>e.request.orgs),u=(0,__TURBOPACK__imported__module__250503__7.useSelector)(e=>{var t,s;return null==(s=e.brand)||null==(t=s.brand)?void 0:t.brand}),[m,h]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[p,x]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[f,g]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[v,j]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[b,y]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[N,w]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[_,S]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[k,C]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[q,D]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[E,T]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[M,A]=(0,__TURBOPACK__imported__module__622610__7.useState)(null),[F,L]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[O,z]=(0,__TURBOPACK__imported__module__622610__7.useState)(""),[I,P]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[B,R]=(0,__TURBOPACK__imported__module__622610__7.useState)(!0),[W,G]=(0,__TURBOPACK__imported__module__622610__7.useState)(!1),[U,K]=(0,__TURBOPACK__imported__module__622610__7.useState)(null),V=async()=>{h(!0);let e={emailLogin:F,passwordLogin:O},s=await (0,__TURBOPACK__imported__module__363485__.validateLogin)(e);if(s){A(s),h(!1);return}A(null);try{await t.logIn(F,O)}catch(e){A({passwordLogin:e.message}),h(!1)}},Z=async e=>{h(!0),A(null);try{await t.socialLogin(e)}catch(e){A({social:e.message}),h(!1)}},H=()=>{j(""),y(""),S(""),C(""),D(""),T(""),w(!1),s((0,__TURBOPACK__imported__module__144831__.setEmailVerified)(!1))},Y=async e=>{h(!0);let s={name:_,email:v,phone:k,password:q},a=await (0,__TURBOPACK__imported__module__313372__.validateAccount)(s);if(q!==E&&(a||(a={}),a.confirmPassword="Passwords must match."),a){A(a),h(!1);return}A(null);try{await t.addAccount({email:v,password:q,name:_,phone:k,permissions:{fundraiser:!0},smsOptIn:B,optInMarketing:W})}catch(e){A({general:e.message}),h(!1),H()}},Q=()=>{let e=(k||"").trim();return!U.includes("phone")||!!e||(A({phone:"Phone is required."}),!1)},$=async()=>
1{if(h(!0),A(null),0==v.length){A({email:"Email is required field."}),h(!1);return}if(v!==b){A({confirmEmail:"Emails must match."}),h(!1);return}s((0,__TURBOPACK__imported__module__144831__.verifyEmail)(v))},J=async()=>{if(h(!0),A(null),Q())try{let e={};(null==U?void 0:U.includes("email"))&&(e.email=v),(null==U?void 0:U.includes("phone"))&&(e.phone=k),await t.completeProfile(e)}catch(e){A({general:e.message}),h(!1)}else h(!1)};return(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{n&&(0==d.length&&s((0,__TURBOPACK__imported__module__327012__5.setOrg)({})),s((0,__TURBOPACK__imported__module__327012__5.next)(1)),h(!1),K(null))},[n]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{(null==t?void 0:t.error)&&A(t.error)},[null==t?void 0:t.error]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{if(null==t?void 0:t.user){var e,a,l,n,i;let r=[];t.user.email&&(null==(e=t.user)?void 0:e.email)!==""&&t.user.phone&&(null==(a=t.user)?void 0:a.phone)!==""?s((0,__TURBOPACK__imported__module__327012__5.fetchUserOrgs)((null==t||null==(l=t.user)?void 0:l.parentUserID)?null==t||null==(n=t.user)?void 0:n.parentUserID:null==t||null==(i=t.user)?void 0:i.uid)):(t.user.email&&""!==t.user.email||r.push("email"),t.user.phone&&""!==t.user.phone||r.push("phone"),K(r),h(!1))}else s((0,__TURBOPACK__imported__module__327012__5.setOrgs)([]))},[null==t?void 0:t.user]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{(null==t?void 0:t.error)&&h(!1)},[null==t?void 0:t.error]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{o?w(!1):(c||w(!0),h(!1))},[o]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>{(null==M?void 0:M.email)&&w(!1)},[null==M?void 0:M.email]),(0,__TURBOPACK__imported__module__622610__7.useEffect)(()=>(null==t||t.setLoggingIn(!1),A(null),s((0,__TURBOPACK__imported__module__144831__.setAccountEmailError)("")),s((0,__TURBOPACK__imported__module__144831__.setEmailVerified)(!1)),w(!1),()=>{w(!1)}),[]),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__.containerFluid),children:[(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__default__export__2,{}),(null==U?void 0:U.length)?(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__391166__8.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("h4",{className:"mt-4 mb-4",children:"We need a bit more info"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("p",{className:"mb-4",children:"Please provide your ".concat(U.join(" and ")," to continue.")}),U.includes("email")&&(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"completeProfileEmail",className:"form-label",children:"Email Address"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"email",className:"form-control".concat(c||(null==M?void 0:M.email)?" is-invalid":""),id:"completeProfileEmail",value:v,onChange:e=>j(e.target.value),disabled:m||r}),(c||(null==M?void 0:M.email))&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:c||(null==M?void 0:M.email)})]}),U.includes("email")&&(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"confirmEmail",className:"form-label",children:"Confirm Email Address"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"email",className:"form-control".concat((null==M?void 0:M.confirmEmail)?" is-invalid":""),id:"confirmEmail",value:b,onChange:e=>y(e.target.value),disabled:m||r}),(null==M?void 0:M.confirmEmail)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:M.confirmEmail})]}),U.includes("email")&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"mb-3",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__79797__1.Button,{style:{backgroundColor:a},variant:null,className:"text-white",disabled:m||r,onClick:$,children:[m?(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__464585__3.Spinner,{size:"sm",className:"me-2"}):null,"Verify Email"]})}),U.includes("phone")&&(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"completeProfilePhone",className:"form-label",children:"Mobile Number"}),(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__192824__.IMaskInput,{className:"form-control".concat((null==M?void 0:M.phone)?" is-invalid":""),id:"completeProfilePhone",value:k,onChange:e=>C(e.target.value),mask:"000-000-0000",placeholder:"Mobile Number",disabled:U.includes("email")&&!r}),(null==M?void 0:M.phone)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:M.phone})]}),(0,__TURBOPACK__imported__module__391166__8.jsx)(MoreDetails,{userPublic:i,brandName:u,termsUrl:l,smsOptIn:B,setSmsOptIn:R,optInMarketing:W,setOptInMarketing:G}),(null==M?void 0:M.general)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"alert alert-danger mb-3",children:M.general}),(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"mb-3",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__79797__1.Button,{style:{backgroundColor:a},variant:null,className:"text-white",disabled:m||U.includes("email")&&!r,onClick:J,children:[m?(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__464585__3.Spinner,{size:"sm",className:"me-2"}):null,"Continue"]})})]}):(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__391166__8.Fragment,{children:[f?I?null:(0,__TURBOPACK__imported__module__391166__8.jsx)("h4",{className:"mb-4 text-primary",children:"Login to your account"}):(0,__TURBOPACK__imported__module__391166__8.jsx)("h4",{className:"mb-4 text-primary",children:"Create an Account"}),f?I?(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__949783__.default,{onBack:()=>P(!1)}):(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"row mt-3 mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"col-12 mb-2 mb-md-0 col-md-6",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__165009__1.default,{className:"w-100",onClick:()=>Z("facebook"),disabled:m,children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("i",{className:"bi-facebook me-2"}),"Sign In With Facebook"]})}),(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"col-12 col-md-6",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__165009__1.default,{className:"w-100",onClick:()=>Z("google"),disabled:m,children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("i",{className:"bi-google me-2"}),"Sign In With Google"]})})]}),!(null==U?void 0:U.length)&&(null==M?void 0:M.social)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"alert alert-danger mt-4 mb-4",children:M.social}),(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__361805__.orDivider," mt-4 mb-4"),children:(0,__TURBOPACK__imported__module__391166__8.jsx)("span",{children:"or"})}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"emailLogin",className:"form-label",children:"Email Address"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"email",className:"form-control".concat((null==M?void 0:M.emailLogin)?" is-invalid":""),id:"emailLogin",value:F,onChange:e=>L(e.target.value),onKeyDown:e=>{"Enter"===e.key&&V()}}),(null==M?void 0:M.emailLogin)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.emailLogin})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"passwordLogin",className:"form-label",children:"Password"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"password",className:"form-control".concat((null==M?void 0:M.passwordLogin)?" is-invalid":""),id:"passwordLogin",value:O,onChange:e=>z(e.target.value),onKeyDown:e=>{"Enter"===e.key&&V()}}),(null==M?void 0:M.passwordLogin)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.passwordLogin})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"d-flex flex-wrap align-items-center justify-content-between",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("a",{href:"javascript:void(0)",onClick:()=>P(!0),className:"text-decoration-underline fw-bold",style:{color:"".concat(a)},children:"Forgot your password?"}),(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__79797__1.Button,{style:{backgroundColor:a},variant:null,className:"text-white",disabled:m,onClick:()=>V(),children:(0,__TURBOPACK__imported__module__391166__8.jsxs)("span",{children:[m&&(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__464585__3.Spinner,{size:"sm",className:"me-2"}),"Sign In"]})})]})]}):(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"row mt-3 mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"col-12 mb-2 mb-md-0 col-md-6",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__165009__1.default,{className:"w-100",onClick:()=>Z("facebook"),disabled:m,children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("i",{className:"bi-facebook me-2"}),"Sign Up With Facebook"]})}),(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"col-12 col-md-6",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__165009__1.default,{className:"w-100",onClick:()=>Z("google"),disabled:m,children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("i",{className:"bi-google me-2"}),"Sign Up With Google"]})})]}),(null==M?void 0:M.social)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"alert alert-danger mt-4 mb-4",children:M.social}),(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__361805__.orDivider," mt-4 mb-4"),children:(0,__TURBOPACK__imported__module__391166__8.jsx)("span",{children:"or"})}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"yourEmail",className:"form-label",children:"Sign Up With Your Email Address"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"email",disabled:N,className:"form-control".concat(c||(null==M?void 0:M.email)?" is-invalid":""),id:"yourEmail",value:v,onCh
1ange:e=>j(e.target.value)}),(c||(null==M?void 0:M.email))&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:c||(null==M?void 0:M.email)})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"confirmEmail",className:"form-label",children:"Confirm Your Email Address"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"email",disabled:N,className:"form-control".concat((null==M?void 0:M.confirmEmail)?" is-invalid":""),id:"confirmEmail",value:b,onChange:e=>y(e.target.value)}),(null==M?void 0:M.confirmEmail)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.confirmEmail})]}),r&&(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__391166__8.Fragment,{children:[" ",(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"row mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"col-12 col-md-6 mb-3 mb-sm-0",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"yourName",className:"form-label",children:"Enter Your Full Name"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"text",className:"form-control".concat((null==M?void 0:M.name)?" is-invalid":""),id:"yourName",value:_,onChange:e=>S(e.target.value)}),(null==M?void 0:M.name)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.name})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"col-12 col-md-6",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"yourPhone",className:"form-label",children:"Enter Your Mobile Number"}),(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__192824__.IMaskInput,{className:"form-control".concat((null==M?void 0:M.phone)?" is-invalid":""),id:"yourPhone",value:k,onChange:e=>C(e.target.value),mask:"000-000-0000"}),(null==M?void 0:M.phone)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.phone})]})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"yourPassword",className:"form-label",children:"Enter a Password"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"password",className:"form-control".concat((null==M?void 0:M.password)?" is-invalid":""),id:"yourPassword",value:q,onChange:e=>D(e.target.value)}),(null==M?void 0:M.password)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.password})]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"mb-3",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("label",{htmlFor:"conformPassword",className:"form-label",children:"Confirm Password"}),(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{type:"password",className:"form-control".concat((null==M?void 0:M.confirmPassword)?" is-invalid":""),id:"confirmPassword",value:E,onChange:e=>T(e.target.value)}),(null==M?void 0:M.confirmPassword)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"invalid-feedback",children:null==M?void 0:M.confirmPassword})]}),(0,__TURBOPACK__imported__module__391166__8.jsx)(MoreDetails,{userPublic:i,brandName:u,termsUrl:l,smsOptIn:B,setSmsOptIn:R,optInMarketing:W,setOptInMarketing:G})]}),(null==M?void 0:M.general)&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"alert alert-danger",children:null==M?void 0:M.general}),(null==M?void 0:M.wrongType)&&(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"alert alert-danger mt-4",children:["The email is associated with a restaurant user account. Please login at"," ",(0,__TURBOPACK__imported__module__391166__8.jsx)("a",{href:"https://manage.donationscout.com",children:"https://manage.donationscout.com"}),"."]}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"d-flex flex-wrap align-items-center justify-content-between",children:[(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{style:{fontSize:"14px"},children:["Already Registered?"," ",(0,__TURBOPACK__imported__module__391166__8.jsx)("a",{href:"javascript:void(0)",onClick:()=>g(!0),className:"text-decoration-underline fw-bold",style:{color:"".concat(a)},disabled:m,children:"Sign In"})]}),(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__79797__1.Button,{disabled:m,style:{backgroundColor:a},variant:null,className:"text-white",onClick:()=>r?Y():$(),children:(0,__TURBOPACK__imported__module__391166__8.jsxs)("span",{children:["Continue",m?(0,__TURBOPACK__imported__module__391166__8.jsx)(__TURBOPACK__imported__module__464585__3.Spinner,{size:"sm",className:"ms-2"}):(0,__TURBOPACK__imported__module__391166__8.jsx)("span",{className:"bi-arrow-right-circle ms-1"})]})})]})]})]})]})},__TURBOPACK__default__export__5=Account,MoreDetails=e=>{let{userPublic:t,brandName:s,termsUrl:a,smsOptIn:l,setSmsOptIn:n,optInMarketing:i,setOptInMarketing:r}=e;return(0,__TURBOPACK__imported__module__391166__8.jsxs)(__TURBOPACK__imported__module__391166__8.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"mt-3",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"alert alert-light",children:["Creating an account confirms that you accept all associated ",(0,__TURBOPACK__imported__module__391166__8.jsx)("a",{href:a,className:"text-primary",target:"_blank",children:(0,__TURBOPACK__imported__module__391166__8.jsx)("u",{children:"terms and conditions"})}),"."]})}),t.marketingNotice&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"mt-3 mb-3",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"form-check square-check d-flex justify-content-center",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{className:"form-check-input float-none",type:"checkbox",value:"",id:"optInMarketing",checked:!!i,onClick:()=>{r(!i)}}),(0,__TURBOPACK__imported__module__391166__8.jsxs)("span",{className:"form-check-label ms-2",children:["Join our email list for exclusive ",s," updates and announcements."]})]})}),!t.optOutSMS&&(0,__TURBOPACK__imported__module__391166__8.jsx)("div",{className:"mt-3 mb-3",children:(0,__TURBOPACK__imported__module__391166__8.jsxs)("div",{className:"form-check square-check d-flex justify-content-center",children:[(0,__TURBOPACK__imported__module__391166__8.jsx)("input",{className:"form-check-input float-none",type:"checkbox",value:"",id:"mandate501c3",checked:!!l,onClick:()=>{n(!l)}}),(0,__TURBOPACK__imported__module__391166__8.jsx)("span",{className:"form-check-label ms-2",children:"I agree to re
1ceive event related text message updates."})]})})]})};var __TURBOPACK__imported__module__391166__9=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__8=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__8=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__6=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__2=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__1=__TURBOPACK__imported__module__361805__;let RequestUserOrgs=()=>{let e=(0,__TURBOPACK__imported__module__250503__8.useDispatch)(),t=(0,__TURBOPACK__imported__module__250503__8.useSelector)(e=>e.request.orgs);return(0,__TURBOPACK__imported__module__391166__9.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__1.containerFluid),children:(0,__TURBOPACK__imported__module__391166__9.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__9.jsxs)("div",{className:"col-12 ".concat(__TURBOPACK__imported__module__361805__1.container),children:[(0,__TURBOPACK__imported__module__391166__9.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__9.jsx)("h4",{className:"mt-4 text-primary",children:"Choose Organization"}),(0,__TURBOPACK__imported__module__391166__9.jsx)("p",{children:"Please choose from previous organization(s) you've used in the past, or add a new one."}),(0,__TURBOPACK__imported__module__391166__9.jsx)("p",{className:"d-grid g-2 mt-4",children:(0,__TURBOPACK__imported__module__391166__9.jsxs)("button",{className:"btn btn-primary text-center ms-0 mt-1 mb-1 ".concat(__TURBOPACK__imported__module__361805__1.orgButton," border-primary"),onClick:()=>{e((0,__TURBOPACK__imported__module__327012__6.setOrg)(null)),e((0,__TURBOPACK__imported__module__327012__6.next)(1))},children:[(0,__TURBOPACK__imported__module__391166__9.jsx)("i",{className:"bi bi-plus-circle me-2"})," Add New Organization"]})}),(0,__TURBOPACK__imported__module__391166__9.jsx)("p",{className:"d-grid g-2",children:t.map(t=>(0,__TURBOPACK__imported__module__391166__9.jsxs)(__TURBOPACK__imported__module__165009__2.default,{onClick:s=>{e((0,__TURBOPACK__imported__module__327012__6.setOrg)(t)),e((0,__TURBOPACK__imported__module__327012__6.setPaymentTo)(null)),e((0,__TURBOPACK__imported__module__327012__6.next)(1))},className:"btn-outline-primary text-start ms-0 mt-1 mb-1 ".concat(__TURBOPACK__imported__module__361805__1.orgButton),variant:"outline-primary",children:[(0,__TURBOPACK__imported__module__391166__9.jsx)("strong",{className:"h5",children:t.name}),(0,__TURBOPACK__imported__module__391166__9.jsx)("br",{}),(0,__TURBOPACK__imported__module__391166__9.jsxs)("small",{children:["Tax ID: ",t.taxid," | ",t.city,", ",t.state]})]},t.id))})]})})})},__TURBOPACK__default__export__6=RequestUserOrgs;var __TURBOPACK__imported__module__391166__10=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__9=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__9=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__7=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__3=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__2=__TURBOPACK__imported__module__361805__;let RequestTaxIDSearch=()=>{let[e,t]=(0,__TURBOPACK__imported__module__622610__9.useState)(""),[s,a]=(0,__TURBOPACK__imported__module__622610__9.useState)(null),l=(0,__TURBOPACK__imported__module__250503__9.useDispatch)(),n=(0,__TURBOPACK__imported__module__250503__9.useSelector)(e=>e.request.lookups),i=(0,__TURBOPACK__imported__module__250503__9.useSelector)(e=>e.request.looking),r=(0,__TURBOPACK__imported__module__250503__9.useSelector)(e=>e.request.lookupsFulfilled),o=()=>{let t=e.replace(/[^0-9]/g,"");if(0==t.length)return void a("Please enter a valid Tax ID.");t=("000000000"+t).slice(-9),a(null),l((0,__TURBOPACK__imported__module__327012__7.lookupOrgs)(t))},c=()=>{l((0,__TURBOPACK__imported__module__327012__7.setOrg)({})),l((0,__TURBOPACK__imported__module__327012__7.setBypass)(!0)),l((0,__TURBOPACK__imported__module__327012__7.next)(1))};return(0,__TURBOPACK__imported__module__622610__9.useEffect)(()=>{r&&(n.length>0?(a(null),l((0,__TURBOPACK__imported__module__327012__7.setBypass)(!1)),l((0,__TURBOPACK__imported__module__327012__7.setOrg)({...n[0],address:n[0].street,zipCode:n[0].zip,taxid:n[0].ein,website:""})),l((0,__TURBOPACK__imported__module__327012__7.setPaymentTo)(null)),l((0,__TURBOPACK__imported__module__327012__7.setLookupsFulfilled)(!1)),l((0,__TURBOPACK__imported__module__327012__7.next)(1))):a("There are no organizations that match the Tax ID: "+e))},[r]),(0,__TURBOPACK__imported__module__391166__10.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__2.containerFluid),children:(0,__TURBOPACK__imported__module__391166__10.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__10.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__10.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__10.jsx)("h4",{class:"mt-4 mb-4 text-primary",children:"Federal Tax ID Verification"}),(0,__TURBOPACK__imported__module__391166__10.jsx)("p",{children:"Please enter your nine-digit federal Tax ID number to verify your non-profit status."}),(0,__TURBOPACK__imported__module__391166__10.jsxs)("p",{children:[(0,__TURBOPACK__imported__module__391166__10.jsx)("strong",{class:"d-block",children:"Enter Federal Tax ID Verification:"}),(0,__TURBOPACK__imported__module__391166__10.jsx)("input",{disabled:i,class:"form-control".concat(s?" is-invalid":""),id:"taxid",type:"text",value:e,onCh
1ange:e=>t(e.target.value),placeholder:"xx-xxxxxxx",maxlength:"10","aria-describedby":"taxidFeedback"}),s&&(0,__TURBOPACK__imported__module__391166__10.jsx)("span",{id:"taxidFeedback",class:"d-block alert alert-danger mt-4",children:s})]}),(0,__TURBOPACK__imported__module__391166__10.jsx)("p",{class:"d-grid gap-2",children:(0,__TURBOPACK__imported__module__391166__10.jsxs)(__TURBOPACK__imported__module__165009__3.default,{onClick:o,disabled:i,children:["Continue",i&&(0,__TURBOPACK__imported__module__391166__10.jsx)("span",{class:"spinner-border spinner-border-sm ms-2",role:"status","aria-hidden":"true"})]})}),(0,__TURBOPACK__imported__module__391166__10.jsxs)("p",{class:"mt-4",children:["Having trouble verifying your Tax ID?"," ",(0,__TURBOPACK__imported__module__391166__10.jsx)("a",{onClick:c,class:"text-primary",children:(0,__TURBOPACK__imported__module__391166__10.jsx)("strong",{className:"cursor-pointer",children:(0,__TURBOPACK__imported__module__391166__10.jsx)("u",{children:"Click here!"})})}),(0,__TURBOPACK__imported__module__391166__10.jsx)("br",{}),"Some public schools, districts, colleges, or universities won’t populate above."]})]})})})},__TURBOPACK__default__export__7=RequestTaxIDSearch;var __TURBOPACK__imported__module__391166__11=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__10=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__10=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__464585__4=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__589971__=__turbopack_context__.i(589971),__TURBOPACK__imported__module__327012__8=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__4=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__3=__TURBOPACK__imported__module__361805__;let WhichName=e=>{let{field:t,value:s,selected:a,setWhichname:l}=e,[n,i]=(0,__TURBOPACK__imported__module__622610__10.useState)("");return(0,__TURBOPACK__imported__module__622610__10.useEffect)(()=>{i(s)},[]),(0,__TURBOPACK__imported__module__391166__11.jsxs)("div",{class:"input-group mt-2",children:[(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{class:"input-group-text",children:(0,__TURBOPACK__imported__module__391166__11.jsx)("input",{class:"form-check-input mt-0",type:"radio",id:"wn-".concat(t),name:"whichName",value:t,"aria-label":"Choose one",checked:a===t,onChange:e=>l(e.target.value)})}),(0,__TURBOPACK__imported__module__391166__11.jsx)("input",{type:"text",class:"form-control","aria-label":"Organization name",value:n,disabled:!0})]})},RequestTaxIDVerify=()=>{let e=(0,__TURBOPACK__imported__module__250503__10.useDispatch)(),[t,s]=(0,__TURBOPACK__imported__module__622610__10.useState)(!1),[a,l]=(0,__TURBOPACK__imported__module__622610__10.useState)(!1),[n,i]=(0,__TURBOPACK__imported__module__622610__10.useState)(null),[r,o]=(0,__TURBOPACK__imported__module__622610__10.useState)(null),[c,d]=(0,__TURBOPACK__imported__module__622610__10.useState)(null),[u,m]=(0,__TURBOPACK__imported__module__622610__10.useState)(null),[h,p]=(0,__TURBOPACK__imported__module__622610__10.useState)("name"),[x,f]=(0,__TURBOPACK__imported__module__622610__10.useState)(["name"]),[g,v]=(0,__TURBOPACK__imported__module__622610__10.useState)(null),j=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.org.taxid),b=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.bypass),y=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.org),N=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.userPublic.requireTaxID),w=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.userPublic.requireDocuments&&!(e.request.userPublic.requireTaxID&&!e.request.bypass&&e.request.userPublic.skipDocumentsIfVerified)),_=(0,__TURBOPACK__imported__module__250503__10.useSelector)(e=>e.request.lookups),S=()=>{i(!1),m(!1),d(!1),o(!1)},k=()=>{let t=!1;l(!0),S();let s={...y};if(s.name_creative||(s.name_creative=s[h]||""),s.taxidverified=N&&!b,s.name=s[h]||"",s.whichName=h,e((0,__TURBOPACK__imported__module__327012__8.setOrg)(s)),e((0,__TURBOPACK__imported__module__327012__8.setPaymentTo)(null)),N&&0==y.taxid.length&&(m(!0),t=!0),w&&(!y.taxdocument||0==y.taxdocument.length)&&(d(!0),t=!0),0==s.name.length&&(o(
1h),t=!0),i(t),t)return l(!1);l(!1),e((0,__TURBOPACK__imported__module__327012__8.next)(1))},C=t=>{let s={...y};s.name_creative||(s.name_creative=t),s.taxidverified=!1,s.name=t,s.whichName="name",e((0,__TURBOPACK__imported__module__327012__8.setOrg)(s))};return(0,__TURBOPACK__imported__module__622610__10.useEffect)(()=>{!y.taxdocument||u||r||i(null)},[y.taxdocument]),(0,__TURBOPACK__imported__module__622610__10.useEffect)(()=>{s(N&&!b)},[N,b]),(0,__TURBOPACK__imported__module__622610__10.useEffect)(()=>{var e;(null==y||null==(e=y.name_2)?void 0:e.length)>0?f(["name","name_2","combo"]):f(["name"]),y.whichName?p(y.whichName):p("name"),N&&(m(null),!b&&_&&v([..._].shift()))},[]),(0,__TURBOPACK__imported__module__622610__10.useEffect)(()=>{},[n]),(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__3.containerFluid),children:(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__11.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__11.jsx)(__TURBOPACK__default__export__2,{}),N&&(0,__TURBOPACK__imported__module__391166__11.jsx)("h4",{class:"mt-4 mb-2 text-primary",children:"Confirm Non-Profit Status"}),!N&&(0,__TURBOPACK__imported__module__391166__11.jsx)("h4",{class:"mt-4 mb-2 text-primary",children:"Organization"}),t&&(0,__TURBOPACK__imported__module__391166__11.jsx)("p",{children:"Please confirm that your Organization Name matches this Tax ID."}),!t&&N&&(0,__TURBOPACK__imported__module__391166__11.jsxs)("p",{children:["Please enter your Tax ID number and Organization Name.",w&&(0,__TURBOPACK__imported__module__391166__11.jsxs)("span",{children:[" ","This Organization Name must match the Organization Name on your tax document."]})]}),!t&&!N&&(0,__TURBOPACK__imported__module__391166__11.jsxs)("p",{children:["Please enter your Organization Name and Tax ID number".concat(w?"":" if applicable","."),w&&(0,__TURBOPACK__imported__module__391166__11.jsxs)("span",{children:[" ","This Organization Name must match the Organization Name on your tax document."]})]}),n&&(0,__TURBOPACK__imported__module__391166__11.jsx)("p",{class:"alert alert-danger mb-4",children:"One or more required fields are missing."}),(0,__TURBOPACK__imported__module__391166__11.jsxs)("p",{role:"group",class:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__11.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__11.jsxs)("strong",{children:["Tax ID",!N&&!w&&(0,__TURBOPACK__imported__module__391166__11.jsx)("span",{children:" (if applicable)"}),":"]})}),(0,__TURBOPACK__imported__module__391166__11.jsx)("input",{id:"taxid",type:"text",value:j,onChange:t=>e((0,__TURBOPACK__imported__module__327012__8.setOrg)(Object.assign({...y},{taxid:t.target.value,taxidverified:!1}))),class:"form-control".concat(u?" is-invalid":""),disabled:t})]}),(0,__TURBOPACK__imported__module__391166__11.jsxs)("p",{role:"group",class:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__11.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__11.jsxs)("strong",{children:["Formal Organization Name",N&&y.name_2.length>0&&(0,__TURBOPACK__imported__module__391166__11.jsx)("span",{children:" (c
1hoose one)"}),":"]})}),(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{children:"The donation check will be payable to the formal organization name."}),N&&!b&&g&&x.map(e=>(0,__TURBOPACK__imported__module__391166__11.jsx)(WhichName,{field:e,selected:h,setWhichname:p,value:(null==g?void 0:g[e])||""})),(!N||b)&&(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{class:"input-group mt-2",children:(0,__TURBOPACK__imported__module__391166__11.jsx)("input",{class:"form-control".concat("name"===r?" is-invalid":""),id:"name",type:"text",value:y.name,onChange:e=>C(e.target.value)})})]}),(0,__TURBOPACK__imported__module__391166__11.jsxs)("p",{role:"group",class:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__11.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__11.jsx)("strong",{children:"Website or Facebook Page:"})}),(0,__TURBOPACK__imported__module__391166__11.jsx)("input",{class:"form-control",id:"website",type:"text",value:y.website,onChange:t=>e((0,__TURBOPACK__imported__module__327012__8.setOrg)({...y,website:t.target.value})),placeholder:"Website"})]}),w&&(0,__TURBOPACK__imported__module__391166__11.jsx)(__TURBOPACK__imported__module__589971__.default,{invalid:c,existingFile:y.taxdocument,fileUploaded:t=>e((0,__TURBOPACK__imported__module__327012__8.setOrg)(Object.assign({...y},{taxdocument:t}))),fileDeleted:()=>e((0,__TURBOPACK__imported__module__327012__8.setOrg)(Object.assign({...y},{taxdocument:null})))}),(0,__TURBOPACK__imported__module__391166__11.jsx)("div",{class:"d-flex align-items-center justify-content-end",children:(0,__TURBOPACK__imported__module__391166__11.jsxs)(__TURBOPACK__imported__module__165009__4.default,{onClick:()=>k(),disabled:a,className:"w-100",children:[a&&(0,__TURBOPACK__imported__module__391166__11.jsx)(__TURBOPACK__imported__module__464585__4.Spinner,{size:"sm",className:"me-2"}),"Continue"]})})]})})})},__TURBOPACK__default__export__8=RequestTaxIDVerify;var __TURBOPACK__imported__module__391166__12=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__11=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__11=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__9=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__5=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__990767__1=__TURBOPACK__imported__module__990767__,__TURBOPACK__imported__module__192824__1=__TURBOPACK__imported__module__192824__,__TURBOPACK__imported__module__153688__=__turbopack_context__.i(153688),__TURBOPACK__imported__module__488193__=__turbopack_context__.i(488193),__TURBOPACK__imported__module__361805__4=__TURBOPACK__imported__module__361805__;let UserOrg=()=>{let dispatch=(0,__TURBOPACK__imported__module__250503__11.useDispatch)(),user=(0,__TURBOPACK__imported__module__250503__11.useSelector)(e=>e.request.user),org=(0,__TURBOPACK__imported__module__250503__11.useSelector)(e=>e.request.org),[name,setName]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[email,setEmail]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[phone,setPhone]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgTaxID,setOrgTaxID]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgName,setOrgName]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgAddress,setOrgAddress]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[invalid,setInvalid]=(0,__TURBOPACK__imported__module__622610__11.useState)([]),[invalidEmail,setInvalidEmail]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgCity,setOrgCity]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgState,setOrgState]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgZipCode,setOrgZipCode]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[orgWebsite,setOrgWebsite]=(0,__TURBOPACK__imported__module__622610__11.useState)(""),[disabled,setDisabled]=(0,__TURBOPACK__imported__module__622610__11.useState)(!1),nextStep=async()=>{let inv=[],fields=["name","email","phone","orgName","orgAddress","orgCity","orgState","orgZipCode"];user.id&&(fields=["orgName","orgAddress","orgCity","orgState","orgZipCode"]),fields.forEach(k=>{eval(k)||inv.push(k)}),setInvalid(inv);let error=await (0,__TURBOPACK__imported__module__153688__.validateUserOrg)({email});console.log("error",error),!__TURBOPACK__imported__module__488193__.default.isEmpty(error)&&error.email?setInvalidEmail(error.email):setInvalidEmail(""),0==inv.length&&__TURBOPACK__imported__module__488193__.default.isEmpty(error)&&(dispat
1ch((0,__TURBOPACK__imported__module__327012__9.setOrg)({name:orgName,address:orgAddress,city:orgCity,state:orgState,zipCode:orgZipCode,website:orgWebsite,taxid:orgTaxID})),user.id||dispatch((0,__TURBOPACK__imported__module__327012__9.setUser)({name:name,email:email,phone:phone})),dispatch((0,__TURBOPACK__imported__module__327012__9.next)(1)))};return(0,__TURBOPACK__imported__module__622610__11.useEffect)(()=>{setName((null==user?void 0:user.name)||""),setEmail((null==user?void 0:user.email)||""),setPhone((null==user?void 0:user.phone)||""),setOrgTaxID((null==org?void 0:org.taxid)||""),setOrgName((null==org?void 0:org.name)||""),setOrgAddress((null==org?void 0:org.address)||""),setOrgCity((null==org?void 0:org.city)||""),setOrgState((null==org?void 0:org.state)||""),setOrgZipCode((null==org?void 0:org.zipCode)||""),setOrgWebsite((null==org?void 0:org.website)||"")},[]),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__4.containerFluid),children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__12.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__12.jsx)(__TURBOPACK__default__export__2,{}),invalid.length>0&&(0,__TURBOPACK__imported__module__391166__12.jsx)("p",{className:"alert alert-danger mt-4 mb-4",children:"One or more required fields are missing."}),!__TURBOPACK__imported__module__488193__.default.isEmpty(invalidEmail)&&(0,__TURBOPACK__imported__module__391166__12.jsx)("p",{className:"alert alert-danger mt-4 mb-4",children:invalidEmail}),!user.id&&(0,__TURBOPACK__imported__module__391166__12.jsxs)(__TURBOPACK__imported__module__391166__12.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__12.jsx)("h4",{className:"mt-4 text-primary",children:"About Yourself"}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control".concat(invalid.includes("name")?" is-invalid":""),id:"user_name",type:"text",value:name,onChange:e=>{setName(e.target.value)},placeholder:"Your Name"})})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control".concat(invalid.includes("email")||invalidEmail?" is-invalid":""),id:"user_email",type:"text",value:email,onChange:e=>{setEmail(e.target.value)},placeholder:"Your Email"})})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__12.jsx)(__TURBOPACK__imported__module__192824__1.IMaskInput,{className:"form-control".concat(invalid.includes("phone")?" is-invalid":""),id:"user_phone",value:phone,onChange:e=>setPhone(e.target.value),mask:"000-000-0000",placeholder:"Your Phone"})})})]}),(0,__TURBOPACK__imported__module__391166__12.jsx)("h4",{className:"mt-4 text-primary",children:"Organization"}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control",id:"taxid",type:"text",value:orgTaxID,onChange:e=>{setOrgTaxID(e.target.value)},placeholder:"Tax ID"})})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control".concat(invalid.includes("orgName")?" is-invalid":""),id:"name",type:"text",value:orgName,onChange:e=>{setOrgName(e.target.value)},placeholder:"Organization Name"})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control".concat(invalid.includes("orgAddress")?" is-invalid":""),id:"address",type:"text",value:orgAddress,onChange:e=>{setOrgAddress(e.target.value)},placeholder:"Address",disabled:disabled})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"form-group mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{disabled:disabled,className:"form-control".concat(invalid.includes("orgCity")?" is-invalid":""),type:"text",value:orgCity,onChange:e=>{setOrgCity(e.target.value)},placeholder:"City"})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"form-group mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsxs)("div",{className:"row",children:[(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"col-8",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{disabled:disabled,className:"form-control".concat(invalid.includes("orgState")?" is-invalid":""),type:"text",value:orgState,onChange:e=>{setOrgState(e.target.value)},placeholder:"State"})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"col-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{disabled:disabled,className:"form-control".concat(invalid.includes("orgZipCode")?" is-invalid":""),type:"text",value:orgZipCode,onChange:e=>{setOrgZipCode(e.target.value)},placeholder:"Zip Code"})})]})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{role:"group",className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("div",{className:"input-group",children:(0,__TURBOPACK__imported__module__391166__12.jsx)("input",{className:"form-control",id:"website",type:"text",value:orgWebsite,onChange:e=>{setOrgWebsite(e.target.value)},placeholder:"Website",trim:!0})})}),(0,__TURBOPACK__imported__module__391166__12.jsx)("p",{className:"d-grid gap-2 mt-4",children:(0,__TURBOPACK__imported__module__391166__12.jsx)(__TURBOPACK__imported__module__165009__5.default,{onClick:()=>nextStep(),children:"Continue"})})]})})})},__TURBOPACK__default__export__9=UserOrg;var __TURBOPACK__imported__module__391166__13=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__12=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__464585__5=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__250503__12=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__576344__=__turbopack_context__.i(576344),__TURBOPACK__imported__module__327012__10=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__6=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__5=__TURBOPACK__imported__module__361805__;let RequestMailingLookup=()=>{let e=(0,__TURBOPACK__imported__module__250503__12.useDispatch)(),t=(0,__TURBOPACK__imported__module__250503__12.useSelector)(e=>e.request.org),s=(0,__TURBOPACK__imported__module__250503__12.useSelector)(e=>e.request.paymentTo),[a,l]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[n,i]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[r,o]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[c,d]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[u,m]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[h,p]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[x,f]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[g,v]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[j,b]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[y,N]=(0,__TURBOPACK__imported__module__622610__12.useState)(""),[w,_]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[S,k]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[C,q]=(0,__TURBOPACK__imported__module__622610__12.useState)(!1),[D,E]=(0,__TURBOPACK__imported__module__622610__12.useState)(null),T=()=>{q(!1),E(null),i(!1),m(!1),f(!1),b(!1),_(!1)},M=async()=>{let s=!1;if(k(!0),T(),0==a.length&&(i(!0),s=!0),0==c.length&&(m(!0),s=!0),0==h.length&&(f(!0),s=!0),0==g.length&&(b(!0),s=!0),0==y.length&&(_(!0),s=!0),s)return k(!1);let l=await (0,__TURBOPACK__imported__module__576344__.fetchAddresses)({address:a,secondary:r,city:h,state:g,zipCode:y});
1if(0==l.length){q(!0),E("We could not validate this mailing address. Please verify you've entered the address correctly."),k(!1);return}if("D"===l[0].dpvMatchCode&&0==r.length){q(!0),E("An apt/suite/other is required to validate this mailing address."),k(!1);return}let n={attention_to:c,address:a,city:h,state:g,zipCode:y},o=Object.assign({...t},{...n});e((0,__TURBOPACK__imported__module__327012__10.setOrg)(o)),e((0,__TURBOPACK__imported__module__327012__10.setPaymentTo)({check:Object.assign(n,{payable_to:t.name})})),e((0,__TURBOPACK__imported__module__327012__10.setAddresses)(l)),k(!1),e((0,__TURBOPACK__imported__module__327012__10.next)(1))};return(0,__TURBOPACK__imported__module__622610__12.useEffect)(()=>{(null==s?void 0:s.check)?(d(null==s?void 0:s.check.attention_to),l(null==s?void 0:s.check.address),p(null==s?void 0:s.check.city),v(null==s?void 0:s.check.state),N(null==s?void 0:s.check.zipCode)):(d(null==t?void 0:t.attention_to),l(null==t?void 0:t.address),p(null==t?void 0:t.city),v(null==t?void 0:t.state),N(null==t?void 0:t.zipCode))},[]),(0,__TURBOPACK__imported__module__391166__13.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__5.containerFluid),children:(0,__TURBOPACK__imported__module__391166__13.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__13.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__13.jsx)("h4",{className:"mt-4 mb-2 text-primary",children:"Mailing Address"}),(0,__TURBOPACK__imported__module__391166__13.jsx)("p",{className:"mb-2",children:"Please provide a valid mailing address for us to send your check."}),C&&(0,__TURBOPACK__imported__module__391166__13.jsx)("p",{className:"alert alert-danger mb-4",children:D||"One or more required fields are missing."}),(0,__TURBOPACK__imported__module__391166__13.jsxs)("p",{role:"group",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{htmlFor:"input-live",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"*Street Address:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control".concat(n?" is-invalid":""),id:"address",type:"text",value:a,onChange:e=>l(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__13.jsxs)("p",{role:"group",class:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"Apt/Suite/Other:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control",id:"secondary",type:"text",value:r,onChange:e=>o(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__13.jsxs)("p",{role:"group",class:"mt-4",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"*Attention To:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("div",{children:"Name of recipient or department to whom your donation check will be sent."}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control".concat(u?" is-invalid":""),id:"attention_to",type:"text",value:c,onChange:e=>d(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__13.jsxs)("p",{class:"form-group mt-4",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"*City:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control".concat(x?" is-invalid":""),type:"text",value:h,onChange:e=>p(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__13.jsx)("div",{class:"form-group mt-4",children:(0,__TURBOPACK__imported__module__391166__13.jsxs)("div",{class:"row",children:[(0,__TURBOPACK__imported__module__391166__13.jsxs)("div",{class:"col-12 col-md-8",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"*State:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control".concat(j?" is-invalid":""),type:"text",value:g,onChange:e=>v(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__13.jsxs)("div",{class:"col-12 col-md-4",children:[(0,__TURBOPACK__imported__module__391166__13.jsx)("label",{for:"input-live",class:"mt-4 mt-md-0",children:(0,__TURBOPACK__imported__module__391166__13.jsx)("strong",{children:"*Zip:"})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("input",{class:"form-control".concat(w?" is-invalid":""),type:"text",value:y,onChange:e=>N(e.target.value)})]})]})}),(0,__TURBOPACK__imported__module__391166__13.jsx)("p",{className:"mt-2",children:"*indicates a required field"}),(0,__TURBOPACK__imported__module__391166__13.jsx)("p",{class:"d-grid gap-2 mt-4",children:(0,__TURBOPACK__imported__module__391166__13.jsxs)(__TURBOPACK__imported__module__165009__6.default,{disabled:S,onClick:()=>M(),children:[S&&(0,__TURBOPACK__imported__module__391166__13.jsx)(__TURBOPACK__imported__module__464585__5.Spinner,{size:"sm",className:"me-2"}),"Continue"]})})]})})})},__TURBOPACK__default__export__10=RequestMailingLookup;var __TURBOPACK__imported__module__391166__14=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__13=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__13=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__11=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__361805__6=__TURBOPACK__imported__module__361805__;let RequestMailingVerify=()=>{let e=(0,__TURBOPACK__imported__module__250503__13.useDispatch)(),t=(0,__TURBOPACK__imported__module__250503__13.useSelector)(e=>e.request.addresses),s=(0,__TURBOPACK__imported__module__250503__13.useSelector)(e=>e.request.paymentTo),a=(0,__TURBOPACK__imported__module__250503__13.useSelector)(e=>e.request.org),[l,n]=(0,__TURBOPACK__imported__module__622610__13.useState)(null),i=t=>{let l={...a};l.address=t.deliveryLine1,l.city=t.cityName,l.state=t.state,l.zipCode=t.zipCode,e((0,__TURBOPACK__imported__module__327012__11.setOrg)(l));let n={...s.check};n.address=t.deliveryLine1,n.city=t.cityName,n.state=t.state,n.zipCode=t.zipCode,e((0,__TURBOPACK__imported__module__327012__11.setPaymentTo)({check:{...n}})),e((0,__TURBOPACK__imported__module__327012__11.next)(1))};return(0,__TURBOPACK__imported__module__391166__14.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__6.containerFluid),children:(0,__TURBOPACK__imported__module__391166__14.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__14.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__14.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__14.jsx)("h4",{class:"mt-4 mb-2 text-primary",children:"Confirm Mailing Address"}),(0,__TURBOPACK__imported__module__391166__14.jsx)("p",{children:"We've located the following list of valid mailing addresses based on what you've entered. Please choose one."}),(0,__TURBOPACK__imported__module__391166__14.jsx)("ul",{class:"list-group",children:t.map((e,t)=>(0,__TURBOPACK__imported__module__391166__14.jsxs)("li",{onClick:()=>i(e),class:"list-group-item list-group-item-action d-flex p-4 align-items-center",children:[(0,__TURBOPACK__imported__module__391166__14.jsx)("span",{class:"pe-4",children:(0,__TURBOPACK__imported__module__391166__14.jsx)("input",{class:"form-radio-input",type:"radio",checked:l&&l.id==e.id})}),(0,__TURBOPACK__imported__module__391166__14.jsxs)("span",{class:"text-start",children:[e.deliveryLine1,(0,__TURBOPACK__imported__module__391166__14.jsx)("br",{}),e.cityName,", ",e.state," ",e.zipCode]})]},"suggestion".concat(t)))})]})})})},__TURBOPACK__default__export__11=RequestMailingVerify;var __TURBOPACK__imported__module__391166__15=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__14=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__464585__6=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__250503__14=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__20443__=__turbopack_context__.i(20443),__TURBOPACK__imported__module__327012__12=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__165009__7=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__7=__TURBOPACK__imported__module__361805__;let RequestCreative=()=>{let e=(0,__TURBOPACK__imported__module__250503__14.useDispatch)();(0,__TURBOPACK__imported__module__250503__14.useSelector)(e=>e.embed.primary);let t=(0,__TURBOPACK__imported__module__250503__14.useSelector)(e=>e.request.org),s=(0,__TURBOPACK__imported__module__250503__14.useSelector)(e=>e.request.brand),[a,l]=(0,__TURBOPACK__imported__module__622610__14.useState)(null),[n,i]=(0,__TURBOPACK__imported__module__622610__14.useState)(null),[r,o]=(0,__TURBOPACK__imported__module__622610__14.useState)("");(0,__TURBOPACK__imported__module__622610__14.useEffect)(()=>{o(t.name)},[]);let c=()=>
1{if(i(!0),l(null),0==r.length)return l("Please enter an organization name."),i(!1);e((0,__TURBOPACK__imported__module__327012__12.setOrg)(Object.assign({...t},{name_creative:r}))),i(!1),e((0,__TURBOPACK__imported__module__327012__12.next)(1))};return(0,__TURBOPACK__imported__module__391166__15.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__7.containerFluid),children:(0,__TURBOPACK__imported__module__391166__15.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__15.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__15.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__15.jsx)("h4",{class:"mt-4 mb-4 text-primary",children:"Marketing Assets"}),a&&(0,__TURBOPACK__imported__module__391166__15.jsx)("p",{class:"alert alert-danger mb-4",children:a}),(0,__TURBOPACK__imported__module__391166__15.jsxs)("p",{role:"group",children:[(0,__TURBOPACK__imported__module__391166__15.jsx)("label",{for:"input-live",children:(0,__TURBOPACK__imported__module__391166__15.jsx)("strong",{children:"Organization Name:"})}),(0,__TURBOPACK__imported__module__391166__15.jsx)("div",{children:"Please provide the name of your organization as you would like it to appear on your marketing assets(flyers and social media graphics)."}),(0,__TURBOPACK__imported__module__391166__15.jsx)("input",{class:"form-control mt-2".concat(a?" is-invalid":""),id:"name",type:"text",value:r,onChange:e=>o(e.target.value)})]}),(0,__TURBOPACK__imported__module__391166__15.jsxs)("div",{class:"border border-1 bg-white rounded p-4",children:[(0,__TURBOPACK__imported__module__391166__15.jsx)(__TURBOPACK__imported__module__20443__.default,{orgName:r,primaryColor:s.primaryColor||"black"}),(0,__TURBOPACK__imported__module__391166__15.jsx)("small",{class:"d-block alert alert-warning mt-2 mb-0",children:"Marketing assets will be made available to you once your event has been approved."})]}),(0,__TURBOPACK__imported__module__391166__15.jsx)("p",{class:"d-grid gap-2 mt-4",children:(0,__TURBOPACK__imported__module__391166__15.jsxs)(__TURBOPACK__imported__module__165009__7.default,{onClick:()=>c(),disabled:n,children:[n&&(0,__TURBOPACK__imported__module__391166__15.jsx)(__TURBOPACK__imported__module__464585__6.Spinner,{className:"me-2",size:"sm"}),"Continue"]})})]})})})},__TURBOPACK__default__export__12=RequestCreative;var __TURBOPACK__imported__module__391166__16=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__15=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__15=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__493549__1=__TURBOPACK__imported__module__493549__,__TURBOPACK__imported__module__667422__3=__TURBOPACK__imported__module__667422__,__TURBOPACK__imported__module__326216__=__turbopack_context__.i(326216),__TURBOPACK__imported__module__327012__13=__TURBOPACK__imported__module__327012__,__TURBOPACK__imported__module__464585__7=__TURBOPACK__imported__module__464585__,__TURBOPACK__imported__module__385096__1=__TURBOPACK__imported__module__385096__,__TURBOPACK__imported__module__165009__8=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__361805__8=__TURBOPACK__imported__module__361805__;let ConfirmMyRequest=()=>{let e=(0,__TURBOPACK__imported__module__250503__15.useDispatch)(),t="bg-white text-center text-md-start w-100 border rounded p-4 d-flex flex-column flex-md-row gap-2 gap-md-4 justify-content-center align-items-center",s=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.location),a=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.date),l=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.preferredDay),n=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.event),i=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.orgTypes),r=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.fetchingOrgTypes),o=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.fetchingOrgTypesError),c=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.confirming),d=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.confirmFulfilled),u=(0,__TURBOPACK__imported__module__250503__15.useSelector)(e=>e.request.confirmError),[m,h]=(0,__TURBOPACK__imported__module__622610__15.useState)(null),[p,x]=(0,__TURBOPACK__imported__module__622610__15.useState)(null),[f,g]=(0,__TURBOPACK__imported__module__622610__15.useState)(null),[v,j]=(0,__TURBOPACK__imported__module__622610__15.useState)(""),[b,y]=(0,__TURBOPACK__imported__module__622610__15.useState)(null),[N]=(0,__TURBOPACK__imported__module__622610__15.useState)("Hi, I would like to raise money for my organization."),w=e=>(0,__TURBOPACK__imported__module__493549__1.default)(e).format("h:mm a"),_=async()=>{let t=(null==n?void 0:n.multiDay)?{orgSize:p,orgType:f,message:v}:{orgSize:p,orgType:f,attendees:m,message:v},s=(null==n?void 0:n.multiDay)?await (0,__TURBOPACK__imported__module__326216__.confirmDigital)(t):await (0,__TURBOPACK__imported__module__326216__.confirmStandard)(t);if(s)return void y(s);y(null),e((0,__TURBOPACK__imported__module__327012__13.setRequestMessage)(v.length>0?v.replace(/(<([^>]+)>)/gi,""):N)),e((0,__TURBOPACK__imported__module__327012__13.setRequestAttendees)(m)),e((0,__TURBOPACK__imported__module__327012__13.setRequestOrgSize)(p)),e((0,__TURBOPACK__imported__module__327012__13.setRequestOrgType)(f)),e((0,__TURBOPACK__imported__module__327012__13.confirmRequest)())};return(0,__TURBOPACK__imported__module__622610__15.useEffect)(()=>{d&&!u&&e((0,__TURBOPACK__imported__module__327012__13.next)(1))},[d]),(0,__TURBOPACK__imported__module__622610__15.useEffect)(()=>{e((0,__TURBOPACK__imported__module__327012__13.fetchOrgTypes)()),e((0,__TURBOPACK__imported__module__327012__13.setConfirmError)(null)),y(null)},[]),(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"container-fluid ".concat(__TURBOPACK__imported__module__361805__8.containerFluid),children:(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"col-12",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)(__TURBOPACK__default__export__2,{}),(0,__TURBOPACK__imported__module__391166__16.jsx)("h4",{className:"text-start mt-4 mb-4 text-primary",children:"Confirm My Request"}),u&&(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{class:"alert alert-danger mb-4",children:u}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"mt-2 d-flex flex-column flex-md-row align-items-stretch gap-4",children:[!(null==n?void 0:n.digital)&&(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:t,children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__16.jsx)("h2",{className:"bi-geo-alt"})}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("strong",{children:s.location}),(0,__TURBOPACK__imported__module__391166__16.jsx)("br",{}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("small",{style:{lineHeight:"1em"},children:[s.address1,(0,__TURBOPACK__imported__module__391166__16.jsx)("br",{}),s.city,", ",s.state," ",s.zip]})]})]}),n?(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:t,children:n.multiDay?(0,__TURBOPACK__imported__module__391166__16.jsxs)(__TURBOPACK__imported__module__391166__16.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__16.jsx)("h2",{className:"bi-calendar-week"})}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"m-0",children:(0,__TURBOPACK__imported__module__391166__16.jsx)("strong",{children:null==a?void 0:a.longDate})}),(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"m-0",children:n.name})]})]}):(0,__TURBOPACK__imported__module__391166__16.jsxs)(__TURBOPACK__imported__module__391166__16.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__16.jsx)("h2",{className:"bi-calendar-event"})}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__391166__16.jsxs)("p",{className:"m-0",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("strong",{children:(0,__TURBOPACK__imported__module__493549__1.default)(null==a?void 0:a.start,__TURBOPACK__imported__module__667422__3.default.constants.dateFormat).format("LL")}),(0,__TURBOPACK__imported__module__391166__16.jsx)("br",{}),n.allDay?(0,__TURBOPACK__imported__module__391166__16.jsx)("small",{children:"All Day"}):(0,__TURBOPACK__imported__module__391166__16.jsxs)("small",{children:[w(n.starts)," to ",w(n.ends)]})]}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("p",{className:"m-0",children:[(0,__TURBOPACK__imported__module__391166__16.jsxs)("strong",{children:[n.payout,"%"]}),"Total Sales"===n.payoutType?(0,__TURBOPACK__imported__module__391166__16.jsx)("small",{className:"me-2 ms-1",children:"of Total Sales"}):(0,__TURBOPACK__imported__module__391166__16.jsx)("small",{className:"me-2 ms-1",children:"Payout"}),(0,__TURBOPACK__imported__module__391166__16.jsx)("strong",{className:"ms-2 me-1",children:n.payoutTimeframe})," ",(0,__TURBOPACK__imported__module__391166__16.jsx)("small",{children:"Days to Pay"})]})]})]})}):(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:t,children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__16.jsx)("h5",{className:"bi-calendar"})}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("p",{className:"m-0",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("strong",{children:"Preferred Date:"}),(0,__TURBOPACK__imported__module__391166__16.jsx)("br",{}),(0,__TURBOPACK__imported__module__391166__16.jsx)("small",{children:__TURBOPACK__imported__module__493549__1.default.unix(l).format("ll")})]})]})]}),d?(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"col text-center",children:(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"alert alert-success mb-0",children:(0,__TURBOPACK__imported__module__391166__16.jsxs)("h4",{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("span",{className:"bi-check-circle me-2"}
1)," REQUEST SUBMITTED"]})})})}):(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"row pt-2 mt-4",children:(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{className:"col-12 text-start text-md-start",children:(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"bg-light p-2 p-md-2 rounded",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("h5",{className:"m-0",children:"".concat((null==n?void 0:n.multiDay)?"Tell us more":"Tell us about your event")}),!(null==n?void 0:n.multiDay)&&(0,__TURBOPACK__imported__module__391166__16.jsxs)(__TURBOPACK__imported__module__391166__16.Fragment,{children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"m-0 text-dark mt-2 mb-2",children:"How many people do you expect to attend?"}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"form-group",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("input",{className:"form-control text-start".concat((null==b?void 0:b.attendees)?" is-invalid":""),id:"attendees",type:"number",value:m,onChange:e=>h(e.target.value),onWheel:e=>e.target.blur(),min:"0",step:"1"}),(null==b?void 0:b.attendees)&&(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{id:"attendees-feedback",className:"invalid-feedback",children:b.attendees})]})]}),(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"m-0 text-dark mt-2 mb-2",children:"What is the approximate size of your organization?"}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"form-group",children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("input",{className:"form-control text-start".concat((null==b?void 0:b.orgSize)?" is-invalid":""),id:"orgSize",type:"number",value:p,onChange:e=>x(e.target.value),onWheel:e=>e.target.blur(),min:"0",step:"1"}),(null==b?void 0:b.orgSize)&&(0,__TURBOPACK__imported__module__391166__16.jsx)("div",{id:"orgSize-feedback",className:"invalid-feedback",children:b.orgSize})]}),(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"m-0 text-dark mt-2 mb-2",children:"What type of organization are you?"}),(0,__TURBOPACK__imported__module__391166__16.jsxs)("div",{className:"input-group mt-2",children:[(0,__TURBOPACK__imported__module__391166__16.jsxs)(__TURBOPACK__imported__module__385096__1.Form.Select,{onChange:e=>g(e.target.value),disabled:r||o,"aria-label":"Organization type",className:"text-center",isInvalid:(null==b?void 0:b.orgType)||o,children:[(0,__TURBOPACK__imported__module__391166__16.jsx)("option",{value:"",children:"--select one---"}),i.map((e,t)=>(0,__TURBOPACK__imported__module__391166__16.jsx)("option",{selected:e===f,value:e,children:e},"option".concat(t)))]}),((null==b?void 0:b.orgType)||o)&&(0,__TURBOPACK__imported__module__391166__16.jsx)(__TURBOPACK__imported__module__385096__1.Form.Control.Feedback,{type:"invalid",children:(null==b?void 0:b.orgType)||o})]}),(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"mt-4 text-dark mb-2",children:"Tell us more about your organization and why you're raising money"}),(0,__TURBOPACK__imported__module__391166__16.jsx)("textarea",{type:"text",className:"form-control text-start",id:"yourWebsite",placeholder:N,value:v,onChange:e=>j(e.target.value)})]})})}),!d&&(0,__TURBOPACK__imported__module__391166__16.jsx)("p",{className:"mt-4 d-grid g-2",children:(0,__TURBOPACK__imported__module__391166__16.jsxs)(__TURBOPACK__imported__module__165009__8.default,{id:"confirmReservationButton",onClick:()=>_(),disabled:c,children:["Confirm My Request",c&&(0,__TURBOPACK__imported__module__391166__16.jsx)(__TURBOPACK__imported__module__464585__7.Spinner,{className:"ms-2"})]})})]})})})},__TURBOPACK__default__export__13=ConfirmMyRequest;var __TURBOPACK__imported__module__391166__17=__TURBOPACK__imported__module__391166__,__TURBOPACK__imported__module__622610__16=__TURBOPACK__imported__module__622610__,__TURBOPACK__imported__module__250503__16=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__165009__9=__TURBOPACK__imported__module__165009__,__TURBOPACK__imported__module__527811__=__turbopack_context__.i(527811),__TURBOPACK__imported__module__216241__=__turbopack_context__.i(216241);let Welcome=()=>{(0,__TURBOPACK__imported__module__622610__16.useRef)(),(0,__TURBOPACK__imported__module__250503__16.useDispatch)();let e=(0,__TURBOPACK__imported__module__250503__16.useSelector)(e=>e.request.brand),t=(0,__TURBOPACK__imported__module__250503__16.useSelector)(e=>e.request.location),s=(0,__TURBOPACK__imported__module__250503__16.useSelector)(e=>e.request.preferredDay),a=(0,__TURBOPACK__imported__module__250503__16.useSelector)(e=>e.request.status);return(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"container-fluid",children:(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"row",children:(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"col-md-12",children:(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"d-flex d-flex justify-content-center align-items-center",children:(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"".concat(__TURBOPACK__imported__module__216241__.successContentBox," d-flex flex-wrap mx-auto mt-0 mt-md-4"),children:(0,__TURBOPACK__imported__module__391166__17.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__216241__.scbLeft," d-flex flex-column justify-content-center text-center"),children:[(0,__TURBOPACK__imported__module__391166__17.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__216241__.scbLeftTextBox," d-flex flex-column position-relative pb-4"),children:[s?(0,__TURBOPACK__imported__module__391166__17.jsxs)("h3",{children:["We have forwarded your request to ",e.brand," - ",t.location,"."]}
1):(0,__TURBOPACK__imported__module__391166__17.jsxs)("h3",{children:["Your request with ",e.brand," - ",t.location," is currently"]}),!s&&(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"d-flex align-self-center mt-4",children:(null==a?void 0:a.approved)?(0,__TURBOPACK__imported__module__391166__17.jsx)("span",{className:"badge rounded-pill bg-success pt-2 pb-2 ps-4 pe-4",style:{fontSize:"1em"},children:"Approved"}):(0,__TURBOPACK__imported__module__391166__17.jsx)("span",{className:"badge rounded-pill bg-warning pt-2 pb-2 ps-4 pe-4",style:{fontSize:"1em"},children:"Pending Approval"})})]}),(0,__TURBOPACK__imported__module__391166__17.jsxs)("div",{className:"".concat(__TURBOPACK__imported__module__216241__.scbLeftTextBox," mt-4 mb-4"),children:[(null==a?void 0:a.approved)?(0,__TURBOPACK__imported__module__391166__17.jsx)("h2",{children:"Congratulations!"}):(0,__TURBOPACK__imported__module__391166__17.jsx)("h2",{children:"What's Next?"}),!(null==a?void 0:a.approved)&&(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"mt-4",children:(0,__TURBOPACK__imported__module__391166__17.jsxs)("h4",{children:[(0,__TURBOPACK__imported__module__391166__17.jsx)("span",{className:"bi-clock"})," Stand By"]})}),s?(0,__TURBOPACK__imported__module__391166__17.jsxs)("p",{className:"mt-4",children:[e.brand," is reviewing your request. Please allow 3 to 5 business days for a response. If you do not hear back within 5 days, feel free to send a message from your dashboard."]}):(0,__TURBOPACK__imported__module__391166__17.jsx)("p",{className:"mt-4",children:(null==a?void 0:a.approved)?(0,__TURBOPACK__imported__module__391166__17.jsx)(__TURBOPACK__imported__module__391166__17.Fragment,{children:"Your event request has been approved. Please check your email inbox for an approval email with next steps and best practices."}):(0,__TURBOPACK__imported__module__391166__17.jsxs)(__TURBOPACK__imported__module__391166__17.Fragment,{children:[e.brand," is reviewing your request. Please allow 3 to 5 business days for a response. If you do not hear back within 5 days, feel free to send a message from the activity page"]})})]}),(0,__TURBOPACK__imported__module__391166__17.jsx)("div",{className:"success-btn-box",children:(0,__TURBOPACK__imported__module__391166__17.jsx)(__TURBOPACK__imported__module__165009__9.default,{id:"continue",href:"/upcoming-events",className:"btn-lg",children:(0,__TURBOPACK__imported__module__391166__17.jsxs)("span",{className:"d-flex align-items-center justify-content-between",children:["Continue ",(0,__TURBOPACK__imported__module__391166__17.jsx)("span",{className:"bi-arrow-right ms-2"})]})})})]})})})})})})},__TURBOPACK__default__export__14=Welcome;var __TURBOPACK__imported__module__250503__17=__TURBOPACK__imported__module__250503__,__TURBOPACK__imported__module__327012__14=__TURBOPACK__imported__module__327012__;
1let Scheduler=()=>{var e=window.dataLayer||[];let t=(0,__TURBOPACK__imported__module__250503__17.useDispatch)(),s=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.step),a=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.direction),l=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.share),n=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.preferredDay),i=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.confirmFulfilled),r=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.type),o=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.brand),c=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>{var t;return null==(t=e.brand)?void 0:t.brand}),d=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.location),u=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.locations),m=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.event),h=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.events),p=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.date),x=(0,__TURBOPACK__imported__module__250503__17.useSelector)(e=>e.request.zipCode),f="donation"!==r,[g,v]=(0,__TURBOPACK__imported__module__622610__1.useState)(!1);return(0,__TURBOPACK__imported__module__622610__1.useEffect)(()=>{let n="";switch(!g?s:"continue"===a?s-1:s+1){case 1:n="enter_zip_code";break;case 2:n="choose_location";break;case 4:n="choose_event";break;case 5:n="choose_day";break;case 6:n="account_or_login";break;case 7:n="choose_organization";break;case 8:n="taxid_verify";break;case 9:n="organization_details";break;case 10:n="enter_mailing";break;case 11:n="verify_mailing";break;case 12:n="creative";break;case 13:n="confirm";break;case 14:n="welcome"}let i=f?{newRequestBrand:(null==o?void 0:o.brand)||(null==c?void 0:c.brand),newRequestLocation:null==d?void 0:d.location,newRequestEvent:null==m?void 0:m.name,newRequestEvents:null==h?void 0:h.length,newRequestLocations:null==u?void 0:u.length,newRequestZipcode:x||(null==d?void 0:d.zip),newRequestMonth:null==p?void 0:p.month,newRequestDayOfWeek:null==p?void 0:p.dayOfWeek}:{};g?s<14&&e.push({event:"new_request",newRequestAction:a,newRequestStep:n,...i}):e.push({event:"new_request",newRequestAction:"load",newRequestStep:n,...i}),s<3&&t((0,__TURBOPACK__imported__module__327012__14.setLocation)(null)),s<4&&(l||t((0,__TURBOPACK__imported__module__327012__14.setEvent)(null)),t((0,__TURBOPACK__imported__module__327012__14.setPreferredDay)(null)),t((0,__TURBOPACK__imported__module__327012__14.setDate)(null))),g||v(!0)},[s]),(0,__TURBOPACK__imported__module__622610__1.useEffect)(()=>{i&&e.push({event:"new_request",newRequestAction:"save",newRequestStep:"confirm",...f?{newRequestBrand:(null==o?void 0:o.brand)||(null==c?void 0:c.brand),newRequestLocation:null==d?void 0:d.location,newRequestEvent:null==m?void 0:m.name,newRequestEvents:null==h?void 0:h.length,newRequestLocations:null==u?void 0:u.length,newRequestZipcode:x||(null==d?void 0:d.zip),newRequestMonth:null==p?void 0:p.month,newRequestDayOfWeek:null==p?void 0:p.dayOfWeek}:{}})},[i]),(0,__TURBOPACK__imported__module__391166__2.jsxs)(__TURBOPACK__imported__module__391166__2.Fragment,{children:[s<3&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__1,{}),3===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__3,{}),4===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__4,{}),5===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__5,{}),6===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__6,{}),7===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__7,{}),8===s&&!n&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__8,{}),8===s&&n&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__9,{}),9===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__10,{}),10===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__11,{}),11===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__12,{}),12===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__13,{}),13===s&&(0,__TURBOPACK__imported__module__391166__2.jsx)(__TURBOPACK__default__export__14,{})]})},__TURBOPACK__default__export__15=Scheduler;var __TURBOPACK__imported__module__946091__=__turbopack_context__.i(946091);let NewRequestContent=()=>{let e=(0,__TURBOPACK__imported__module__250503__1.useSelector)(e=>{var t,s;return(null==(s=e.brand)||null==(t=s.site)?void 0:t.navbarMode)||"light"});return(0,__TURBOPACK__imported__module__391166__.jsx)("div",{children:(0,__TURBOPACK__imported__module__391166__.jsxs)("div",{className:"container-fluid g-0",children:[(0,__TURBOPACK__imported__module__391166__.jsx)("div",{className:"d-block d-md-none",children:(0,__TURBOPACK__imported__module__391166__.jsx)(__TURBOPACK__imported__module__946091__.default,{onboarding:!0,position:"static"})}),(0,__TURBOPACK__imported__module__391166__.jsxs)("div",{className:"row g-0",children:[(0,__TURBOPACK__imported__module__391166__.jsx)("div",{className:"d-block d-md-none ".concat("light"===e?"bg-white":"bg-primary"),children:(0,__TURBOPACK__imported__module__391166__.jsx)(__TURBOPACK__default__export__,{orientation:"horizontal",Logo:__TURBOPACK__imported__module__7
176466__.default})}),(0,__TURBOPACK__imported__module__391166__.jsx)("div",{className:"col-4 col-xxl-3 position-fixed h-100 ".concat("light"===e?"bg-white":"bg-primary"," d-none d-lg-block pt-5"),children:(0,__TURBOPACK__imported__module__391166__.jsx)(__TURBOPACK__default__export__,{orientation:"vertical",Logo:__TURBOPACK__imported__module__776466__.default})}),(0,__TURBOPACK__imported__module__391166__.jsx)("div",{className:"col-12 col-lg-8 col-xxl-9 offset-lg-4 offset-xxl-3 bg-light min-vh-100",children:(0,__TURBOPACK__imported__module__391166__.jsx)(__TURBOPACK__default__export__15,{})})]})]})})};function NewRequest(){return(0,__TURBOPACK__imported__module__391166__.jsxs)(__TURBOPACK__imported__module__354926__.AuthProvider,{children:[(0,__TURBOPACK__imported__module__391166__.jsx)(__TURBOPACK__imported__module__890080__.default,{}),(0,__TURBOPACK__imported__module__391166__.jsx)(NewRequestContent,{})]})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.