performance.mark("js-parse-end:39250-d8a25e2693e66f05.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["39250"],{88073(e,t,i){i.d(t,{r:()=>u});var n=i(74848),a=i(16522),s=i(96540);function r(e){let t,i,s,r,o,l=(0,a.c)(16),{fieldName:c,hasPhone:d,labelClass:m,formControlClass:u,privacyStatementHref:h,emailSubscriptionSettingsLinkHref:f,children:p}=e,x=void 0!==d&&d?"and phone":null;return l[0]!==f?(t=(0,n.jsx)("a",{href:f,className:"text-underline",children:"Promotional Communications Manager"}),l[0]=f,l[1]=t):t=l[1],l[2]!==h?(i=(0,n.jsx)("a",{href:h,className:"text-underline",children:"GitHub Privacy Statement"}),l[2]=h,l[3]=i):i=l[3],l[4]!==x||l[5]!==t||l[6]!==i?(s=(0,n.jsxs)("p",{children:["Yes, please, I'd like to hear from GitHub and its family of companies via email"," ",x," for personalized communications, targeted advertising, and campaign effectiveness. To withdraw consent or manage your contact preferences, visit the"," ",t,"."," ",i,"."]}),l[4]=x,l[5]=t,l[6]=i,l[7]=s):s=l[7],l[8]!==p||l[9]!==c||l[10]!==m||l[11]!==s?(r=(0,n.jsxs)("label",{htmlFor:c,className:m,"data-testid":"label",children:[p,s]}),l[8]=p,l[9]=c,l[10]=m,l[11]=s,l[12]=r):r=l[12],l[13]!==u||l[14]!==r?(o=(0,n.jsx)("div",{className:u,children:r}),l[13]=u,l[14]=r,l[15]=o):o=l[15],o}function o(e){let t,i,s,r,o,l,c,d=(0,a.c)(21),{fieldName:m,labelClass:u,formControlClass:h,noticeClass:f,privacyStatementHref:p,children:x,exampleFields:g,listExampleFields:v}=e,b=void 0!==v&&v;return d[0]!==g||d[1]!==b?(t=b?`The information used includes, but is not limited to, ${new Intl.ListFormat().format(g)}.`:null,d[0]=g,d[1]=b,d[2]=t):t=d[2],d[3]!==p?(i=(0,n.jsxs)("span",{children:["See the"," ",(0,n.jsx)("a",{href:p,className:"text-underline",children:"GitHub Privacy Statement"})," ","for more details."]}),d[3]=p,d[4]=i):i=d[4],d[5]!==t||d[6]!==i?(s=(0,n.jsxs)("p",{children:["Yes please, I'd like GitHub and affiliates to use my information for personalized communications, targeted advertising and campaign effectiveness."," ",t," ",i]}),d[5]=t,d[6]=i,d[7]=s):s=d[7],d[8]!==x||d[9]!==m||d[10]!==u||d[11]!==s?(r=(0,n.jsxs)("label",{htmlFor:m,className:u,"data-testid":"label",children:[x,s]}),d[8]=x,d[9]=m,d[10]=u,d[11]=s,d[12]=r):r=d[12],d[13]!==h||d[14]!==r?(o=(0,n.jsx)("div",{className:h,children:r}),d[13]=h,d[14]=r,d[15]=o):o=d[15],d[16]!==f?(l=(0,n.jsx)("p",{className:f,children:"Participation requires transferring your personal data to other countries in which GitHub operates, including the United States. By submitting this form, you agree to the transfer of your data outside of China."}),d[16]=f,d[17]=l):l=d[17],d[18]!==o||d[19]!==l?(c=(0,n.jsxs)(n.Fragment,{children:[o,l]}),d[18]=o,d[19]=l,d[20]=c):c=d[20],c}function l(e){let t,i,s,r,o,l=(0,a.c)(16),{fieldName:c,labelClass:d,formControlClass:m,privacyStatementHref:u,children:h,exampleFields:f,listExampleFields:p}=e,x=void 0!==p&&p;return l[0]!==f||l[1]!==x?(t=x?`The information used includes, but is not limited to, ${new Intl.ListFormat().format(f)}.`:null,l[0]=f,l[1]=x,l[2]=t):t=l[2],l[3]!==u?(i=(0,n.jsxs)("span",{children:["See the"," ",(0,n.jsx)("a",{href:u,className:"text-underline",children:"GitHub Privacy Statement"})," ","for more details."]}),l[3]=u,l[4]=i):i=l[4],l[5]!==t||l[6]!==i?(s=(0,n.jsxs)("p",{children:["Yes please, I'd like GitHub and affiliates to use my information for personalized communications, targeted advertising and campaign effectiveness."," ",t," ",i]}),l[5]=t,l[6]=i,l[7]=s):s=l[7],l[8]!==h||l[9]!==c||l[10]!==d||l[11]!==s?(r=(0,n.jsxs)("label",{htmlFor:c,className:d,"data-testid":"label",children:[h,s]}),l[8]=h,l[9]=c,l[10]=d,l[11]=s,l[12]=r):r=l[12],l[13]!==m||l[14]!==r?(o=(0,n.jsx)("div",{className:m,children:r}),l[13]=m,l[14]=r,l[15]=o):o=l[15],o}function c(e){let t,i,r,o,l,c,d,m,u,h,f,p,x,g,v,b,j,y,N,k,C,S,I,P=(0,a.c)(54),{fieldName:_,exampleFields:H,formControlClass:F,noticeClass:G,privacyStatementHref:w,children:T,onValidationChange:E,emphasizedTextForKoreaClass:U}=e,q=void 0===U?"text-bold f3":U;P[0]!==H?(t=H.join(", "),P[0]=H,P[1]=t):t=P[1];let z=t,[L,R]=(0,s.useState)(!1);P[2]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{R(e.target.checked)},P[2]=i):i=P[2];let Y=i;return P[3]!==L||P[4]!==E?(r=()=>{E&&E(L)},o=[E,L],P[3]=L,P[4]=E,P[5]=r,P[6]=o):(r=P[5],o=P[6]),(0,s.useEffect)(r,o),P[7]!==L?(l=(0,n.jsx)("input",{type:"checkbox",id:"south-korea-primary-consent",checked:L,onChange:Y,required:!0}),P[7]=L,P[8]=l):l=P[8],P[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)("p",{children:"I agree to the collection and use of my personal information (required)*:"}),P[9]=c):c=P[9],P[10]!==z?(d=(0,n.jsxs)("li",{children:["Items of Personal Information to be Collected: ",z,", and any other fields visible on this form."]}),P[10]=z,P[11]=d):d=P[11],P[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,n.jsx)("li",{children:"Purpose of Collection and Use: GitHub will use the data for the purpose described on this form."}),P[12]=m):m=P[12],P[13]!==q?(u=(0,n.jsxs)("li",{children:["Retention/Use Period of Personal Information:"," ",(0,n.jsx)("span",{className:q,children:"As long as needed to provide the service(s) you are requesting"})]}),P[13]=q,P[14]=u):u=P[14],P[15]!==u||P[16]!==d?(h=(0,n.jsxs)("ul",{className:"my-2 tmp-ml-3",children:[d,m,u]}),P[15]=u,P[16]=d,P[17]=h):h=P[17],P[18]!==h||P[19]!==l?(f=(0,n.jsxs)("label",{htmlFor:"south-korea-primary-consent",className:"text-normal",children:[l,c,h]}),P[18]=h,P[19]=l,P[20]=f):f=P[20],P[21]!==F||P[22]!==f?(p=(0,n.jsx)("div",{className:F,children:f}),P[21]=F,P[22]=f,P[23]=p):p=P[23],P[24]===Symbol.for("react.memo_cache_sentinel")?(x=(0,n.jsx)("p",{children:"I agree to receiving marketing information and use of my personal information for marketing purposes (optional):"}),P[24]=x):x=P[24],P[25]!==q?(g=(0,n.jsxs)("li",{children:[(0,n.jsx)("span",{className:q,children:"Consent to Receive Marketing:"})," The information collected may be used for GitHub for personalized communications, targeted advertising and campaign effectiveness."]}),P[25]=q,P[26]=g):g=P[26],P[27]!==z?(v=(0,n.jsxs)("li",{children:["Items of Personal Information to be Collected: ",z,", and any other fields visible on this form."]}),P[27]=z,P[28]=v):v=P[28],P[29]!==q?(b=(0,n.jsxs)("li",{children:["Purpose of Collection and Use:"," ",(0,n.jsx)("span",{className:q,children:"To contact you for marketing purposes."})]}),P[29]=q,P[30]=b):b=P[30],P[31]!==q?(j=(0,n.jsxs)("li",{children:["Retention/Use Period of Personal Information:"," ",(0,n.jsx)("span",{className:q,children:"As long as needed to provide the service(s) you are requesting."})]}),P[31]=q,P[32]=j):j=P[32],P[33]!==g||P[34]!==v||P[35]!==b||P[36]!==j?(y=(0,n.jsxs)("div",{className:"text-normal",children:[x,(0,n.jsxs)("ul",{className:"my-2 tmp-ml-3",children:[g,v,b,j]})]}),P[33]=g,P[34]=v,P[35]=b,P[36]=j,P[37]=y):y=P[37],P[38]!==T||P[39]!==_||P[40]!==y?(N=(0,n.jsxs)("label",{htmlFor:_,"data-testid":"label",children:[T,y]}),P[38]=T,P[39]=_,P[40]=y,P[41]=N):N=P[41],P[42]!==F||P[43]!==N?(k=(0,n.jsx)("div",{className:F,children:N}),P[42]=F,P[43]=N,P[44]=k):k=P[44],P[45]!==w?(C=(0,n.jsx)("a",{href:w,className:"text-underline",children:"GitHub Privacy Statement"}),P[45]=w,P[46]=C):C=P[46],P[47]!==G||P[48]!==C?(S=(0,n.jsxs)("p",{className:G,children:["You have the right to refuse the collection and use of your personal information, use of personal information for marketing purposes, and receiving marketing information as set forth above. However, if you refuse, you may not be able to receive the benefits described under Purpose of Collection & Use."," ",C,"."]}),P[47]=G,P[48]=C,P[49]=S):S=P[49],P[50]!==p||P[51]!==k||P[52]!==S?(I=(0,n.jsxs)(n.Fragment,{children:[p,k,S]}),P[50]=p,P[51]=k,P[52]=S,P[53]=I):I=P[53],I}r.displayName="Canada",o.displayName="China",l.displayName="Default",c.displayName="SouthKorea";function d(e){let t,i,s=(0,a.c)(5),{labelClass:r,privacyStatementHref:o}=e;return s[0]!==o?(t=(0,n.jsx)("a",{href:o,className:"text-underline",children:"GitHub Privacy Statement"}),s[0]=o,s[1]=t):t=s[1],s[2]!==r||s[3]!==t?(i=(0,n.jsxs)("p",{className:r,children:["I will receive personalized communications and targeted advertising from GitHub and affiliates. See the"," ",t," ","for more details."]}),s[2]=r,s[3]=t,s[4]=i):i=s[4],i}function m(e){let t,i,s,m,u,h,f=(0,a.c)(12);f[0]!==e?({country:i,children:t,implicitOptIn:s,...m}=e,f[0]=e,f[1]=t,f[2]=i,f[3]=s,f[4]=m):(t=f[1],i=f[2],s=f[3],m=f[4]),f[5]!==i||f[6]!==s?(u=function(e,t){switch(e){case"CA":return r;case"CN":return o;case"KR":return c;case"US":if(t.implicitOptIn)return d;return l;default:return l}}(i,{implicitOptIn:s}),f[5]=i,f[6]=s,f[7]=u):u=f[7];let p=u;return f[8]!==p||f[9]!==t||f[10]!==m?(h=(0,n.jsx)(p,{...m,children:t}),f[8]=p,f[9]=t,f[10]=m,f[11]=h):h=f[11],h}function u(e){let t,i,r,o,l,c,d,u,h,f,p,x,g,v,b,j,y=(0,a.c)(34);y[0]!==e?({countryFieldSelector:t,fieldName:i,fieldValue:c,onlySendIfChecked:d,onValidationChange:o,initialCountry:r,implicitOptIn:u,...l}=e,y[0]=e,y[1]=t,y[2]=i,y[3]=r,y[4]=o,y[5]=l,y[6]=c,y[7]=d,y[8]=u):(t=y[1],i=y[2],r=y[3],o=y[4],l=y[5],c=y[6],d=y[7],u=y[8]);let N=void 0===c?"1":c,k=void 0!==d&&d,C=void 0===u||u,[S,I]=(0,s.useState)(r||""),[P,_]=(0,s.useState)(!1);return y[9]!==o?(h=()=>{o&&o(!0)},f=[o],y[9]=o,y[10]=h,y[11]=f):(h=y[10],f=y[11]),(0,s.useEffect)(h,f),y[12]!==t||y[13]!==o?(p=()=>{let e=document.querySelector(t);if(e){let t=e=>{o&&o(!0),I(e.currentTarget.value),_(!1)};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},x=[o,t],y[12]=t,y[13]=o,y[14]=p,y[15]=x):(p=y[14],x=y[15]),(0,s.useEffect)(p,x),y[16]!==i||y[17]!==k?(g=!k&&(0,n.jsx)("input",{type:"hidden",name:i,value:"0","data-testid":"hidden-consent"}),y[16]=i,y[17]=k,y[18]=g):g=y[18],y[19]!==P?(v=()=>_(!P),y[19]=P,y[20]=v):v=y[20],y[21]!==P||y[22]!==i||y[23]!==N||y[24]!==v?(b=(0,n.jsx)("input",{type:"checkbox",name:i,value:N,id:i,className:"form-control",checked:P,onChange:v}),y[21]=P,y[22]=i,y[23]=N,y[24]=v,y[25]=b):b=y[25],y[26]!==S||y[27]!==i||y[28]!==C||y[29]!==o||y[30]!==l||y[31]!==b||y[32]!==g?(j=(0,n.jsx)("div",{"data-testid":"consent-experience",children:(0,n.jsxs)(m,{fieldName:i,country:S,onValidationChange:o,implicitOptIn:C,...l,children:[g,b]})}),y[26]=S,y[27]=i,y[28]=C,y[29]=o,y[30]=l,y[31]=b,y[32]=g,y[33]=j):j=y[33],j}d.displayName="UnitedStates",m.displayName="ConsentLanguage",u.displayName="ConsentExperience"}}]); //# sourceMappingURL=39250-d8a25e2693e66f05-abf66b05b2183d2d.js.map