PageSourceSearch

https://www.oscainc.org/_next/static/chunks/pages/admin/settings/contactInfo-4cded4ee2ba5c762.js

js oscainc.org collected 2026-10-04 13:29:16 UTC 28,759 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[118],{47362:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/settings/contactInfo",function(){return i(59515)}])},85200:function(e,n,i){"use strict";i.d(n,{DY:function(){return AdminPage},hb:function(){return d},lm:function(){return AdminPageHeading},yG:function(){return AdminPageHeader}});var t=i(85893),o=i(48641),r=i(38655);i(67294);let AdminPage=e=>{let{children:n,...i}=e;return(0,t.jsx)(o.xu,{...i,children:n})},AdminPageHeader=e=>{let{children:n,...i}=e;return(0,t.jsx)(o.Kq,{direction:"row",spacing:"4",alignItems:"flex-start",...i,children:n})},AdminPageHeading=e=>{let{children:n,...i}=e;return(0,t.jsx)(o.X6,{size:"md",...i,children:n})},d=(0,r.Gp)((e,n)=>{let{children:i,...r}=e;return(0,t.jsx)(o.xu,{marginY:"5",...r,ref:n,children:i})})},12995:function(e,n,i){"use strict";i.d(n,{CX:function(){return Editable},$l:function(){return EditableCancel},sD:function(){return EditableCard},EO:function(){return EditableClosed},FT:function(){return EditableFooter},p0:function(){return EditableOpen},$P:function(){return EditableSubmit},yP:function(){return EditableToggle}});var t=i(85893),o=i(67294),r=i(90195);let d=o.createContext(null),useEditable=()=>{let e=o.useContext(d);if(!e)throw Error("You have to this inside of an <Editable/>");return e},Editable=e=>{let{children:n,...i}=e,o=(0,r.qY)(),[,s]=(0,r.pY)(i,o);return(0,t.jsx)(d.Provider,{value:{editing:s},children:n})},EditableClosed=e=>{let{editing:n}=useEditable();return n.isOpen?null:(0,t.jsx)(t.Fragment,{children:e.children})},EditableOpen=e=>{let{editing:n}=useEditable();return n.isOpen?(0,t.jsx)(t.Fragment,{children:e.children}):null};var s=i(47741);let EditableToggle=e=>{let{editing:n}=useEditable();return(0,t.jsx)(s.zx,{visibility:n.isOpen?"hidden":void 0,isDisabled:n.isOpen,onClick:n.onToggle,size:"sm",variant:"outline",colorScheme:"gray",...e})};EditableToggle.defaultProps={children:"Edit"};let EditableCancel=e=>{let{editing:n}=useEditable();return(0,t.jsx)(s.zx,{onClick:n.onToggle,size:"sm",variant:"outline",colorScheme:"primary",borderColor:"primary.500",...e})};EditableCancel.defaultProps={children:"Cancel"};var l=i(52670);let EditableCard=e=>{let{newView:n,...i}=e;return(0,t.jsx)(l.Z,{p:n?"4":"6",pt:n?"0":"6",...i})};var a=i(48641);let EditableFooter=e=>{let{editing:n}=useEditable();return n.isOpen?(0,t.jsx)(a.Kq,{direction:"row",justifyContent:"flex-end",...e}):null},EditableSubmit=e=>(0,t.jsx)(s.zx,{size:"sm",...e});EditableSubmit.defaultProps={children:"Submit"}},39174:function(e,n,i){"use strict";i.d(n,{A:function(){return NoMatchPage}});var t=i(85893),o=i(48641),r=i(23887),d=i(47741),s=i(11163);i(67294);let NoMatchPage=()=>{let e=(0,s.useRouter)();return(0,t.jsxs)(o.gC,{p:"12",spacing:"4",textAlign:"center",children:[(0,t.jsx)(r.Ee,{src:"https://tradewing-public.s3.us-east-2.amazonaws.com/tradewing-logo.png",alt:"Tradewing",width:"50px",height:"50px"}),(0,t.jsx)(o.xv,{textStyle:"xlBodyStrong",children:"Page Not Found"}),(0,t.jsx)(o.xv,{children:"Please check that you have the correct URL and try again. If you need help finding and accessing your community, please contact [email protected]."}),(0,t.jsx)(d.zx,{onClick:()=>e.push("/"),children:"Return to Site"})]})}},19598:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var t=i(38655);let o=(0,t.m$)("div",{baseStyle:{borderRadius:"8px",backgroundColor:"white",shadow:"base"}})},52670:function(e,n,i){"use strict";i.d(n,{Z:function(){return t.Z}});var t=i(19598)},59515:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return O}});var t=i(82729),o=i(85893),r=i(50456),d=i(37887),s=i(48641),l=i(67294),a=i(85200),c=i(96317),u=i(69171),v=i(48076),h=i(23253),m=i(50319),j=i(80419),x=i(90195),p=i(83234),I=i(20979),f=i(87536),b=i(12995),g=i(15927),C=i(93064);function _templateObject(){let e=(0,t._)(["\n  fragment ContactInfoForm_TenantFragment on Tenant {\n    _id\n    contactInfo {\n      phoneNumber\n      email\n      addressLine0\n      addressLocality\n      addressAdministrativeArea\n      addressPostalCode\n    }\n  }\n"]);
1return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,t._)(["\n  mutation ContactInfoForm_PatchTenantContactInfo(\n    $input: PatchTenantContactInfoInput!\n  ) {\n    patchTenantContactInfo(input: $input) {\n      tenant {\n        _id\n        ...ContactInfoForm_TenantFragment\n      }\n    }\n  }\n  ","\n"]);return _templateObject1=function(){return e},e}let _=(0,r.Ps)(_templateObject()),S=(0,r.Ps)(_templateObject1(),_),ContactInfoForm=e=>{var n,i,t,r,d,a,c,u,v,h,_,A,L,N;let{tenant:y}=e,E=(0,j.pm)(),P=(0,x.qY)(),O=l.useMemo(()=>{var e,n,i,t,o,r,d,s,l,a,c,u;return{phoneNumber:null!==(d=null===(e=y.contactInfo)||void 0===e?void 0:e.phoneNumber)&&void 0!==d?d:"",email:null!==(s=null===(n=y.contactInfo)||void 0===n?void 0:n.email)&&void 0!==s?s:"",addressLine0:null!==(l=null===(i=y.contactInfo)||void 0===i?void 0:i.addressLine0)&&void 0!==l?l:"",addressLocality:null!==(a=null===(t=y.contactInfo)||void 0===t?void 0:t.addressLocality)&&void 0!==a?a:"",addressAdministrativeArea:null!==(c=null===(o=y.contactInfo)||void 0===o?void 0:o.addressAdministrativeArea)&&void 0!==c?c:"",addressPostalCode:null!==(u=null===(r=y.contactInfo)||void 0===r?void 0:r.addressPostalCode)&&void 0!==u?u:""}},[null===(n=y.contactInfo)||void 0===n?void 0:n.addressAdministrativeArea,null===(i=y.contactInfo)||void 0===i?void 0:i.addressLine0,null===(t=y.contactInfo)||void 0===t?void 0:t.addressLocality,null===(r=y.contactInfo)||void 0===r?void 0:r.addressPostalCode,null===(d=y.contactInfo)||void 0===d?void 0:d.email,null===(a=y.contactInfo)||void 0===a?void 0:a.phoneNumber]),{register:F,formState:{errors:D,isSubmitting:R},handleSubmit:T,reset:k}=(0,f.cI)({defaultValues:O});l.useEffect(()=>k(O),[O,k]);let[U]=(0,m.D)(S),w=T(async e=>{try{await U({variables:{input:{addressAdministrativeArea:e.addressAdministrativeArea,addressLine0:e.addressLine0,addressLocality:e.addressLocality,addressPostalCode:e.addressPostalCode,email:e.email,phoneNumber:e.phoneNumber}}}),P.onClose()}catch(e){E({status:"error",description:e.message})}});return(0,o.jsx)(b.CX,{...P,children:(0,o.jsx)(b.sD,{children:(0,o.jsxs)(s.Kq,{spacing:"4",children:[(0,o.jsxs)(s.Kq,{direction:"row",spacing:"4",children:[(0,o.jsxs)(s.Kq,{spacing:"0",flex:"1",children:[(0,o.jsx)(s.xv,{textStyle:"xlBodyStrong",children:"Contact Info"}),(0,o.jsx)(s.xv,{textStyle:"compact",color:"gray.500",children:"This information will be publicly visible and used in various locations such as invoices, the association website footer, and more."})]}),(0,o.jsx)(b.yP,{})]}),(0,o.jsx)(b.p0,{children:(0,o.jsxs)(s.Kq,{spacing:"6",children:[(0,o.jsxs)(p.NI,{isInvalid:!!D.phoneNumber,isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"Phone Number"}),(0,o.jsx)(I.II,{placeholder:"(000)-000-0000",...F("phoneNumber")}),(0,o.jsx)(p.J1,{children:null===(c=D.phoneNumber)||void 0===c?void 0:c.message})]}),(0,o.jsxs)(p.NI,{isInvalid:!!D.email,isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"Email"}),(0,o.jsx)(I.II,{placeholder:"[email protected]",...F("email",{validate:{email:e=>!e||C.rB.EmailWithTLD.test(e)||"You must enter a valid email address"}})}),(0,o.jsx)(p.J1,{children:null===(u=D.email)||void 0===u?void 0:u.message})]}),(0,o.jsxs)(p.NI,{isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"Street Address"}),(0,o.jsx)(I.II,{placeholder:"Street Address",...F("addressLine0")})]}),(0,o.jsxs)(p.NI,{isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"City"}),(0,o.jsx)(I.II,{placeholder:"City",...F("addressLocality")})]}),(0,o.jsxs)(p.NI,{isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"State"}),(0,o.jsx)(I.II,{placeholder:"State",...F("addressAdministrativeArea")})]}),(0,o.jsxs)(p.NI,{isDisabled:R,children:[(0,o.jsx)(p.lX,{children:"Zip Code"}),(0,o.jsx)(I.II,{placeholder:"Zip Code",...F("addressPostalCode")})]})]})}),(0,o.jsx)(b.EO,{children:(0,o.jsxs)(s.Kq,{spacing:"6",children:[(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Phone Number"}),(null===(v=y.contactInfo)||void 0===v?void 0:v.phoneNumber)?(0,o.jsx)(g.Ic,{children:y.contactInfo.phoneNumber}):(0,o.jsx)(g.Bl,{children:"No phone number provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Email"}),(null===(h=y.contactInfo)||void 0===h?void 0:h.email)?(0,o.jsx)(g.Ic,{children:y.contactInfo.email}):(0,o.jsx)(g.Bl,{children:"No contact email provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Street Address"}),(null===(_=y.contactInfo)||void 0===_?void 0:_.addressLine0)?(0,o.jsx)(g.Ic,{children:y.contactInfo.addressLine0}):(0,o.jsx)(g.Bl,{children:"No street address provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"City"}),(null===(A=y.contactInfo)||void 0===A?void 0:A.addressLocality)?(0,o.jsx)(g.Ic,{children:y.contactInfo.addressLocality}):(0,o.jsx)(g.Bl,{children:"No city provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"State"}),(null===(L=y.contactInfo)||void 0===L?void 0:L.addressAdministrativeArea)?(0,o.jsx)(g.Ic,{children:y.contactInfo.addressAdministrativeArea}):(0,o.jsx)(g.Bl,{children:"No state provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Zip Code"}),(null===(N=y.contactInfo)||void 0===N?void 0:N.addressPostalCode)?(0,o.jsx)(g.Ic,{children:y.contactInfo.addressPostalCode}):(0,o.jsx)(g.Bl,{children:"No zip code provided"})]})]})}),(0,o.jsxs)(b.FT,{children:[(0,o.jsx)(b.$l,{isDisabled:R}),(0,o.jsx)(b.$P,{onClick:w,isLoading:R,children:"Save Changes"})]})]})})})};
1function SocialMediaLinksForm_templateObject(){let e=(0,t._)(["\n  fragment SocialMediaLinksForm_TenantFragment on Tenant {\n    _id\n    contactInfo {\n      linkedin\n      twitter\n      facebook\n      instagram\n      youtube\n    }\n  }\n"]);return SocialMediaLinksForm_templateObject=function(){return e},e}function SocialMediaLinksForm_templateObject1(){let e=(0,t._)(["\n  mutation SocialMediaLinksForm_PatchTenantContactInfo(\n    $input: PatchTenantContactInfoInput!\n  ) {\n    patchTenantContactInfo(input: $input) {\n      tenant {\n        _id\n        ...SocialMediaLinksForm_TenantFragment\n      }\n    }\n  }\n  ","\n"]);return SocialMediaLinksForm_templateObject1=function(){return e},e}ContactInfoForm.tenantFragment=_;let A=(0,r.Ps)(SocialMediaLinksForm_templateObject()),L=(0,r.Ps)(SocialMediaLinksForm_templateObject1(),A),SocialMediaLinksForm=e=>{var n,i,t,r,d,a,c,u,v,h;let{tenant:C}=e,_=(0,j.pm)(),S=(0,x.qY)(),A=l.useMemo(()=>{var e,n,i,t,o,r,d,s,l,a;return{linkedinUrl:null!==(r=null===(e=C.contactInfo)||void 0===e?void 0:e.linkedin)&&void 0!==r?r:"",twitterUrl:null!==(d=null===(n=C.contactInfo)||void 0===n?void 0:n.twitter)&&void 0!==d?d:"",facebookUrl:null!==(s=null===(i=C.contactInfo)||void 0===i?void 0:i.facebook)&&void 0!==s?s:"",instagramUrl:null!==(l=null===(t=C.contactInfo)||void 0===t?void 0:t.instagram)&&void 0!==l?l:"",youtubeUrl:null!==(a=null===(o=C.contactInfo)||void 0===o?void 0:o.youtube)&&void 0!==a?a:""}},[null===(n=C.contactInfo)||void 0===n?void 0:n.facebook,null===(i=C.contactInfo)||void 0===i?void 0:i.instagram,null===(t=C.contactInfo)||void 0===t?void 0:t.linkedin,null===(r=C.contactInfo)||void 0===r?void 0:r.twitter,null===(d=C.contactInfo)||void 0===d?void 0:d.youtube]),{register:N,formState:{isSubmitting:y},handleSubmit:E,reset:P}=(0,f.cI)({defaultValues:A}),[O]=(0,m.D)(L),F=E(async e=>{try{await O({variables:{input:{facebook:e.facebookUrl,instagram:e.instagramUrl,linkedin:e.linkedinUrl,twitter:e.twitterUrl,youtube:e.youtubeUrl}}}),S.onClose()}catch(e){_({status:"error",description:e.message})}});return(0,o.jsx)(b.CX,{...S,children:(0,o.jsx)(b.sD,{children:(0,o.jsxs)(s.Kq,{spacing:"4",children:[(0,o.jsxs)(s.Kq,{direction:"row",spacing:"4",children:[(0,o.jsxs)(s.Kq,{spacing:"0",flex:"1",children:[(0,o.jsx)(s.xv,{textStyle:"xlBodyStrong",children:"Social Media Links"}),(0,o.jsx)(s.xv,{textStyle:"compact",color:"gray.500",children:"This information will be presented in the association website footer."})]}),(0,o.jsx)(b.yP,{})]}),(0,o.jsx)(b.p0,{children:(0,o.jsxs)(s.Kq,{spacing:"6",children:[(0,o.jsxs)(p.NI,{isDisabled:y,children:[(0,o.jsx)(p.lX,{children:"LinkedIn URL"}),(0,o.jsx)(I.II,{placeholder:"https://",...N("linkedinUrl")})]}),(0,o.jsxs)(p.NI,{isDisabled:y,children:[(0,o.jsx)(p.lX,{children:"Twitter URL"}),(0,o.jsx)(I.II,{placeholder:"https://",...N("twitterUrl")})]}),(0,o.jsxs)(p.NI,{isDisabled:y,children:[(0,o.jsx)(p.lX,{children:"Facebook URL"}),(0,o.jsx)(I.II,{placeholder:"https://",...N("facebookUrl")})]}),(0,o.jsxs)(p.NI,{isDisabled:y,children:[(0,o.jsx)(p.lX,{children:"Instagram URL"}),(0,o.jsx)(I.II,{placeholder:"https://",...N("instagramUrl")})]}),(0,o.jsxs)(p.NI,{isDisabled:y,children:[(0,o.jsx)(p.lX,{children:"Youtube URL"}),(0,o.jsx)(I.II,{placeholder:"https://",...N("youtubeUrl")})]})]})}),(0,o.jsx)(b.EO,{children:(0,o.jsxs)(s.Kq,{spacing:"6",children:[(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"LinkedIn URL"}),(null===(a=C.contactInfo)||void 0===a?void 0:a.linkedin)?(0,o.jsx)(g.Ic,{children:C.contactInfo.linkedin}):(0,o.jsx)(g.Bl,{children:"No LinkedIn URL provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Twitter URL"}),(null===(c=C.contactInfo)||void 0===c?void 0:c.twitter)?(0,o.jsx)(g.Ic,{children:C.contactInfo.twitter}):(0,o.jsx)(g.Bl,{children:"No Twitter URL provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Facebook URL"}),(null===(u=C.contactInfo)||void 0===u?void 0:u.facebook)?(0,o.jsx)(g.Ic,{children:C.contactInfo.facebook}):(0,o.jsx)(g.Bl,{children:"No Facebook URL provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Instagram URL"}),(null===(v=C.contactInfo)||void 0===v?void 0:v.instagram)?(0,o.jsx)(g.Ic,{children:C.contactInfo.instagram}):(0,o.jsx)(g.Bl,{children:"No Instagram URL provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Youtube URL"}),(null===(h=C.contactInfo)||void 0===h?void 0:h.youtube)?(0,o.jsx)(g.Ic,{children:C.contactInfo.youtube}):(0,o.jsx)(g.Bl,{children:"No Youtube URL provided"})]})]})}),(0,o.jsxs)(b.FT,{children:[(0,o.jsx)(b.$l,{isDisabled:y}),(0,o.jsx)(b.$P,{onClick:F,isLoading:y,children:"Save Changes"})]})]})})})};
1function StripeInfoForm_templateObject(){let e=(0,t._)(["\n  fragment StripeInfoForm_CustomerFragment on TenantStripeCustomer {\n    stripeCustomerId\n    contact {\n      phoneNumber\n      email\n      addressLine0\n      addressLine1\n      addressAdministrativeArea\n      addressLocality\n      addressPostalCode\n      addressRegionCode\n    }\n  }\n"]);return StripeInfoForm_templateObject=function(){return e},e}function StripeInfoForm_templateObject1(){let e=(0,t._)(["\n  mutation StripeInfoForm_UpdateStripeCustomer(\n    $input: UpdateTenantStripeCustomerInput!\n  ) {\n    updateTenantStripeCustomer(input: $input) {\n      customer {\n        name\n        description\n        stripeCustomerId\n        ...StripeInfoForm_CustomerFragment\n      }\n    }\n  }\n  ","\n"]);return StripeInfoForm_templateObject1=function(){return e},e}function _templateObject2(){let e=(0,t._)(["\n  query StripeInfoForm_StripeCustomer($input: GetTenantStripeCustomerInput!) {\n    getTenantStripeCustomer(input: $input) {\n      customer {\n        stripeCustomerId\n        name\n        description\n        contact {\n          phoneNumber\n          email\n          addressLine0\n          addressLine1\n          addressAdministrativeArea\n          addressLocality\n          addressPostalCode\n          addressRegionCode\n        }\n      }\n    }\n  }\n"]);return _templateObject2=function(){return e},e}SocialMediaLinksForm.tenantFragment=A;let N=(0,r.Ps)(StripeInfoForm_templateObject()),y=(0,r.Ps)(StripeInfoForm_templateObject1(),N),E=(0,r.Ps)(_templateObject2()),StripeInfoForm=e=>{var n,i,t,r,a,c,u,h,_,S,A,L,N,P,O,F,D,R,T,k,U,w,M,z,B,q;let{stripeCustomerId:X}=e,Q=(0,j.pm)(),Y=(0,x.qY)(),{error:K,data:$}=(0,d.a)(E,{variables:{input:{stripeCustomerId:X}}}),G=null==$?void 0:$.getTenantStripeCustomer.customer,Z=l.useMemo(()=>{var e,n,i,t,o,r,d,s,l,a,c,u,v,h,m,j,x,p;return{name:null!==(l=null==G?void 0:G.name)&&void 0!==l?l:"",description:null!==(a=null==G?void 0:G.description)&&void 0!==a?a:"",phoneNumber:null!==(c=null==G?void 0:null===(e=G.contact)||void 0===e?void 0:e.phoneNumber)&&void 0!==c?c:"",email:null!==(u=null==G?void 0:null===(n=G.contact)||void 0===n?void 0:n.email)&&void 0!==u?u:"",addressLine0:null!==(v=null==G?void 0:null===(i=G.contact)||void 0===i?void 0:i.addressLine0)&&void 0!==v?v:"",addressLine1:null!==(h=null==G?void 0:null===(t=G.contact)||void 0===t?void 0:t.addressLine1)&&void 0!==h?h:"",addressLocality:null!==(m=null==G?void 0:null===(o=G.contact)||void 0===o?void 0:o.addressLocality)&&void 0!==m?m:"",addressAdministrativeArea:null!==(j=null==G?void 0:null===(r=G.contact)||void 0===r?void 0:r.addressAdministrativeArea)&&void 0!==j?j:"",addressPostalCode:null!==(x=null==G?void 0:null===(d=G.contact)||void 0===d?void 0:d.addressPostalCode)&&void 0!==x?x:"",addressRegionCode:null!==(p=null==G?void 0:null===(s=G.contact)||void 0===s?void 0:s.addressRegionCode)&&void 0!==p?p:""}},[null==G?void 0:null===(n=G.contact)||void 0===n?void 0:n.addressRegionCode,null==G?void 0:null===(i=G.contact)||void 0===i?void 0:i.addressPostalCode,null==G?void 0:null===(t=G.contact)||void 0===t?void 0:t.addressAdministrativeArea,null==G?void 0:null===(r=G.contact)||void 0===r?void 0:r.addressLocality,null==G?void 0:null===(a=G.contact)||void 0===a?void 0:a.addressLine1,null==G?void 0:null===(c=G.contact)||void 0===c?void 0:c.addressLine0,null==G?void 0:null===(u=G.contact)||void 0===u?void 0:u.email,null==G?void 0:null===(h=G.contact)||void 0===h?void 0:h.phoneNumber,null==G?void 0:G.description,null==G?void 0:G.name]),{register:H,formState:{errors:W,isSubmitting:J},handleSubmit:V,reset:ee}=(0,f.cI)({defaultValues:Z});l.useEffect(()=>ee(Z),[Z,ee]);let[en]=(0,m.D)(y),ei=V(async e=>{try{await en({variables:{input:{stripeCustomerId:null==G?void 0:G.stripeCustomerId,data:{name:e.name,description:e.description,contactInfo:{phoneNumber:e.phoneNumber,email:e.email,addressLine0:e.addressLine0,addressLine1:e.addressLine1,addressLocality:e.addressLocality,addressAdministrativeArea:e.addressAdministrativeArea,addressPostalCode:e.addressPostalCode,addressRegionCode:e.addressRegionCode}}}}}),Y.onClose()}catch(e){Q({status:"error",description:e.message})}});return K?(0,o.jsx)(v.S,{}):(0,o.jsx)(b.CX,{...Y,children:(0,o.jsx)(b.sD,{children:(0,o.jsxs)(s.Kq,{spacing:"4",children:[(0,o.jsxs)(s.Kq,{direction:"row",spacing:"4",children:[(0,o.jsxs)(s.Kq,{spacing:"0",flex:"1",children:[(0,o.jsx)(s.xv,{textStyle:"xlBodyStrong",children:"Stripe Billing Info"}),(0,o.jsx)(s.xv,{textStyle:"compact",color:"gray.500",children:"Update your Str
1ipe customer billing details"})]}),(0,o.jsx)(b.yP,{})]}),(0,o.jsx)(b.p0,{children:(0,o.jsxs)(s.Kq,{spacing:"10",children:[(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Name"}),(0,o.jsx)(I.II,{placeholder:"Name",...H("name")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Description"}),(0,o.jsx)(I.II,{placeholder:"Description",...H("description")})]}),(0,o.jsxs)(p.NI,{isInvalid:!!W.phoneNumber,isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Phone Number"}),(0,o.jsx)(I.II,{placeholder:"(000)-000-0000",...H("phoneNumber")}),(0,o.jsx)(p.J1,{children:null===(_=W.phoneNumber)||void 0===_?void 0:_.message})]}),(0,o.jsxs)(p.NI,{isInvalid:!!W.email,isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Email"}),(0,o.jsx)(I.II,{placeholder:"[email protected]",...H("email",{validate:{email:e=>!e||C.rB.EmailWithTLD.test(e)||"You must enter a valid email address"}})}),(0,o.jsx)(p.J1,{children:null===(S=W.email)||void 0===S?void 0:S.message})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Street Address"}),(0,o.jsx)(I.II,{placeholder:"Street Address",...H("addressLine0")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Street Address (Continued)"}),(0,o.jsx)(I.II,{placeholder:"Street Address (Continued)",...H("addressLine1")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"City"}),(0,o.jsx)(I.II,{placeholder:"City",...H("addressLocality")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"State"}),(0,o.jsx)(I.II,{placeholder:"State",...H("addressAdministrativeArea")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Zip Code"}),(0,o.jsx)(I.II,{placeholder:"Zip Code",...H("addressPostalCode")})]}),(0,o.jsxs)(p.NI,{isDisabled:J,children:[(0,o.jsx)(p.lX,{children:"Country"}),(0,o.jsx)(I.II,{placeholder:"Country",...H("addressRegionCode")})]})]})}),(0,o.jsx)(b.EO,{children:(0,o.jsxs)(s.Kq,{spacing:"10",children:[(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Name"}),(null==G?void 0:G.name)?(0,o.jsx)(g.Ic,{children:null==G?void 0:G.name}):(0,o.jsx)(g.Bl,{children:"No name provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Description"}),(null==G?void 0:G.description)?(0,o.jsx)(g.Ic,{children:null==G?void 0:G.description}):(0,o.jsx)(g.Bl,{children:"No description provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Phone Number"}),(null==G?void 0:null===(A=G.contact)||void 0===A?void 0:A.phoneNumber)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(L=G.contact)||void 0===L?void 0:L.phoneNumber}):(0,o.jsx)(g.Bl,{children:"No phone number provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Email"}),(null==G?void 0:null===(N=G.contact)||void 0===N?void 0:N.email)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(P=G.contact)||void 0===P?void 0:P.email}):(0,o.jsx)(g.Bl,{children:"No email provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Street Address"}),(null==G?void 0:null===(O=G.contact)||void 0===O?void 0:O.addressLine0)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(F=G.contact)||void 0===F?void 0:F.addressLine0}):(0,o.jsx)(g.Bl,{children:"No street address provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Street Address (Continued)"}),(null==G?void 0:null===(D=G.contact)||void 0===D?void 0:D.addressLine1)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(R=G.contact)||void 0===R?void 0:R.addressLine1}):(0,o.jsx)(g.Bl,{children:"No street address provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"City"}),(null==G?void 0:null===(T=G.contact)||void 0===T?void 0:T.addressLocality)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(k=G.contact)||void 0===k?void 0:k.addressLocality}):(0,o.jsx)(g.Bl,{children:"No city provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"State"}),(null==G?void 0:null===(U=G.contact)||void 0===U?void 0:U.addressAdministrativeArea)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(w=G.contact)||void 0===w?void 0:w.addressAdministrativeArea}):(0,o.jsx)(g.Bl,{children:"No state provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Zip Code"}),(null==G?void 0:null===(M=G.contact)||void 0===M?void 0:M.addressPostalCode)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(z=G.contact)||void 0===z?void 0:z.addressPostalCode}):(0,o.jsx)(g.Bl,{children:"No zip code provided"})]}),(0,o.jsxs)(g.Q_,{children:[(0,o.jsx)(g.zt,{children:"Country"}),(null==G?void 0:null===(B=G.contact)||void 0===B?void 0:B.addressRegionCode)?(0,o.jsx)(g.Ic,{children:null==G?void 0:null===(q=G.contact)||void 0===q?void 0:q.addressRegionCode}):(0,o.jsx)(g.Bl,{children:"No country provided"})]})]})}),(0,o.jsxs)(b.FT,{children:[(0,o.jsx)(b.$l,{isDisabled:J}),(0,o.jsx)(b.$P,{onClick:ei,isLoading:J,children:"Save Changes"})]})]})})})};
1function ContactInfoPage_templateObject(){let e=(0,t._)(["\n  query ContactInfoPage_Tenant {\n    tenant {\n      result {\n        _id\n        stripeCustomerId\n        ...ContactInfoForm_TenantFragment\n        ...SocialMediaLinksForm_TenantFragment\n      }\n    }\n  }\n  ","\n  ","\n"]);return ContactInfoPage_templateObject=function(){return e},e}let P=(0,r.Ps)(ContactInfoPage_templateObject(),ContactInfoForm.tenantFragment,SocialMediaLinksForm.tenantFragment);var O=(0,i(52609).z)(()=>{let{data:e,loading:n,error:i}=(0,d.a)(P),{cms:t}=(0,h.g)();return(0,o.jsx)(c.C,{children:(0,o.jsxs)(a.DY,{maxWidth:"container.md",marginX:"auto",children:[(0,o.jsx)(a.yG,{justifyContent:"space-between",children:(0,o.jsx)(a.lm,{children:"General Settings"})}),(0,o.jsx)(a.hb,{children:n?(0,o.jsx)(u.g,{}):i?(0,o.jsx)(v.S,{}):(null==e?void 0:e.tenant.result)?(0,o.jsxs)(s.Kq,{spacing:"4",children:[(0,o.jsx)(ContactInfoForm,{tenant:e.tenant.result}),t&&(0,o.jsx)(SocialMediaLinksForm,{tenant:e.tenant.result}),e.tenant.result.stripeCustomerId&&(0,o.jsx)(StripeInfoForm,{stripeCustomerId:e.tenant.result.stripeCustomerId})]}):(0,o.jsx)(v.S,{})})]})})},{requiresEvery:[C.lj.ADMIN_ROLE]})},52609:function(e,n,i){"use strict";i.d(n,{z:function(){return restrictedRoute}});var t=i(85893),o=i(11163),r=i(67294),d=i(39174),s=i(63205),l=i(62893),a=i(69171),c=i(47503),u=i(45893),v=i(93064);let h=new Map([[v.lj.AUTHENTICATION,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n._id)}],[v.lj.ADMIN_ROLE,e=>{var n,i;return(null===(n=e.user)||void 0===n?void 0:n.role)===c.uA.ADMIN||(null===(i=e.user)||void 0===i?void 0:i.role)===c.uA.MORGOTH}],[v.lj.MORGOTH_ROLE,e=>{var n;return(null===(n=e.user)||void 0===n?void 0:n.role)===c.uA.MORGOTH}],[v.lj.COMMUNITY_ACCESS,e=>{var n;return(null==e?void 0:null===(n=e.tenant)||void 0===n?void 0:n.communityAccessConfig)===c.iX.PUBLIC?!e.user||e.user.canAccessCommunity:!!e.user&&e.user.canAccessCommunity}],[v.lj.COMMUNITY_READ_ONLY_ACCESS,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n.canAccessCommunityReadOnly)}],[v.lj.SPONSOR_DASHBOARD_ACCESS,e=>{var n,i;return!!(null===(i=e.user)||void 0===i?void 0:null===(n=i.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationSponsorship)}],[v.lj.SPONSOR_DIRECTORY_ACCESS,e=>{var n,i,t;switch(null===(n=e.tenant)||void 0===n?void 0:n.sponsorDirectoryAccessConfig){case c.pZ.PUBLIC:return!0;case c.pZ.LOGGED_IN_USERS:return!!(null===(i=e.user)||void 0===i?void 0:i._id);case c.pZ.HIDDEN:return!1;default:throw Error("unknown sponsorDirectoryAccessConfig: ".concat(null===(t=e.tenant)||void 0===t?void 0:t.sponsorDirectoryAccessConfig))}}],[v.lj.MEMBER_DIRECTORY_ACCESS,e=>{var n;return!!(null===(n=e.tenant)||void 0===n?void 0:n.currentUserPermissions.canAccessMemberDirectory)}],[v.lj.EVENTS_FEED_ACCESS,e=>{var n;return!!(null===(n=e.tenant)||void 0===n?void 0:n.currentUserPermissions.canAccessEventsFeed)}],[v.lj.ORGANIZATION_DASHBOARD_ACCESS,e=>{var n,i;return!!(null===(i=e.user)||void 0===i?void 0:null===(n=i.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationProfile)}],[v.lj.DM_PAGE_ACCESS,e=>{var n;return!!(null===(n=e.user)||void 0===n?void 0:n.canAccessDMPage)}],[v.lj.ORGANIZATION_MEMBERSHIP_ACCESS,e=>{var n,i;return!!(null===(i=e.user)||void 0===i?void 0:null===(n=i.rosterOrganization)||void 0===n?void 0:n.currentUserOrganizationPermission.canManageOrganizationMembership)}],[v.lj.FEATURE_FLAG_CMS,e=>{var n,i;return!!(null===(i=e.tenant)||void 0===i?void 0:null===(n=i.featureFlags)||void 0===n?void 0:n.cms)}],[v.lj.FEATURE_FLAG_CONFERENCES,e=>{var n,i;return!!(null===(i=e.tenant)||void 0===i?void 0:null===(n=i.featureFlags)||void 0===n?void 0:n.conferences)}],[v.lj.FEATURE_FLAG_WEBFLOW,e=>{var n,i;return!!(null===(i=e.tenant)||void 0===i?void 0:null===(n=i.featureFlags)||void 0===n?void 0:n.webflow)}],[v.lj.PAID_MODULE_WEBSITE_BUILDER,e=>{var n,i;return!!(null===(i=e.tenant)||void 0===i?void 0:null===(n=i.paidModules)||void 0===n?void 0:n.websiteBuilder)}]]),useRequiredPermission=e=>{let n=(0,u.x)();if(!e.requiresEvery&&!e.requiresSome)return{hasPermission:!0,loading:!1};if(n.loading)return{hasPermission:!1,loading:!0};let i=null==e||!e.requiresEvery||(null==e?void 0:e.requiresEvery.map(e=>h.get(e)).every(e=>!e||e(n))),t=null==e||!e.requiresSome||(null==e?void 0:e.requiresSome.map(e=>h.get(e)).some(e=>!!e&&e(n)));return{hasPermission:i&&t,loading:!1}},restrictedRoute=(e,n,i)=>c=>{let u=(0,o.useRouter)(),v=useRequiredPermission(n),h=(0,l.T)(),m=(0,s.U)(),j=v.loading||h.isLoading||m.loading,x=!!i&&!!i.requiresMemberManagement&&!m.isActive;return(r.useEffect(()=>{j||v.hasPermission&&!x||h.isAuthenticated||!u.isReady||u.replace({pathname:"/login",query:{redirect:u.asPath}})},[j,u,x,h.isAuthenticated,v.hasPermission]),j)?(0,t.jsx)(a.g,{}):!v.hasPermission||x?h.isAuthenticated?(0,t.jsx)(d.A,{}):(0,t.jsx)(a.g,{}):(0,t.jsx)(e,{...c})}}},function(e){e.O(0,[64986,96317,49774,92888,40179],function(){return e(e.s=47362)}),_N_E=e.O()}]);
2//# sourceMappingURL=contactInfo-4cded4ee2ba5c762.js.map

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.