PageSourceSearch

https://app.slaydigital.ai/static/react/5230.b2b2723cfa847a79df17.js

js slaydigital.ai collected 2026-10-05 14:39:39 UTC 7,584 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkStammer_ai=self.webpackChunkStammer_ai||[]).push([[5230],{65230:function(e,r,n){n.r(r),n.d(r,{LoginRoutePage:function(){return D}});var t=n(78685),o=n(2057),a=n(86591),i=n(31547),l=n(73349),s=n(81323),c=n(41355),u=n(70459),m=n(66052),d=(n(37456),n(16657)),f=n(17e3),x=n(83474),h=n(10838),p=n(26120),A=n(30350),g=n(26400),S=n(97340),j=n(53630),b=n(50212),I=n(65359),y=n(54e3),T=n(44162),_=n(69569),N=n(39049),v=n(88204),w=function(e,r,n,t){return new(n||(n=Promise))((function(o,a){function i(e){try{s(t.next(e))}catch(e){a(e)}}function l(e){try{s(t.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?o(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,l)}s((t=t.apply(e,r||[])).next())}))},L=function(e,r){var n,t,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,t&&(o=2&l[0]?t.return:l[0]?t.throw||((o=t.return)&&o.call(t),0):t.next)&&!(o=o.call(t,l[1])
1).done)return o;switch(t=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,t=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=r.call(e,a)}catch(e){l=[6,e],t=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}},U=function(e){var r,n,a=e.config,l=(0,d.Bd)().t,s=(0,x.A)(),c=(0,f.Zp)(),m={signInTitle:l("DISPLAY_STRINGS.AUTH_SIGN_IN_TITLE"),loginButton:l("DISPLAY_STRINGS.AUTH_LOGIN_BUTTON"),forgotPassword:l("DISPLAY_STRINGS.AUTH_FORGOT_PASSWORD"),createAccount:l("DISPLAY_STRINGS.AUTH_CREATE_ACCOUNT"),or:l("DISPLAY_STRINGS.AUTH_OR"),signInGoogle:l("DISPLAY_STRINGS.AUTH_SIGN_IN_GOOGLE"),characterLimit:l("DISPLAY_STRINGS.AUTH_CHARACTER_LIMIT"),rememberMe:l("DISPLAY_STRINGS.AUTH_REMEMBER_ME")},U=!!a.isAgencyDomain,D=!U&&!a.showSignupAccessToken&&a.googleLoginUrl,R=(0,b.Ih)(a.signupUrl),E=(0,b.Ih)(a.passwordResetUrl),P=(0,o.useState)(a.fieldErrors||{}),C=P[0],G=P[1],k=(0,o.useState)(a.nonFieldErrors||[]),O=k[0],H=k[1],M=(0,o.useState)((null===(r=a.fieldValues)||void 0===r?void 0:r.login)||""),F=M[0],Y=M[1],z=(0,o.useState)(""),B=z[0],W=z[1],V=(0,o.useState)("on"===((null===(n=a.fieldValues)||void 0===n?void 0:n.remember)||"").toLowerCase()),q=V[0],K=V[1],Z=(0,o.useState)(!1),J=Z[0],Q=Z[1],X=(0,o.useMemo)((function(){var e=["auth-main-container"];return 1===a.formPosition&&e.push("auth-main-container--flipped"),a.footerPlacement||e.push("auth-main-container--full"),e.join(" ")}),[a.formPosition,a.footerPlacement]),$=(0,v.B)(C,{login:F,remember:q?"on":""},{email:l("DISPLAY_STRINGS.AUTH_EMAIL_PLACEHOLDER"),password:l("DISPLAY_STRINGS.AUTH_PASSWORD_PLACEHOLDER")}),ee=$.loginField,re=$.passwordField;return(0,t.jsxs)(i.A,{sx:{backgroundColor:U?s.palette.primary.main:"#E4E7ED"},id:"layoutAuthentication",children:[(0,t.jsx)(N.A,{clientId:a.googleAuthClientId,oneTapUrl:a.googleOneTapUrl,csrfToken:a.csrfToken,enabled:!!D}),(0,t.jsxs)(i.A,{className:X,children:[(0,t.jsx)(T.A,{isAgencyDomain:U,backgroundImage:a.backgroundImage,logoUrl:a.logoUrl}),(0,t.jsx)(i.A,{className:"auth-form-section",children:(0,t.jsx)(i.A,{id:"layoutAuthentication_content",children:(0,t.jsx)("main",{children:(0,t.jsx)(i.A,{className:"row justify-content-center",children:(0,t.jsxs)(i.A,{className:"my-5",children:[(0,t.jsxs)(i.A,{className:"px-5 pt-5",children:[(0,t.jsx)(i.A,{className:"logo text-center",children:a.logoPlacement&&a.logoUrl?(0,t.jsx)("img",{className:"img-fluid max-width-4",src:a.logoUrl,alt:"Logo"}):null}),(0,t.jsx)(i.A,{className:"p-2 text-center",children:(0,t.jsx)(h.A,{variant:"h5",fontWeight:600,children:m.signInTitle})}),(0,t.jsxs)("form",{onSubmit:function(e){return w(void 0,void 0,void 0,(function(){var r,n,t;return L(this,(function(o){switch(o.label){case 0:if(e.preventDefault(),J)return[2];Q(!0),G({}),H([]),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,(0,u.Uu)({login:F,password:B,remember:q})];case 2:return r=o.sent(),(0,b.DV)(r.redirectUrl,c)||(window.location.href=r.redirectUrl),[3,5];case 3:return n=o.sent(),t=(0,u.jO)(n),G(t.fieldErrors),H(t.nonFieldErrors),[3,5];case 4:return Q(!1),[7];case 5:return[2]}}
1))}))},children:[(0,t.jsx)(I.A,{field:ee,prefixIcon:"fa fa-envelope",characterLimitText:m.characterLimit,onValueChange:Y,value:F}),(0,t.jsx)(I.A,{field:re,prefixIcon:"fa fa-lock",characterLimitText:m.characterLimit,onValueChange:W,value:B}),(0,t.jsx)(i.A,{className:"col-12",children:O.length?O.map((function(e,r){return(0,t.jsx)(h.A,{color:"error",variant:"body2",children:e},"non-field-error-".concat(r))})):null}),(0,t.jsx)(i.A,{sx:{ml:0,pl:0},children:(0,t.jsx)(p.A,{sx:{m:0,ml:0,"& .MuiCheckbox-root":{ml:0,mr:1,p:.5},"& .MuiFormControlLabel-label":{m:0}},control:(0,t.jsx)(A.A,{name:"remember",checked:q,onChange:function(e){return K(e.target.checked)},size:"small"}),label:(0,t.jsx)(h.A,{variant:"body2",sx:{fontSize:"14px",mt:"4px"},children:m.rememberMe})})}),(0,t.jsx)(g.A,{type:"submit",fullWidth:!0,variant:"contained",color:"primary",disableElevation:!0,disableRipple:!0,sx:{mt:3,py:1.25,fontSize:"16px",textTransform:"none",color:"#fff",backgroundColor:s.palette.primary.main,borderColor:s.palette.primary.main,"&:hover":{backgroundColor:s.palette.primary.main,borderColor:s.palette.primary.main}},disabled:J,children:m.loginButton}),(0,t.jsxs)(i.A,{className:"my-3 d-flex justify-content-between",children:[E?(0,t.jsx)(S.A,{className:"small",component:f.N_,to:E,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:m.forgotPassword}):(0,t.jsx)(S.A,{className:"small",href:a.passwordResetUrl,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:m.forgotPassword}),a.canCreateNewAccount?R?(0,t.jsx)(S.A,{className:"small",component:f.N_,to:R,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:m.createAccount}):(0,t.jsx)(S.A,{className:"small",href:a.signupUrl,sx:{fontSize:"14px",textDecoration:"none !important","&:hover":{textDecoration:"underline !important"}},children:m.createAccount}):null]})]})]}),(0,t.jsx)(i.A,{className:"px-5",children:D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.A,{sx:{display:"flex",alignItems:"center",my:2},children:[(0,t.jsx)(j.A,{sx:{flexGrow:1}}),(0,t.jsx)(h.A,{sx:{px:1,fontSize:"12px",color:"#666"},children:m.or}),(0,t.jsx)(j.A,{sx:{flexGrow:1}})]}),(0,t.jsx)(_.A,{href:a.googleLoginUrl,label:m.signInGoogle})]}):null})]})})})})})]}),(0,t.jsx)(y.A,{footer:a.footer,show:a.footerPlacement})]})},D=function(){var e=(0,a.I)({queryKey:["AUTH_LOGIN_CONFIG"],queryFn:u.O5}),r=e.data,n=e.isLoading,o=e.isError,d=e.error;return(0,t.jsxs)(m.W,{children:[(0,t.jsx)(s.M,{loadRewardful:!0}),n?(0,t.jsx)(c.A,{}):o||!r?(0,t.jsx)(i.A,{sx:{maxWidth:640,mx:"auto",py:8,px:3},children:(0,t.jsx)(l.A,{severity:"error",children:d instanceof Error?d.message:"Failed to load login configuration."})}):(0,t.jsx)(U,{config:r})]})}}}]);

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.