PageSourceSearch

https://dubhub-demo.netlify.app/_next/static/chunks/pages/settings-aa7f5cebf071b30e8ce9.js

js dubhub-demo.netlify.app collected 2026-10-03 10:40:59 UTC 23,648 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{8750:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});n(7294);var i=n(5893);function a(t){var e=t.reverse,n=void 0!==e&&e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,i.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,i.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:n?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,i.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,i.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,i.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:n?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,i.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:n?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},1543:function(t,e,n){"use strict";n(7294);var i=n(4359),a=n(3935),r=n(5893);e.Z=function(t){return t.show?a.createPortal((0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i.Z,{show:t.show,onHide:t.handleClose,centered:!0,children:[(0,r.jsx)(i.Z.Header,{closeButton:!0,children:(0,r.jsx)(i.Z.Title,{children:t.title})}),(0,r.jsx)(i.Z.Body,{children:t.children}),t.confirmation?(0,r.jsx)(i.Z.Footer,{children:(0,r.jsx)("button",{className:"cus-btn-black",onClick:t.handleProceed,children:"OK"})}):(0,r.jsxs)(i.Z.Footer,{children:[(0,r.jsx)("button",{className:"cus-btn-white",onClick:t.handleClose,children:"Cancel"}),(0,r.jsx)("button",{className:"cus-btn-black",onClick:t.handleProceed,children:"OK"})]})]})}),document.querySelector("#modal-root")):null}},8395:function(t,e,n){"use strict";var i=n(9936),a=n(5893);e.Z=function(t){var e=t.checked,n=void 0!==e&&e,r=t.onChange;return(0,a.jsx)("div",{className:"switch-main",children:(0,a.jsx)(i.default,{onChange:function(t){r(t)},checked:n,className:"react-switch",uncheckedIcon:!1,checkedIcon:!1,onColor:"#000000",offColor:"#767577"})})}},6608:function(t,e,n){"use strict";var i=n(7294),a=n(5893);e.Z=i.memo((function(t){var e=t.children;return(0,a.jsx)("div",{className:"anima-container-center-horizontal",children:(0,a.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:e})})}))},5158:function(t,e,n){"use strict";n.d(e,{yZ:function(){return i},tO:function(){return a},sj:function(){return r},kF:function(){return o},I5:function(){return s},u9:function(){return l},T3:function(){return c},lP:function(){return u},$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 b},rc:function(){return g},rh:function(){return y},Rf:function(){return N},LZ:function(){return S},e:function(){return k},W1:function(){return x},Ik:function(){return w},sT:function(){return A},L3:function(){return C},E6:function(){return E},Pb:function(){return j},Nb:function(){return D},WG:function(){return R},TU:function(){return T},w$:function(){return O},Oj:function(){return M},C2:function(){return L},N_:function(){return I},sf:function(){return _},$Z:function(){return W},$6:function(){return H},zc:function(){return P},eE:function(){return B},ih:function(){return F},y7:function(){return U},lr:function(){return K},Po:function(){return Z},Iy:function(){return G},_H:function(){return z},NP:function(){return $}});var i={DASHBOARD:"dashboard",REWARD_DETAIL:"reward_detail",WALLET_DETAIL:"wallet_detail",ACCOUNT_DETAIL:"account_detail",CARD_DETAIL:"card_detail"},a={MASTER_WALLET:1,REWARD_WALLET:8,VIRTUAL_CARD:3,REWARD_CARD:9,EXTERNAL_CARD:5,BANK_ACCOUNT:4},r={REGULAR_CARD:"REGULAR_CARD",REWARD_CARD:"REWARD_CARD"},o=[a.MASTER_WALLET,a.VIRTUAL_CARD],s=[a.REWARD_WALLET,a.REWARD_CARD],l={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,}$/},c=function(t){return/^\d+$/.test(t)},u={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}
1,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}],b={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."}},g=[{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"}],y=["01","02","03","04","05","06","07","08","09","10","11","12"],N=function(){for(var t=(new Date).getFullYear().toString().slice(-2),e=[],n=0;n<10;n++)e.push(Number(t)+n);return e},S=function(){for(var t=(new Date).getFullYear().toString(),e=[],n=0;n<10;n++)e.push(Number(t)+n);return e},k=v.length,x=m.length,w=[{key:"tfaEnabled",title:"2 Factor Login"}],A="https://tnp-shield-web-app.vercel.app/img/TnPLogoMainBlue.png",C=["Username must contain at least 8 characters.","Username must contain at least 1 number.","Username must NOT contain any empty spaces."],E=[{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},R={WITHDRAW:0,COMPLETED:1},T={TRANSFER:0,COMPLETED:1},O={SEND:0,COMPLETED:1,SUBSCRIPTION:2},M=/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,L=["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"],I=["Blank","Kurt","Prescription01","Prescription02","Round","Sunglasses","Wayfarers"],_=["Blank","BeardMedium","BeardLight","BeardMajestic","MoustacheFancy","MoustacheMagnum"],W=["Auburn","Black","Blonde","BlondeGolden","Brown","BrownDark","PastelPink","Blue","Platinum","Red","SilverGray"],H=["BlazerShirt","BlazerSweater","CollarSweater","GraphicShirt","Hoodie","Overall","ShirtCrewNeck","ShirtScoopNeck","ShirtVNeck"],P=["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"},K=1e4,Z=.01,G=2,z=2,$=5},8125:function(t,e,n){"use strict";n.r(e);var i=n(2809),a=n(7294),r=n(9249),o=n(1163),s=n(246),l=n(5890),c=n(6608),u=n(8395),h=n(8750),d=n(5158),f=n(1543),p=n(5893);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?v(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.default=function(){var t=(0,o.useRouter)(),e=(0,a.useState)(null),n=e[0],v=e[1],b=(0,a.useState)(null),g=b[0],y=b[1],N=(0,a.useState)(new Array(d.W1*d.e).fill(!1)),S=N[0],k=N[1],x=(0,a.useState)(!1),w=x[0],A=x[1];(0,a.useEffect)((function(){l.W4.getUserSettings().then((function(t){var e=t.success,n=t.errorMessage,i=t.settings;if(e){v(i),y(i);var a=[];d.O0.forEach((function(t,e){var n=i[t.key].toString(2),r=("000".substring(n.length)+n).split("").map((function(t){return"1"===t})).reverse();d.n9.forEach((function(t,n){a[e*d.W1+n]=!!r[n]}))})),k(a)}else r.Am.error(n)}))}),[]),(0,a.useEffect)((function(){var t=function(t){return t.preventDefault(),t.returnValue="Are you sure you want to leave?",""};return window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)}}),[]);var C=function(){return l.W4.setUserSettings(n).then((function(t){t.success?r.Am.success("New settings saved successfully"):r.Am.error("New settings failed")})).finally((function(){return t.back()}))},E=function(t){switch(t){case 0:return(0,p.jsx)("i",{className:"fa-solid fa-comment-sms"});case 1:return(0,p.jsx)("i",{className:"fa-solid fa-at"});case 2:return(0,p.jsx)("i",{className:"fa-solid fa-mobile-screen-button"})}};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(c.Z,{children:(0,p.jsxs)("div",{className:"main-panel cus-profile-page",children:[(0,p.jsx)("div",{className:"back-button",onClick:function(){JSON.stringify(g)===JSON.stringify(n)?t.back():A(!0)},children:(0,p.jsx)(h.Z,{})}),(0,p.jsxs)("div",{className:"container text-center pt-5 pb-3",children:[(0,p.jsx)("div",{className:"header-icon",children:(0,p.jsx)("img",{className:"header-icon-position",src:"".concat("","/img/settings.svg"),width:50,height:50,alt:"settings"})}),(0,p.jsx)("h4",{className:"pt-2",children:"Settings"})]}),(0,p.jsx)("div",{className:"container text-center pb-3",children:n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"settings-header px-4 px-md-5",children:"Notifications"}),(0,p.jsx)("div",{className:"title-border-black mx-4 mx-md-5"}),(0,p.jsx)(p.Fragment,{children:d.O0.map((function(t,e){return(0,p.jsx)("div",{className:"container py-1",children:(0,p.jsxs)("div",{className:"row justify-content-center align-content-center align-items-center pl-3",children:[(0,p.jsxs)("div",{className:"col-8 mt-3 text-left pl-4 pl-md-5 justify-content-center align-content-center align-items-center",children:[(0,p.jsx)("div",{className:"settings-text",children:t.title}),n[t.key]>0?(0,p.jsx)("div",{className:"btn-group-toggle mt-2","data-toggle":"buttons",children:d.n9.map((function(i,a){return(0,p.jsxs)("label",{className:"d-inline-flex m-1 pointer",children:[(0,p.jsx)("div",{children:(0,p.jsx)("input",{className:"checkbox-round",type:"checkbox",autoComplete:"off",checked:S[d.W1*e+a],onChange:function(){return function(t,e,i){for(var a=e*d.W1+i,r=S.map((function(t,e){return e===a?!t:t})),o=m({},n),s=0,l=0;l<d.W1;l++)s+=r[e*d.W1+l]?d.n9[l].value:0;o[t]=s,k(r),v(o)}(t.key,e,a)}})}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"notification-setting-symbol m-0 ".concat(S[d.W1*e+a]?"active":""),children:E(a)}),(0,p.jsx)("p",{className:"notification-setting-title",children:i.title})]})]},"sub-setting-"+a)}))}):(0,p.jsx)("p",{children:"Notifications is off"})]}),(0,p.jsx)("div",{className:"col-4 text-center justify-content-center mt-3",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{children:(0,p.jsx)(u.Z,{checked:n[t.key]>0,onChange:function(i){return function(t,e,i){var a=S.map((function(e,n){return parseInt(n/d.W1)===i?t:e})),r=m({},n);r[e]=t?7:0,k(a),v(r)}(i,t.key,e)}})}),["notifyWalletBalanceLow","notifyPurchase"].includes(t.key)&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"w-50 m-auto form-group pt-3",children:(0,p.jsx)(s.Z,{prefix:"$",decimalsLimit:2,maxLength:8,value:n[t.thresholdName],onValueChange:function(e){return function(t,e){v(m(m({},n),{},(0,i.Z)({},t,e||null)))}(t.thresholdName,e)},id:t.thresholdName,placeholder:"$0.00",className:"form-control"})}),(0,p.jsx)("div",{className:"",children:"Threshold"})]})]})})]})},"notification-"+e)}))}),(0,p.jsx)("div",{className:"settings-header px-4 px-md-5",children:"Security"}),(0,p.jsx)("div",{className:"title-border-black mx-4 mx-md-5"}),(0,p.jsx)(p.Fragment,{children:d.Ik.map((function(t,e){return(0,p.jsx)("div",{className:"container py-1",children:(0,p.jsxs)("div",{className:"row justify-content-center align-content-center align-items-center pl-3",children:[(0,p.jsx)("div",{className:"col-8 text-left pl-4 pl-md-5 justify-content-center align-content-center align-items-center",children:(0,p.jsx)("div",{className:"settings-text",children:t.title})}),(0,p.jsx)("div",{className:"col-4 text-center justify-content-center ",children:(0,p.jsx)("div",{children:(0,p.jsx)(u.Z,{checked:n[t.key],onChange:function(e){return function(t,e){var i=m({},n);i[e]=t,v(i)}(e,t.key)}})})})]})},"security-settings-"+e)}))})]})})]})}),(0,p.jsx)(f.Z,{show:w,handleClose:function(){A(!1),t.back()},handleProceed:function(){A(!1),C()},title:"Confirmation",children:(0,p.jsx)("p",{children:"Do you want to save your changes before leaving?"})})]})}},8897:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return n(8125)}])},3231:function(t,e,n){var i=n(7294);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=i.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},i.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),o=i.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},i.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(t){if(7===t.length)return t;for(var e="#",n=1;n<4;n+=1)e+=t[n]+t[n];return e}function l(t,e,n,i,a){return function(t,e,n,i,a){var r=(t-n)/(e-n);if(0===r)return i;if(1===r)return a;for(var o="#",s=1;s<6;s+=2){var l=parseInt(i.substr(s,2),16),c=parseInt(a.substr(s,2),16),u=Math.round((1-r)*l+r*c).toString(16);1===u.length&&(u="0"+u),o+=u}return o}(t,e,n,s(i),s(a))}var c=function(t){function e(e){t.call(this,e);var n=e.height,i=e.width,a=e.checked;this.t=e.handleDiameter||n-2,this.i=Math.max(i-n,i-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:a?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.D=this.D.bind(this),this.O=this.O.bind(this),this.S=this.S.bind(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.componentDidMount=function(){this.W=!0},e.prototype.componentDidUpdate=function(t){t.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},e.prototype.componentWillUnmount=function(){this.W=!1},e.prototype.I=function(t){this.H.focus(),this.setState({R:t,j:!0,B:Date.now()})},e.prototype.L=function(t){var e=this.state,n=e.R,i=e.h,a=(this.props.checked?this.i:this.o)+t-n;e.N||t===n||this.setState({N:!0});var r=Math.min(this.i,Math.max(this.o,a));r!==i&&this.setState({h:r})},e.prototype.U=function(t){var e=this.state,n=e.h,i=e.N,a=e.B,r=this.props.checked,o=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-a;(!i||s<250||r&&n<=o||!r&&n>=o)&&this.A(t),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},e.prototype.p=function(t){t.preventDefault(),"number"==typeof t.button&&0!==t.button||(this.I(t.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},e.prototype.v=function(t){t.preventDefault(),this.L(t.clientX)},e.prototype.g=function(t){this.U(t),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},e.prototype.k=function(t){this.X=null,this.I(t.touches[0].clientX)},e.prototype.M=function(t){this.L(t.touches[0].clientX)},e.prototype.m=function(t){t.preventDefault(),this.U(t)},e.prototype.$=function(t){Date.now()-this.l>50&&(this.A(t),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},e.prototype.C=function(){this.u=Date.now()},e.prototype.D=function(){this.setState({j:!0})},e.prototype.O=function(){this.setState({j:!1})},e.prototype.S=function(t){this.H=t},e.prototype.T=function(t){t.preventDefault(),this.H.focus(),this.A(t),this.W&&this.setState({j:!1})},e.prototype.A=function(t){var e=this.props;(0,e.onChange)(!e.checked,t,e.id)},e.prototype.render=function(){var t=this.props,e=t.checked,n=t.disabled,r=t.className,o=t.offColor,s=t.onColor,c=t.offHandleColor,u=t.onHandleColor,h=t.checkedIcon,d=t.uncheckedIcon,f=t.checkedHandleIcon,p=t.uncheckedHandleIcon,v=t.boxShadow,m=t.activeBoxShadow,b=t.height,g=t.width,y=t.borderRadius,N=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&-1===e.indexOf(i)&&(n[i]=t[i]);return n}(t,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),S=this.state,k=S.h,x=S.N,w=S.j,A={position:"relative",display:"inline-block",textAlign:"left",opacity:n?.5:1,direction:"ltr",borderRadius:b/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},C={height:b,width:g,margin:Math.max(0,(this.t-b)/2),position:"relative",background:l(k,this.i,this.o,o,s),borderRadius:"number"==typeof y?y:b/2,cursor:n?"default":"pointer",WebkitTransition:x?null:"background 0.25s",MozTransition:x?null:"background 0.25s",transition:x?null:"background 0.25s"},E={height:b,width:Math.min(1.5*b,g-(this.t+b)/2+1),position:"relative",opacity:(k-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},j={height:b,width:Math.min(1.5*b,g-(this.t+b)/2+1),position:"absolute",opacity:1-(k-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"}
1,D={height:this.t,width:this.t,background:l(k,this.i,this.o,c,u),display:"inline-block",cursor:n?"default":"pointer",borderRadius:"number"==typeof y?y-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(b-this.t)/2),outline:0,boxShadow:w?m:v,border:0,WebkitTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:x?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},R={height:this.t,width:this.t,opacity:Math.max(2*(1-(k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"},T={height:this.t,width:this.t,opacity:Math.max(2*((k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:x?null:"opacity 0.25s",MozTransition:x?null:"opacity 0.25s",transition:x?null:"opacity 0.25s"};return i.createElement("div",{className:r,style:A},i.createElement("div",{className:"react-switch-bg",style:C,onClick:n?null:this.T,onMouseDown:function(t){return t.preventDefault()}},h&&i.createElement("div",{style:E},h),d&&i.createElement("div",{style:j},d)),i.createElement("div",{className:"react-switch-handle",style:D,onClick:function(t){return t.preventDefault()},onMouseDown:n?null:this.p,onTouchStart:n?null:this.k,onTouchMove:n?null:this.M,onTouchEnd:n?null:this.m,onTouchCancel:n?null:this.O},p&&i.createElement("div",{style:R},p),f&&i.createElement("div",{style:T},f)),i.createElement("input",a({},{type:"checkbox",role:"switch","aria-checked":e,checked:e,disabled:n,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},N,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},e}(i.Component);c.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:r,checkedIcon:o,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},e.default=c},9936:function(t,e,n){t.exports=n(3231)}},function(t){t.O(0,[9204,4359,246,9774,2888,179],(function(){return e=8897,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.