PageSourceSearch

https://app.convertout.com/_next/static/chunks/pages/ambassadors/updateEmail-b1f41e9730324be7.js

js convertout.com collected 2026-09-28 06:05:14 UTC 6,745 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2453],{63544:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ambassadors/updateEmail",function(){return i(25649)}])},11816:function(e,t,i){"use strict";var a=i(85893),n=i(60357),r=i.n(n),o=(i(67294),i(46597)),s=function(e){var t=e.showText;return(0,a.jsxs)("div",{className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" loadingWrapper",children:[(0,a.jsxs)("span",{className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" loadingCenterSpace",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" align-middle animate-spin h-16 w-16 text-green-500",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" opacity-25"}),(0,a.jsx)("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" opacity-75"})]}),t&&(0,a.jsx)("span",{className:r().dynamic([["ed451bafbb536981",[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter]]])+" text-black text-2xl mt-6",children:"Loading ConvertOut..."})]}),(0,a.jsx)(r(),{id:"ed451bafbb536981",dynamic:[o.Z.indigo.Lighter,o.Z.indigo.Lighter,o.Z.indigo.Lighter],children:".loadingWrapper.__jsx-style-dynamic-selector{min-height:-webkit-calc(100vh);min-height:-moz-calc(100vh);min-height:calc(100vh);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background-image:-webkit-linear-gradient(306deg,".concat(o.Z.indigo.Lighter,",").concat(o.Z.indigo.Lighter," 48%,").concat(o.Z.indigo.Lighter,");background-image:-moz-linear-gradient(306deg,").concat(o.Z.indigo.Lighter,",").concat(o.Z.indigo.Lighter," 48%,").concat(o.Z.indigo.Lighter,");background-image:-o-linear-gradient(306deg,").concat(o.Z.indigo.Lighter,",").concat(o.Z.indigo.Lighter," 48%,").concat(o.Z.indigo.Lighter,");background-image:linear-gradient(144deg,").concat(o.Z.indigo.Lighter,",").concat(o.Z.indigo.Lighter," 48%,").concat(o.Z.indigo.Lighter,")}.loadingCenterSpace.__jsx-style-dynamic-selector{font-weight:bold;color:#fff;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.triangle.__jsx-style-dynamic-selector{width:120px;height:auto;margin:30px;opacity:.6;-webkit-animation:rotation 5s infinite linear;-moz-animation:rotation 5s infinite linear;-o-animation:rotation 5s infinite linear;animation:rotation 5s infinite linear}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-moz-keyframes rotation{from{-moz-transform:rotate(0deg);transform:rotate(0deg)}to{-moz-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes rotation{from{-o-transform:rotate(0deg);transform:rotate(0deg)}to{-o-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes rotation{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);-moz-transform:rotate(359deg);-o-transform:rotate(359deg);transform:rotate(359deg)}}")})]})};s.defaultProps={showText:!0},t.Z=s},25649:function(e,t,i){"use strict";i.r(t);var a=i(91098),n=i(16364),r=i(85893),o=i(67294),s=i(40262),c=i(12089),d=i(5677),l=i(29653),g=i(11163),m=i(19911),f=i(11816),b=i(47289),h=i(46607),u=i(58923),x=i(3334);t.default=function(){var e=(0,g.useRouter)(),t=(0,o.useState)(""),i=t[0],p=t[1],w=(0,o.useContext)(h.Context),y=(0,o.useState)(!1),k=y[0],Z=y[1],L=(0,l.Z)(e.query.id&&"string"===typeof e.query.id?"api/ambassador?ambassadorId=".concat(e.query.id):""),v=function(){var e=(0,a.Z)((function(){var e,t,a,r,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return i&&0!==i.trim().length?(Z(!0),[4,(0,m.Z)(w)]):(e={message:"New email cannot be blank",duration:3e3},w&&u.Toast.create(w,e).dispatch(u.Toast.Action.SHOW),[2]);case 1:if(!(t=n.sent()))return[3,5];n.label=2;case 2:return n.trys.push([2,4,,5]),[4,t.post("".concat("https://app.convertout.com","/api/updateEmail"),{newEmail:i,ambassadorId:null===L||void 0===L?void 0:L.id})];case 3:return n.sent(),a={message:"Updated email",duration:3e3},w&&u.Toast.create(w,a).dispatch(u.Toast.Action.SHOW),[3,5];case 4:return r=n.sent(),x.Z.error("error updating email",JSON.stringify(r)),o={message:"Error updating email",duration:3e3},w&&u.Toast.create(w,o).dispatch(u.Toast.Action.SHOW),[3,5];case 5:return Z(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,r.jsxs)(b.Z,{children:[!L&&(0,r.jsx)(f.Z,{}),L&&(0,r.jsx)("div",{className:"-mt-8",children:(0,r.jsx)(s.T,{fullWidth:!0,breadcrumbs:[{content:L.email,url:"/ambassadors/detail?id=".concat(e.query.id)}],title:"Update email for ".concat(L.email),children:(0,r.jsxs)(c.Z,{sectioned:!0,children:[(0,r.jsx)("div",{className:"mx-4",children:(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("label",{htmlFor:"newEmail",className:"block text-sm font-medium leading-5 text-gray-700",children:"New Email"}),(0,r.jsx)("label",{htmlFor:"newEmail",className:"sr-only",children:"New Email"}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("input",{type:"text",value:i,id:"newEmail",className:"border shadow-sm focus:ring-green-500 block w-full text-base border-gray-300 rounded-md px-2 py-2 h-8",onChange:function(e){return p(e.target.value)}})})]})}),(0,r.jsx)("div",{className:"mx-4 mt-3",children:(0,r.jsx)(d.z,{primary:!0,loading:k,onClick:function(){v()},children:"Update"})})]})})})]})}}},function(e){e.O(0,[3662,7721,1664,9675,514,9173,8208,4441,7289,9774,2888,179],(function(){return t=63544,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.