PageSourceSearch

https://dubhub-demo.netlify.app/_next/static/chunks/pages/update-avatar-3a56aaafd25f2d115900.js

js dubhub-demo.netlify.app collected 2026-10-03 10:41:00 UTC 15,598 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3967],{8750:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});a(7294);var r=a(5893);function n(e){var t=e.reverse,a=void 0!==t&&t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,r.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,r.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:a?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,r.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,r.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,r.jsx)("path",{id:"Path_208","data-name":"Path 208",d:"M-113.356,1004.549l-7.5,7.233,7.5,6.564",transform:"translate(131.581 -992.398)",fill:"none",stroke:a?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,r.jsx)("path",{id:"Path_210","data-name":"Path 210",d:"M-118.748,1012.383h14.883",transform:"translate(130.653 -992.951)",fill:"none",stroke:a?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},6608:function(e,t,a){"use strict";var r=a(7294),n=a(5893);t.Z=r.memo((function(e){var t=e.children;return(0,n.jsx)("div",{className:"anima-container-center-horizontal",children:(0,n.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:t})})}))},5158:function(e,t,a){"use strict";a.d(t,{yZ:function(){return r},tO:function(){return n},sj:function(){return l},kF:function(){return o},I5:function(){return i},u9:function(){return c},T3:function(){return u},lP:function(){return s},$I:function(){return h},sZ:function(){return d},mD:function(){return f},Hx:function(){return p},O0:function(){return v},n9:function(){return m},Gv:function(){return y},rc:function(){return b},rh:function(){return g},Rf:function(){return T},LZ:function(){return N},e:function(){return S},W1:function(){return A},Ik:function(){return C},sT:function(){return E},L3:function(){return R},E6:function(){return x},Pb:function(){return j},Nb:function(){return D},WG:function(){return _},TU:function(){return O},w$:function(){return L},Oj:function(){return H},C2:function(){return I},N_:function(){return w},sf:function(){return k},$Z:function(){return M},$6:function(){return P},zc:function(){return W},eE:function(){return B},ih:function(){return F},y7:function(){return U},lr:function(){return G},Po:function(){return K},Iy:function(){return V},_H:function(){return $},NP:function(){return Z}});var r={DASHBOARD:"dashboard",REWARD_DETAIL:"reward_detail",WALLET_DETAIL:"wallet_detail",ACCOUNT_DETAIL:"account_detail",CARD_DETAIL:"card_detail"},n={MASTER_WALLET:1,REWARD_WALLET:8,VIRTUAL_CARD:3,REWARD_CARD:9,EXTERNAL_CARD:5,BANK_ACCOUNT:4},l={REGULAR_CARD:"REGULAR_CARD",REWARD_CARD:"REWARD_CARD"},o=[n.MASTER_WALLET,n.VIRTUAL_CARD],i=[n.REWARD_WALLET,n.REWARD_CARD],c={MASTERCARD:/^5[1-5][0-9]{1,}|^2[2-7][0-9]{1,}$/,VISA:/^4[0-9]{2,}$/,AMERICAN_EXPRESS:/^3[47][0-9]{5,}$/,DISCOVER:/^6(?:011|5[0-9]{2})[0-9]{3,}$/,DINERS_CLUB:/^3(?:0[0-5]|[68][0-9])[0-9]{4,}$/,JCB:/^(?:2131|1800|35[0-9]{3})[0-9]{3,}$/},u=function(e){return/^\d+$/.test(e)},s={INPUT_FORM:0,TFA_FORM:1,UPDATE_PASSWORD_FORM:2,UPDATE_SSN_FORM:3},h={FORGOT_PASSWORD_FORM:0,UPDATE_PASSWORD_FORM:1,TFA_FORM:2},d={REGISTER:0,TFA_SIGNUP:1,THANK_YOU:2,PACKAGE_SELECTION:3,BERBIX_INSTRUCTION:4,BERBIX_VERIFICATION:5,UPDATE_PASSWORD:6,BILLING_FORM:7,BANK_LINKING:8},f={REGISTER:0,TFA_SIGNUP:1,UPDATE_PASSWORD:2,BANK_LINKING:3},p={LINK_ACCOUNTS_INTERFACE:0,LINK_BANK:1,LINK_EXT_CARD:2,LINK_BANK_INFO:3},v=[{key:"notifySMReceived",title:"Money Received"},{key:"notifyAchFundsAvailable",title:"Funds Available"},{key:"notifyWalletBalanceLow",title:"Wallet Balance",thresholdName:"thresholdWalletBalanceLow"},{key:"notifyPurchase",title:"Card Transactions",thresholdName:"thresholdPurchase"}],m=[{key:"sms",title:"SMS",value:1},{key:"email",title:"Email",value:2},{key:"inapp",title:"InApp",value:4}],y={edit:{title:"Edit Billing Card",content:"Would you like to edit the billing card information?"},remove:{title:"Remove Billing Card",content:"Would you like to remove the billing card?"},remove_primary:{title:"Alert",content:"Unable to remove primary card. Set another card as primary to remove this one"},switch:{title:"Set Primary Card",content:"Are you sure you want to set this card as your primary billing card? All future subscriptions will be charged in this account."},activate:{title:"Activate Subscription",content:"Are you sure you want to activate the subscription."},cancel:{title:"Cancel Subscription",content:"Are you sure you want to cancel the subscription."}},b=[{label:"Alabama ",value:"AL"},{label:"Alaska ",value:"AK"},{label:"Arizona ",value:"AZ"},{label:"Arkansas ",value:"AR"},{label:"California ",value:"CA"},{label:"Colorado ",value:"CO"},{label:"Connecticut ",value:"CT"},{label:"Delaware ",value:"DE"},{label:"Florida ",value:"FL"},{label:"Georgia ",value:"GA"},{label:"Hawaii ",value:"HI"},{label:"Idaho ",value:"ID"},{label:"Illinois ",value:"IL"},{label:"Indiana ",value:"IN"},{label:"Iowa ",value:"IA"},{label:"Kansas ",value:"KS"},{label:"Kentucky ",value:"KY"},{label:"Louisiana ",value:"LA"},{label:"Maine ",value:"ME"},{label:"Maryland ",value:"MD"},{label:"Massachusetts ",value:"MA"},{label:"Michigan ",value:"MI"},{label:"Minnesota ",value:"MN"},{label:"Mississippi ",value:"MS"},{label:"Missouri ",value:"MO"},{label:"Montana ",value:"MT"},{label:"Nebraska ",value:"NE"},{label:"Nevada ",value:"NV"},{label:"New Hampshire ",value:"NH"},{label:"New Jersey ",value:"NJ"},{label:"New Mexico ",value:"NM"},{label:"New York ",value:"NY"},{label:"North Carolina ",value:"NC"},{label:"North Dakota ",value:"ND"},{label:"Ohio ",value:"OH"},{label:"Oklahoma ",value:"OK"},{label:"Oregon ",value:"OR"},{label:"Pennsylvania ",value:"PA"},{label:"Rhode Island ",value:"RI"},{label:"South Carolina ",value:"SC"},{label:"South Dakota ",value:"SD"},{label:"Tennessee ",value:"TN"},{label:"Texas ",value:"TX"},{label:"Utah ",value:"UT"},{label:"Vermont ",value:"VT"},{label:"Virginia ",value:"VA"},{label:"Washington ",value:"WA"},{label:"West Virginia ",value:"WV"},{label:"Wisconsin ",value:"WI"},{label:"Wyoming ",value:"WY"}],g=["01","02","03","04","05","06","07","08","09","10","11","12"],T=function(){for(var e=(new Date).getFullYear().toString().slice(-2),t=[],a=0;a<10;a++)t.push(Number(e)+a);return t},N=function(){for(var e=(new Date).getFullYear().toString(),t=[],a=0;a<10;a++)t.push(Number(e)+a);return t},S=v.length,A=m.length,C=[{key:"tfaEnabled",title:"2 Factor Login"}],E="https://tnp-shield-web-app.vercel.app/img/TnPLogoMainBlue.png",R=["Username must contain at least 8 characters.","Username must contain at least 1 number.","Username must NOT contain any empty spaces."],x=[{title:"Home",href:"/"},{title:"Notifications",href:"/notifications"},{title:"Profile",href:"/profile"},{title:"Contacts",href:"/contacts"},{title:"Settings",href:"/settings"},{title:"Legal",href:"/legal"},{title:"Logout",href:"/login"}],j={SUBMIT_FORM:0,CONFIRM_FORM:1},D={ADD:0,COMPLETED:1,SUBSCRIPTION:2},_={WITHDRAW:0,COMPLETED:1},O={TRANSFER:0,COMPLETED:1},L={SEND:0,COMPLETED:1,SUBSCRIPTION:2},H=/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}
1\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,I=["NoHair","Eyepatch","Hat","Hijab","Turban","WinterHat1","WinterHat2","WinterHat3","WinterHat4","LongHairBigHair","LongHairBob","LongHairBun","LongHairCurly","LongHairCurvy","LongHairDreads","LongHairFrida","LongHairFro","LongHairFroBand","LongHairNotTooLong","LongHairShavedSides","LongHairMiaWallace","LongHairStraight","LongHairStraight2","LongHairStraightStrand","ShortHairDreads01","ShortHairDreads02","ShortHairFrizzle","ShortHairShaggy","ShortHairShaggyMullet","ShortHairShortCurly","ShortHairShortFlat","ShortHairShortRound","ShortHairShortWaved","ShortHairSides","ShortHairTheCaesar","ShortHairTheCaesarSidePart"],w=["Blank","Kurt","Prescription01","Prescription02","Round","Sunglasses","Wayfarers"],k=["Blank","BeardMedium","BeardLight","BeardMajestic","MoustacheFancy","MoustacheMagnum"],M=["Auburn","Black","Blonde","BlondeGolden","Brown","BrownDark","PastelPink","Blue","Platinum","Red","SilverGray"],P=["BlazerShirt","BlazerSweater","CollarSweater","GraphicShirt","Hoodie","Overall","ShirtCrewNeck","ShirtScoopNeck","ShirtVNeck"],W=["Close","Cry","Default","Dizzy","EyeRoll","Happy","Hearts","Side","Squint","Surprised","Wink","WinkWacky"],B=["Angry","AngryNatural","Default","DefaultNatural","FlatNatural","RaisedExcited","RaisedExcitedNatural","SadConcerned","SadConcernedNatural","UnibrowNatural","UpDown","UpDownNatural"],F=["Concerned","Default","Disbelief","Eating","Grimace","Sad","ScreamOpen","Serious","Smile","Tongue","Twinkle","Vomit"],U={D:"day",M:"month",Y:"year"},G=1e4,K=.01,V=2,$=2,Z=5},8888:function(e,t,a){"use strict";a.r(t);var r=a(2809),n=a(7294),l=a(9249),o=a(1163),i=a(5890),c=a(6608),u=a(8750),s=a(5158),h=a(5893);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function f(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){(0,r.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}t.default=function(){var e=(0,o.useRouter)(),t=(0,n.useState)(),a=t[0],d=t[1],v=(0,n.useState)(),m=v[0],y=v[1],b=(0,n.useState)(p),g=b[0],T=b[1];(0,n.useEffect)((function(){var e=i.W4.getUserValue().subscribe((function(e){var t=(e||{}).avatarImage;if(t){var a=null===t||void 0===t?void 0:t.split("&").reduce((function(e,t){if(t){var a=t.split("=");if(a[1])return e[a[0]]=a[1],e}return e}),{});T(a),y(t),d(t)}}));return function(){e.unsubscribe()}}),[]);var N=function(e,t){T(f(f({},g),{},(0,r.Z)({},e,t)))};(0,n.useEffect)((function(){var e="&topType="+g.topType+"&accessoriesType="+g.accessoriesType+"&hairColor="+g.hairColor+"&facialHairType="+g.facialHairType+"&clotheType="+g.clotheType+"&eyeType="+g.eyeType+"&eyebrowType="+g.eyebrowType+"&mouthType="+g.mouthType+"&skinColor="+g.skinColor;m!==e&&y(e)}),[g,m]);var S=function(){e.push("/profile")};return(0,h.jsx)(c.Z,{children:(0,h.jsxs)("div",{className:"main-panel cus-profile-page cus-update-avatar-page",children:[(0,h.jsx)("div",{className:"back-button",onClick:S,children:(0,h.jsx)(u.Z,{})}),(0,h.jsxs)("div",{className:"container text-center pt-5 pb-3",children:[(0,h.jsx)("div",{className:"header-icon d-flex justify-content-center",children:m?(0,h.jsx)("div",{children:(0,h.jsx)("img",{src:"https://avataaars.io/?avatarStyle=Circle"+m,alt:"Avatar",width:100,height:100})}):(0,h.jsx)("img",{src:"".concat("","/img/[email protected]"),className:"logo-2-nav",alt:"avatar"})}),(0,h.jsx)("h4",{className:"pt-2",children:"Avatar Builder"})]}),(0,h.jsx)("div",{className:"title-border"}),(0,h.jsx)("div",{className:"container text-center mt-1 mb-3",children:(0,h.jsxs)("div",{className:"row justify-content-center m-3",children:[(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Top",children:"Top"}),(0,h.jsxs)("select",{className:"form-control",id:"Top",value:g.topType,onCh
1ange:function(e){return N("topType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.C2.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"top-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Accessories",children:"Accessories"}),(0,h.jsxs)("select",{className:"form-control",id:"Accessories",value:g.accessoriesType,onChange:function(e){return N("accessoriesType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.N_.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"acc-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"HairColor",children:"Hair Color"}),(0,h.jsxs)("select",{className:"form-control",id:"HairColor",value:g.hairColor,onChange:function(e){return N("hairColor",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.$Z.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"hc-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"FacialHair",children:"Facial Hair"}),(0,h.jsxs)("select",{className:"form-control",id:"FacialHair",value:g.facialHairType,onChange:function(e){return N("facialHairType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.sf.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"fh-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Clothes",children:"Clothes"}),(0,h.jsxs)("select",{className:"form-control",id:"Clothes",value:g.clotheType,onChange:function(e){return N("clotheType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.$6.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"c-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Eye Type",children:"Eye Type"}),(0,h.jsxs)("select",{className:"form-control",id:"Eye Type",value:g.eyeType,onChange:function(e){return N("eyeType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.zc.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"et-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Eye Brow Type",children:"Eye Brow Type"}),(0,h.jsxs)("select",{className:"form-control",id:"Eye Brow Type",value:g.eyebrowType,onChange:function(e){return N("eyebrowType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.eE.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"eb-"+t)}))]})]}),(0,h.jsxs)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:[(0,h.jsx)("label",{htmlFor:"Mouth Type",children:"Mouth Type"}),(0,h.jsxs)("select",{className:"form-control",id:"Mouth Type",value:g.mouthType,onChange:function(e){return N("mouthType",e.target.value)},children:[(0,h.jsx)("option",{children:"Select"}),s.ih.map((function(e,t){return(0,h.jsx)("option",{value:e,children:e},"mt-"+t)}))]})]}),(0,h.jsx)("div",{className:"form-group col-10 col-lg-5 col-md-5 m-auto py-2 text-left",children:(0,h.jsx)("button",{type:"button",className:"btn btn-submit cus-btn-black w-100 mt-3",onClick:function(){if(a!==m)return i.W4.changeAvatar({avatarImage:m}).then((function(e){var t=e.success,a=e.errorMessage;t?(l.Am.success("Avatar updated successfully!"),S()):l.Am.error(a)}))},disabled:a===m,children:"Submit"})})]})})]})})};var p={topType:"NoHair",accessoriesType:"Blank",hairColor:"Blank",facialHairType:"Blank",clotheType:"Hoodie",clotheColor:"PastelBlue",eyeType:"Default",eyebrowType:"Default",mouthType:"Default",skinColor:"Light"}},8809:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/update-avatar",function(){return a(8888)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=8809,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.