1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6864],{66083:function(e,t,r){"use strict";var n=r(87462),a=r(45987),o=r(67294),i=r(86010),s=r(1591),c=r(22318),l=o.forwardRef((function(e,t){var r=e.children,s=e.classes,l=e.className,u=e.disableTypography,d=void 0!==u&&u,h=(0,a.Z)(e,["children","classes","className","disableTypography"]);return o.createElement("div",(0,n.Z)({className:(0,i.default)(s.root,l),ref:t},h),d?r:o.createElement(c.Z,{component:"h2",variant:"h6"},r))}));t.Z=(0,s.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(l)},58365:function(e,t,r){"use strict";var n=r(87462),a=r(45987),o=r(67294),i=r(86010),s=r(59693),c=r(1591),l=o.forwardRef((function(e,t){var r=e.animation,s=void 0===r?"pulse":r,c=e.classes,l=e.className,u=e.component,d=void 0===u?"span":u,h=e.height,f=e.variant,p=void 0===f?"text":f,m=e.width,g=(0,a.Z)(e,["animation","classes","className","component","height","variant","width"]),v=Boolean(g.children);return o.createElement(d,(0,n.Z)({ref:t,className:(0,i.default)(c.root,c[p],l,v&&[c.withChildren,!m&&c.fitContent,!h&&c.heightAuto],!1!==s&&c[s])},g,{style:(0,n.Z)({width:m,height:h},g.style)}))}));t.Z=(0,c.Z)((function(e){return{root:{display:"block",backgroundColor:(0,s.Fq)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(l)},76489:function(e,t){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},i=e.split(";"),s=a.decode||r,c=0;c<i.length;c++){var l=i[c],u=l.indexOf("=");if(!(u<0)){var d=l.substring(0,u).trim();if(void 0==n[d]){var h=l.substring(u+1,l.length).trim();'"'===h[0]&&(h=h.slice(1,-1)),n[d]=o(h,s)}}}return n},t.serialize=function(e,t,r){var o=r||{},i=o.encode||n;if("function"!==typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(o.domain){if(!a.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!a.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!==typeof o.expires.toUTCString)throw new TypeError("option expires is invali
1d");c+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");if(o.sameSite){switch("string"===typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,n=encodeURIComponent,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e,t){try{return t(e)}catch(r){return e}}},94990:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contacts/[type]",function(){return r(32300)}])},65839:function(e,t,r){"use strict";var n=r(85893),a=r(41664),o=r.n(a),i=r(67294),s=r(14117),c=r(58126),l=r(12478),u=function(e){var t=(0,i.useState)(e.people),r=t[0];t[1];return(0,n.jsx)(n.Fragment,{children:r.map((function(e,t){return(0,n.jsxs)("div",{style:(r.length,{margin:"8px 0px"}),children:[(0,n.jsx)(o(),{href:"/contact/".concat(e.id),children:(0,n.jsxs)("a",{children:[e.name," "]})}),"is turning ",e.age," years on the ",e.birth_date," of ",e.birth_month]},e.id)}))})};t.Z=function(e){var t=(0,i.useState)([]),r=t[0],a=t[1],d=(0,i.useState)(!0),h=d[0],f=d[1],p=(0,i.useState)(""),m=(p[0],p[1]),g=(0,i.useState)(0),v=g[0],y=g[1],x=(0,i.useState)([]),b=x[0],j=x[1];return(0,i.useEffect)((function(){f(!0),l.y.getContactBirthdays().then((function(e){a(e.people),y(e.people.length-1),j(e.upcoming),m(e.message),f(!1)})).catch((function(e){f(!1)}))}),[]),!h&&r.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Z,{header:"\ud83e\udd73 Birthdays today!",children:[!h&&r.map((function(e,t){return t===v&&1===r.length?(0,n.jsxs)("span",{children:[(0,n.jsx)(o(),{href:"/contact/".concat(e.id),children:(0,n.jsxs)("a",{children:[e.name," (",e.age,")"]})})," has their birthday today!"]},t):t===v&&r.length>1?(0,n.jsxs)("span",{children:[" and ",(0,n.jsx)(o(),{href:"/contact/".concat(e.id),children:(0,n.jsxs)("a",{children:[e.name," (",e.age,")"]})})," have their birthdays today!"]},t):(0,n.jsxs)("span",{children:[(0,n.jsx)(o(),{href:"/contact/".concat(e.id),children:(0,n.jsxs)("a",{children:[e.name," (",e.age,")"]})}),", "]},t)})),b.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:"Upcoming Birthdays"}),(0,n.jsx)(u,{people:b})]}):(0,n.jsx)("span",{children:"No upcoming birthdays."}),(0,n.jsx)(c.Z,{height:20})]}),(0,n.jsx)(c.Z,{height:"40px"})]}):!h&&b.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{header:"Upcoming Birthdays",children:(0,n.jsx)(u,{people:b})}),(0,n.jsx)(c.Z,{height:"40px"})]}):null}},32300:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return q}});var n=r(85893),a=r(47568),o=r(97582),i=r(41664),s=r.n(i),c=r(11163),l=r.n(c),u=r(67294);function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function h(e){e.active;var t=(0,c.useRouter)().query,r=[{name:"People",href:"/contacts/contact",current:"contact"===t.type},{name:"Companies",href:"/contacts/company",current:"company"===t.type},{name:"Organizations",href:"/contacts/organization",current:"organization"===t.type}];return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"sm:hidden",children:[(0,n.jsx)("label",{htmlFor:"tabs",className:"sr-only",children:"Select a tab"}),(0,n.jsx)("select",{id:"tabs",name:"tabs",className:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",defaultValue:r.find((function(e){return e.current})).name,children:r.map((function(e){return(0,n.jsx)("option",{children:e.name},e.name)}))})]}),(0,n.jsx)("div",{className:"hidden sm:block",children:(0,n.jsx)("div",{className:"border-b border-gray-200",children:(0,n.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:r.map((function(e){return(0,n.jsx)(s(),{href:e.href,children:(0,n.jsx)("a",{className:d(e.current?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm no-underline"),"aria-current":e.current?"page":void 0,children:e.name},e.name)},e.name)}))})})})]})}function f(e){var t=e.type,r=e.action;return(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"})}),(0,n.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"contact"===t?"No people added yet.":"No ".concat(t," contacts added yet.")}),(0,n.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:["Get started by creating adding a new ","contact"===t?"contact.":"".concat(t," contact.")]}),(0,n.jsx)("div",{className:"mt-6",children:r})]})}var p=r(57437),m=r(31955),g=r(31838),v={headers:{Authorization:"Bearer "+m.Z.get("dft")}},y={getPeopleByQuickFilter:function(e){var t="";switch(e){case"monthly":t="/subscription-donors";break;case"ecommerce":t="/ecommerce-customers"}return new Promise((function(e,r){return p.Z.get(g.API+"/v1/people".concat(t),v).then((function(t){e(t.data)})).catch((function(e){r(e)}))}))}},x=r(65839),b=r(26042),j=r(69396),w=r(52663),k=r(29525),S=r(66083),C=r(62286),Z=(r(61895),r(24461)),N=r(95756),_=r(58126),O=r(7861),E={name:"",email:"",ph
1one:"",firstname:"",lastname:""};var A=function(e){var t=(0,O.Z)(),r=t.user,a=t.token,o=(t.portal,(0,u.useState)("")),i=(o[0],o[1],(0,u.useState)(!1)),s=(i[0],i[1],(0,u.useState)(!1)),c=s[0],d=s[1],h=(0,u.useState)(!1),f=(h[0],h[1],(0,u.useState)(!1)),m=f[0],v=f[1],y=(0,u.useState)(""),x=(y[0],y[1]),A=(0,u.useState)("contact"),P=A[0],T=A[1],F=(0,u.useState)(E),z=F[0];return F[1],(0,u.useEffect)((function(){!function(){var e=(0,C.parseCookies)();x(e.dft)}()}),[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.z,{text:"+ Add a new contact",onClick:function(){return v(!0)},color:"primary"}),(0,n.jsx)("div",{style:{maxWidth:480},children:!c&&(0,n.jsxs)(w.Z,{open:m,onClose:function(){return v(!1)},"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,n.jsx)(S.Z,{children:"New contact"}),(0,n.jsx)(k.Z,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:"form",onSubmit:function(t){t.preventDefault(),d(!0);var n=new FormData(t.target),o=Object.fromEntries(n.entries());"contact"===o.contact_type&&(o.name=o.first_name+" "+o.last_name),o.portalId=r.portalId,console.log(o);var i=(0,j.Z)((0,b.Z)({},o),{source:"Manually added."});p.Z.post("".concat(g.API,"/v1/contacts"),i,{headers:{Authorization:"Bearer "+a}}).then((function(t){t.data.created?e.callback?e.callback(t.data.contact):l().push("/contact/".concat(t.data.contact.id)):(alert("This contact already exists!"),d(!1))}))},children:[(0,n.jsxs)("div",{className:"row",children:[(0,n.jsxs)("div",{className:"form-group col-md-12",children:[(0,n.jsx)("label",{htmlFor:"firstname",children:"Type"}),(0,n.jsxs)("select",{name:"contact_type",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:function(e){return T(e.target.value)},children:[(0,n.jsx)("option",{value:"0",children:"Choose type of contact..."}),(0,n.jsx)("option",{value:"contact",children:"Person"}),(0,n.jsx)("option",{value:"company",children:"Company"}),(0,n.jsx)("option",{value:"organization",children:"Organisation"})]})]}),"company"===P||"organization"===P?(0,n.jsxs)("div",{className:"form-group col",children:[(0,n.jsx)("label",{htmlFor:"firstname",children:"Name"}),(0,n.jsx)("input",{name:"name",type:"text",defaultValue:z.name,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"Name of ".concat(z.contact_type),required:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"form-group col-md-6",children:[(0,n.jsx)("label",{htmlFor:"firstname",children:"First name"}),(0,n.jsx)("input",{name:"firstname",type:"text",defaultValue:z.firstname,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"",required:!0})]}),(0,n.jsxs)("div",{className:"form-group col-md-6",children:[(0,n.jsx)("label",{htmlFor:"lastname",children:"Last name"}),(0,n.jsx)("input",{name:"lastname",type:"text",defaultValue:z.lastname,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"",required:!0})]})]})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"email",children:"Email"}),(0,n.jsx)("input",{name:"email",type:"text",defaultValue:z.email,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:""})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("label",{htmlFor:"email",children:"Phone"}),(0,n.jsx)("input",{name:"telephone",type:"text",defaultValue:z.telephone,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:""})]}),(0,n.jsx)(_.Z,{height:40}),c?(0,n.jsx)(Z.Z,{}):(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)(N.z,{text:"Create contact",type:"submit",color:"primary"})})]}),(0,n.jsxs)("section",{children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(_.Z,{height:40}),(0,n.jsx)("div",{onClick:function(){return v(!1)},style:{cursor:"pointer"},children:"Cancel"}),(0,n.jsx)(_.Z,{height:40}),c?(0,n.jsx)(Z.Z,{}):null]}),(0,n.jsx)(_.Z,{height:"30px"})]})]})})]})})]})},P=r(28273),T=r(55014),F=function(){var e=(0,u.useState)([]),t=e[0],r=e[1],i=(0,u.useState)([]),s=(i[0],i[1]),l=(0,u.useState)([]),d=l[0],m=l[1],g=(0,u.useState)([]),v=g[0],b=g[1],j=(0,u.useState)(!0),w=j[0],k=j[1],S=(0,u.useState)(!1),C=S[0],N=S[1],E=(0,u.useState)(null),F=(E[0],E[1]),z=(0,u.useState)("contacts"),q=z[0],I=z[1],B=(0,O.Z)(),R=B.user,L=B.token,M=B.portal,U=(0,c.useRouter)(),V=U.query;(0,u.useEffect)((function(){function e(){return e=(0,a.Z)((function(){var e;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:switch(U.query.type){case"contact":I("contacts");break;case"company":I("companies");break;case"organization":I("organizations")}
1return(e=U.query).filter?(F(e.filter),[4,H(e.filter)]):[3,2];case 1:return t.sent(),N(!0),k(!1),[3,4];case 2:return[4,D()];case 3:t.sent(),t.label=4;case 4:return[2]}}))})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var W=function(e){var t=e,a=[];Array.isArray(t)&&t.length&&Object.keys(t.data[0]).forEach((function(e){"id"!=e&&a.push({title:e,dataIndex:e,key:e,render:function(e){return(0,n.jsx)("a",{children:e})}})})),b(t),m(a),r(t.data),s(t)},D=function(){var e=(0,a.Z)((function(){var e,t;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),k(!0),e="contact",V.type)switch(V.type){case"contact":default:e="contact";break;case"company":e="company";break;case"organization":e="organization"}return[4,p.Z.get("https://api.donorflow.net/v1/contacts?page=0&type=".concat(e),{headers:{Authorization:"Bearer "+L}})];case 1:return t=r.sent(),W(t.data),N(!0),k(!1),[3,3];case 2:return r.sent(),k(!1),alert("Could not load data"),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),H=function(){var e=(0,a.Z)((function(e){var t;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return N(!1),k(!0),[4,y.getPeopleByQuickFilter(e)];case 1:return t=r.sent(),W(t),N(!0),k(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=(0,a.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,D()];case 1:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(h,{},U.query.type),w?(0,n.jsx)("div",{className:"p-4",children:(0,n.jsx)(Z.Z,{})}):(0,n.jsx)(n.Fragment,{children:t.length>0?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"",children:(0,n.jsx)("div",{className:"row",children:(0,n.jsxs)("div",{className:"col",children:[(0,n.jsx)(_.Z,{height:20}),"contact"==U.query.type?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{}),(0,n.jsx)(_.Z,{height:20})]}):null,C?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(P.Z,{rows:t,columns:d,resource:"contacts",portal:M.id,linkPath:"/contact",dkey:M.api_key,search:q,currentPage:null===v||void 0===v?void 0:v.currentPage,pages:null===v||void 0===v?void 0:v.pages,perPage:null===v||void 0===v?void 0:v.perPage,previousPage:null===v||void 0===v?void 0:v.previousPage,nextPage:null===v||void 0===v?void 0:v.nextPage,total:null===v||void 0===v?void 0:v.total,apiUrlPath:null===v||void 0===v?void 0:v.basePath,selectAll:!1,refresh:X,showSearch:!0})}):(0,n.jsx)(T.J,{})]})})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{height:20}),(0,n.jsx)(f,{type:"contact",action:(0,n.jsx)(A,{contactType:"contact",portalId:M.id,user:R})})]})})]},U.query.type)},z=r(66311);function q(){var e=(0,c.useRouter)();return(0,n.jsx)(z.Z,{title:"Contacts",children:(0,n.jsx)(F,{})},e.query.type)}},62286:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var a=r(76489),o=r(69328),i=r(51022);function s(e,t){var r,n;return(null===(n=null===(r=null===e||void 0===e?void 0:e.req)||void 0===r?void 0:r.headers)||void 0===n?void 0:n.cookie)?a.parse(e.req.headers.cookie,t):i.isBrowser()?a.parse(document.cookie,t):{}}function c(e,t,r,s){var c,l;if(void 0===s&&(s={}),(null===(c=null===e||void 0===e?void 0:e.res)||void 0===c?void 0:c.getHeader)&&e.res.setHeader){if(null===(l=null===e||void 0===e?void 0:e.res)||void 0===l?void 0:l.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var u=e.res.getHeader("Set-Cookie")||[];"string"===typeof u&&(u=[u]),"number"===typeof u&&(u=[]);var d=o.parse(u,{decodeValues:!1}),h=i.createCookie(t,r,s),f=[];d.forEach((function(e){if(!i.areCookiesEqual(e,h)){var t=a.serialize(e.name,e.value,n({encode:function(e){return e}},e));f.push(t)}}
1)),f.push(a.serialize(t,r,s)),e.res.setHeader("Set-Cookie",f)}if(i.isBrowser()){if(s&&s.httpOnly)throw new Error("Can not set a httpOnly cookie in the browser.");document.cookie=a.serialize(t,r,s)}return{}}function l(e,t,r){return c(e,t,"",n(n({},r||{}),{maxAge:-1}))}t.parseCookies=s,t.setCookie=c,t.destroyCookie=l,t.default={set:c,get:s,destroy:l}},51022:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};function n(e,t){var r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(r.length!==n.length)return!1;for(var a=0;a<r.length;a++){var o=r[a];if(e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!==typeof window},t.createCookie=function(e,t,n){var a=n.sameSite;!0===a&&(a="strict"),void 0!==a&&!1!==a||(a="lax");var o=r(r({},n),{sameSite:a});return delete o.encode,r({name:e,value:t},o)},t.hasSameProperties=n,t.areCookiesEqual=function(e,t){var a=e.sameSite===t.sameSite;return"string"===typeof e.sameSite&&"string"===typeof t.sameSite&&(a=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),n(r(r({},e),{sameSite:void 0}),r(r({},t),{sameSite:void 0}))&&a}},92703:function(e,t,r){"use strict";var n=r(50414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69328:function(e){"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"===typeof e&&!!e.trim()}function n(e,n){var a=e.split(";").filter(r),o=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(a.shift()),i=o.name,s=o.value;n=n?Object.assign({},t,n):t;try{s=n.decodeValues?decodeURIComponent(s):s}catch(l){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",l)}var c={name:i,value:s};return a.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?c.expires=new Date(n):"max-age"===r?c.maxAge=parseInt(n,10):"secure"===r?c.secure=!0:"httponly"===r?c.httpOnly=!0:"samesite"===r?c.sameSite=n:"partitioned"===r?c.partitioned=!0:c[r]=n})),c}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)return a.map?{}:[];if(e.headers)if("function"===typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var o=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];o||!e.headers.cookie||a.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}if(Array.isArray(e)||(e=[e]),a.map){return e.filter(r).reduce((function(e,t){var r=n(t,a);return e[r.name]=r,e}),{})}return e.filter(r).map((function(e){return n(e,a)}))}e.exports=a,e.exports.parse=a,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!==typeof e)return[];var t,r,n,a,o,i=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,o=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),a=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=a,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&i.push(e.substring(t,e.length))}return i}},93967:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,o(r)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}
1.apply(t,[]))||(e.exports=r)}()},15671:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},53737:function(e,t,r){"use strict";var n=r(67294);const a=n.forwardRef((function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))}));t.Z=a},20943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},13375:function(e,t,r){"use strict";function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},828:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(13375);var a=r(91566);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,n.Z)(e,t)||(0,a.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},29815:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(20943);var a=r(13375);var o=r(91566);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,a.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},91566:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(20943);function a(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},function(e){e.O(0,[3714,1551,2016,1664,6587,8767,8886,8427,8240,9464,883,2972,1162,4376,7441,8091,3486,2221,4835,6311,813,8386,9774,2888,179],(function(){return t=94990,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.