1import{Db as me,Eb as pe}from"./chunk-LS24A6DE.js";import"./chunk-HZQBPZ6S.js";import"./chunk-ATIKRMP4.js";import{G as K,p as J}from"./chunk-BNOJBRMD.js";import"./chunk-LHWEQBOF.js";import"./chunk-FZMOTBLQ.js";import"./chunk-SURXIWHQ.js";import"./chunk-PCNP43ZE.js";import"./chunk-5RGCCF7U.js";import"./chunk-X4KWURHK.js";import"./chunk-RPNPA6V7.js";import{a as de}from"./chunk-TSAGDD3L.js";import"./chunk-2KLHVVXY.js";import{a as X}from"./chunk-SCWNZYRH.js";import{G as te,H as ie,Q as I,z as ee}from"./chunk-PULBI4KM.js";import"./chunk-VCVYGOTU.js";import"./chunk-CU2PC3Q3.js";import{d as a,g as ne,h as re,j as c,l as oe,o as ae,w as se}from"./chunk-7RCWNHPV.js";import{b as le}from"./chunk-UVZTK3KN.js";import"./chunk-HCR3IRH2.js";import"./chunk-V4O2LDMY.js";import"./chunk-7APWGJ42.js";import"./chunk-5GQMBFD7.js";import"./chunk-FYGCEZKN.js";import{a as T}from"./chunk-YW6DWN4T.js";import"./chunk-KBN5CF3F.js";import{f as j,m as H,p as _,s as Y,sa as Z}from"./chunk-PT5IPMWH.js";import"./chunk-M6TI2MTM.js";import"./chunk-V2XY4QMO.js";import"./chunk-XFESIM43.js";import{a as Q}from"./chunk-A5KRY6GU.js";import"./chunk-EN7UBUB7.js";import{p as V,q as m}from"./chunk-ICEETNFI.js";import"./chunk-4KBURNX4.js";import{d as y}from"./chunk-G44W6JOE.js";import"./chunk-B6STJHB2.js";import{j as G}from"./chunk-PWUAYS4F.js";import"./chunk-YJKRYWMV.js";import"./chunk-ZDR3KJJS.js";import"./chunk-KTIPPCE2.js";import{o as B}from"./chunk-IVJ2I5VN.js";import{$b as F,Aa as O,C as M,Cb as D,E as f,Ec as n,Gb as W,Gc as R,L as v,N,Na as U,Vc as h,Wc as u,Zb as E,aa as S,ca as L,dc as s,ea as x,ec as t,fc as i,ga as k,gb as $,gc as p,hb as w,id as A,mb as o,nc as q,rc as z,s as g,sa as b,tc as C,za as P}from"./chunk-EN2B4KZW.js";import"./chunk-4KIXNS7N.js";function he(l,ce){if(l&1&&(t(0,"p",26),n(1),h(2,"async"),i()),l&2){let e=C(2);o(),R(" ",u(2,1,e.ssnError$)," ")}}function ue(l,ce){if(l&1){let e=q();t(0,"h1",0),n(1,"W-9 Tax Form"),i(),t(2,"form",1),z("submit",function(){P(e);let d=C();return O(d.onSubmit())}),t(3,"div",2)(4,"p")(5,"strong"),n(6," In accordance with United States federal tax guidelines, we are required to collect your W-9 information before we can allow you to continue playing or exchange the Redeemable Sweeps Coins that you won for a digital gift card or cash prize payout."),i()(),t(7,"p")(8,"strong"),n(9,"Thank you in advance for completing this form."),i()(),t(10,"ul")(11,"li"),n(12," More information about the W-9 form and process is available on the "),t(13,"a",3),n(14,"IRS website"),i()(),t(15,"li"),n(16," All information is stored securely and will only be used for annual tax reporting purposes. "),i(),t(17,"li"),n(18," If you have any questions or need further assistance, please contact our "),t(19,"a",4),h(20,"async"),n(21,"Support Team"),i()()()(),t(22,"h2",5)(23,"span",6),n(24," Form "),p(25,"br"),n(26,"W-9 "),i(),t(27,"span",7),n(28,"Request for Taxpayer Identification Number and Certification"),i()(),t(29,"fieldset",8),p(30,"app-ghg-text-input",9)(31,"app-ghg-text-input",10)(32,"app-ghg-text-input",11),i(),t(33,"div",12)(34,"span",13),n(35,"ADDRESS -\xA0"),i(),t(36,"a",4),h(37,"async"),n(38,"CHANGE ADDRESS"),i(),p(39,"address",14),h(40,"async"),i(),t(41,"header",15)(42,"h3",16)(43,"span",17),n(44,"Part I"),i(),t(45,"span",18),n(46,"Taxpayer Identification Number"),i()()(),t(47,"fieldset",19)(48,"legend",20),n(49,"Social Security Number"),i(),t(50,"div",21),p(51,"app-ghg-text-input",22),t(52,"span",23),n(53,"\u2014"),i(),p(54,"app-ghg-text-input",24),t(55,"span",23),n(56,"\u2014"),i(),p(57,"app-ghg-text-input",25),i(),E(58,he,3,3,"p",26),h(59,"async"),i(),t(60,"header",15)(61,"h3",16)(62,"span",17),n(63,"Part II"),i(),t(64,"span",18),n(65,"Certification"),i()()(),t(66,"div",27)(67,"h3",28),n(68,"Under penalties of perjury, I certify that:"),i(),t(69,"ol")(70,"li"),n(71," The number shown on this form is my correct taxpayer identification number; and "),i(),t(72,"li"),n(73," I am not subject to backup withholding because: (a) I am exempt from backup withholding, or (b) I have not been notified by the Internal Revenue Service (IRS) that I am subject to backup withholding as a result of a failure to report all interest or dividends, or (c) the IRS has notified me that I am no longer subject to backup withholding; and "),i(),t(74,"li"),n(75,"I am a U.S. citizen or other U.S. person."),i()()(),t(76,"div",29)(77,"button",30),n(78," Submit "),i()()()}if(l&2){let e=C();o(2),s("formGroup",e.validatingForm),o(17),s("href",u(20,20,e.supportUrl$),w),o(11),s("control",e.firstNameControl)("controlErrors",e.firstNameInputErrors)("maxlength",e.nameMaxLength.toString()),o(),s("control",e.middleNameControl)("maxlength",e.nameMaxLength.toString()),o(),s("control",e.lastNameControl)("controlErrors",e.lastNameInputErrors)("maxlength",e.nameMaxLength.toString()),o(4),s("href",u(37,22,e.updateAccountInfoLink$),w),o(3),s("innerHTML",u(40,24,e.formattedUserAddress$),$),o(12),s("control",e.ssnFirstThreeControl)("centerInputValue",!0),o(3),s("control",e.ssnMiddleTwoControl)("centerInputValue",!0),o(3),s("control",e.ssnLastFourControl)("centerInputValue",!0),o(),F(u(59,26,e.ssnError$)?58:-1),o(19),s("disabled",e.validatingForm.invali
1d||e.validatingForm.untouched)}}var Me=(()=>{class l extends le{constructor(){super(...arguments),this.store=b(V),this.router=b(G),this.cdr=b(A),this.supportUrl$=this.store.pipe(m(_),f(e=>!!e),g(e=>T.getSupportUrl(e))),this.updateAccountInfoLink$=this.store.pipe(m(_),f(e=>!!e),g(e=>T.getTicketUrl(y.zendesk.ticketFormIds.updateAccountInfo,e))),this.formattedUserAddress$=this.store.pipe(m(H),g(e=>X.formatAddress(e))),this.pageLoaded=!1,this.nameMaxLength=30,this.firstNameControl=new c("",[a.required]),this.firstNameInputErrors=[{validationName:a.required.name,errorText:y.inlineErrorMessages.requiredField}],this.middleNameControl=new c(""),this.lastNameControl=new c("",[a.required]),this.lastNameInputErrors=[{validationName:a.required.name,errorText:y.inlineErrorMessages.requiredField}],this.ssnFirstThreeControl=new c("",[a.required,a.maxLength(3),a.minLength(3)]),this.ssnMiddleTwoControl=new c("",[a.required,a.maxLength(2),a.minLength(2)]),this.ssnLastFourControl=new c("",[a.required,a.maxLength(4),a.minLength(4)]),this.validatingForm=new re({firstName:this.firstNameControl,middleName:this.middleNameControl,lastName:this.lastNameControl,ssnFirstThree:this.ssnFirstThreeControl,ssnMiddleTwo:this.ssnMiddleTwoControl,ssnLastFour:this.ssnLastFourControl}),this.ssnError$=M(this.ssnFirstThreeControl.valueChanges,this.ssnMiddleTwoControl.valueChanges,this.ssnLastFourControl.valueChanges).pipe(L(""),g(()=>{let e=this.ssnFirstThreeControl.touched||this.ssnMiddleTwoControl.touched||this.ssnLastFourControl.touched,r=this.ssnFirstThreeControl.invalid||this.ssnMiddleTwoControl.invalid||this.ssnLastFourControl.invalid;return e&&r?"This social security number is invalid":null}))}ngOnInit(){this.store.pipe(m(Y),v(1),k(e=>{e||this.router.navigate([`${Q.LOBBY}`])}),N(250)).subscribe(()=>{this.pageLoaded=!0,this.cdr.markForCheck()}),this.store.pipe(m(me),S(1),f(e=>!!e.errorCode),x(this.destroyed$)).subscribe(()=>{this.store.pipe(m(Z),v(1)).subscribe(e=>this.store.dispatch(te({isLoggedIn:e})))}),this.store.pipe(m(pe),S(1),f(e=>!!e.errorCode),x(this.destroyed$)).subscribe(e=>{this.store.dispatch(I({message:`Unhandled ${e.errorCode} - see console for details`,titleText:"Payment REST Failure"}))}),this.store.pipe(m(j),x(this.destroyed$)).subscribe(e=>this.loggedInUser=e)}onSubmit(){if(this.validatingForm.valid){let e=this.loggedInUser?.w9_forms.reduce((r,d)=>d.is_required&&!d.submitted_at?d:r.is_required&&!r.submitted_at?r:d.tax_year>r.tax_year?d:r);if(e){let r={tax_year:e.tax_year.toString(),first_name:this.firstNameControl.value,middle_name:this.middleNameControl.value??"",last_name:this.lastNameControl.value,ssn:`${this.ssnFirstThreeControl.value}${this.ssnMiddleTwoControl.value}${this.ssnLastFourControl.value}`,onSuccess:()=>{this.store.dispatch(J()),this.store.dispatch(ee())},onError:()=>{this.store.dispatch(I({message:"The submission of the W-9 form was not successful. Please contact customer support.",titleText:"Submission Failed"}))}};this.store.dispatch(K({payload:r}))}else this.store.dispatch(ie({message:"Submission of a W9 form is not required at this time.",title:"W9 Not Required"}))}}static{this.\u0275fac=(()=>{let e;return function(d){return(e||(e=U(l)))(d||l)}})()}static{this.\u0275cmp=D({type:l,selectors:[["app-w9-form"]],features:[W],decls:1,vars:1,consts:[[1,"visually-hidden"],[3,"submit","formGroup"],[1,"header-copy"],["href","https://www.irs.gov/forms-pubs/about-form-w-9","target","_blank","rel","noopener noreferrer"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"d-flex","align-items-center","h5"],[1,"text-center"],[1,"flex-1"],[1,"d-flex","flex-wrap"],["inputSize","medium","id","firstName","type","text","autocomplete","given-name","placeholder","First Name","labelText","First Name",1,"flex-grow-1",3,"control","controlErrors","maxlength"],["inputSize","medium","id","middleName","type","text","autocomplete","additional-name","placeholder","Middle Name(s)","labelText","Middle Name(s)","hint","Optional",1,"flex-grow-1",3,"control","maxlength"],["inputSize","medium","id","lastName","type","text","autocomplete","family-name","placeholder","Last Name","labelText","Last Name",1,"flex-grow-1",3,"control","controlErrors","maxlength"],[1,"my-2","p-3"],[1,"d-inline-block"],[1,"mb-0",3,"innerHTML"],[1,"mb-3"],[1,"h5","mb-0","d-flex","gap-1","align-items-center"],[1,"px-3","align-self-stretch","align-content-center"],[1,"p-1"],[1,"mb-4","d-block"],[1,"h6","font-weight-bold"],[1,"d-flex","align-items-center","gap-1"],["labelClass","visually-hidden","inputSize","medium","maxlength","3","id","ssnFirstThree","type","text","inputmode","numeric","placeholder","###","labelText","First 3 digits","allowOnlyCharactersPattern","^[0-9]*$",1,"n
1o-border",3,"control","centerInputValue"],["aria-hidden","true"],["labelClass","visually-hidden","inputSize","medium","maxlength","2","id","ssnMiddleTwo","type","text","inputmode","numeric","placeholder","##","labelText","Middle 2 digits","allowOnlyCharactersPattern","^[0-9]*$",1,"no-border",3,"control","centerInputValue"],["labelClass","visually-hidden","inputSize","medium","maxlength","4","id","ssnLastFour","type","text","inputmode","numeric","placeholder","####","labelText","Last 4 digits","allowOnlyCharactersPattern","^[0-9]*$",1,"no-border",3,"control","centerInputValue"],["id","ssn-error","role","alert",1,"text-danger","mb-0"],[1,"w9-certification"],[1,"h5"],[1,"text-center","p-2"],["type","submit",1,"block-button",3,"disabled"]],template:function(r,d){r&1&&E(0,ue,79,28),r&2&&F(d.pageLoaded?0:-1)},dependencies:[se,oe,ne,ae,de,B],styles:["[_nghost-%COMP%]{display:block;margin-inline:auto;padding-inline:var(--space-s);padding-block-start:var(--space-s);max-width:1140px}form[_ngcontent-%COMP%]{border:var(--t-border-width-thin) solid var(--t-text-primary);padding:var(--space-s);margin-bottom:var(--space-s)}h2[_ngcontent-%COMP%]{border-block-end:.25em solid var(--t-border-primary)}h2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:calc(var(--space-s) * .9)}h2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{border-inline-end:.25em solid var(--t-border-primary)}@media screen and (max-width: 470px){h2[_ngcontent-%COMP%]{font-size:calc(var(--step-0) * .9)}}fieldset[_ngcontent-%COMP%] app-ghg-text-input[_ngcontent-%COMP%]:not(.no-border){padding-inline:var(--space-s);padding-block:var(--space-xs);border:var(--t-border-width-thin) solid var(--t-text-primary);box-sizing:border-box}header[_ngcontent-%COMP%]{border:var(--t-border-width-large) solid var(--t-border-primary)}header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-of-type{display:inline-block;width:5.75em;background-color:var(--t-surface-secondary)}@media screen and (max-width: 470px){header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:calc(var(--step-0) * .9)}}[role=alert][_ngcontent-%COMP%]{font-size:calc(var(--step-0) * .85)}"],changeDetection:0})}}return l})();export{Me as W9FormComponent};
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.