PageSourceSearch

https://cdn.naimei.com.tw/_next/static/chunks/pages/auth/signin-649ff6708c93cf1b.js

js naimei.com.tw collected 2026-10-08 07:19:38 UTC 7,379 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{30012:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(63366),i=n(87462),o=n(67294),a=n(70828),s=n(34867),u=n(94780),l=n(14142),c=n(29628),d=n(45098),p=n(88647),m=n(85893);let Z=["className","component","disableGutters","fixed","maxWidth","classes"],h=(0,p.Z)(),f=(0,d.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${(0,l.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),x=e=>(0,c.Z)({props:e,name:"MuiContainer",defaultTheme:h}),b=(e,t)=>{let{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,l.Z)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,u.Z)(a,e=>(0,s.ZP)(t,e),n)};function v(e={}){let{createStyledComponent:t=f,useThemeProps:n=x,componentName:s="MuiContainer"}=e,u=t(({theme:e,ownerState:t})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>(0,i.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}));return o.forwardRef(function(e,t){let o=n(e),{className:l,component:c="div",disableGutters:d=!1,fixed:p=!1,maxWidth:h="lg"}=o,f=(0,r.Z)(o,Z),x=(0,i.Z)({},o,{component:c,disableGutters:d,fixed:p,maxWidth:h}),v=b(x,s);return(0,m.jsx)(u,(0,i.Z)({as:c,ownerState:x,className:(0,a.Z)(v.root,l),ref:t},f))})}},37265:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signin",function(){return n(94450)}])},88489:function(e,t,n){"use strict";var r=n(30012),i=n(66643),o=n(77527),a=n(44001);let s=(0,r.Z)({createStyledComponent:(0,o.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,i.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,a.i)({props:e,name:"MuiContainer"})});t.Z=s},99294:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(63366),i=n(87462),o=n(67294),a=n(8780),s=n(94780),u=n(66643),l=n(77527),c=n(44001),d=n(46482),p=n(7491),m=n(21485),Z=n(77894),h=n(54844),f=n(2101);let x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},b=e=>x[e]||e;var v=e=>{let{theme:t,ownerState:n}=e,r=b(n.color),i=(0,h.DW)(t,"palette.".concat(r),!1)||n.color,o=(0,h.DW)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):(0,f.Fq)(i,.4)},g=n(85893);let y=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root","underline".concat((0,u.Z)(i)),"button"===n&&"button",r&&"focusVisible"]};return(0,s.Z)(o,Z.w,t)},w=(0,l.ZP)(m.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["underline".concat((0,u.Z)(n.underline))],"button"===n.component&&t.button]}})(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:v({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(Z.Z.focusVisible)]:{outline:"auto"}})});var W=o.forwardRef(function(e,t){let n=(0,c.i)({props:e,name:"MuiLink"}),{className:s,color:u="primary",component:l="a",onBlur:m,onFocus:Z,TypographyClasses:h,underline:f="always",variant:b="inherit",sx:v}=n,W=(0,r.Z)(n,y),{isFocusVisibleRef:C,onBlur:S,onFocus:R,ref:_}
1=(0,d.Z)(),[M,D]=o.useState(!1),N=(0,p.Z)(t,_),A=(0,i.Z)({},n,{color:u,component:l,focusVisible:M,underline:f,variant:b}),G=k(A);return(0,g.jsx)(w,(0,i.Z)({color:u,className:(0,a.Z)(G.root,s),classes:h,component:l,onBlur:e=>{S(e),!1===C.current&&D(!1),m&&m(e)},onFocus:e=>{R(e),!0===C.current&&D(!0),Z&&Z(e)},ref:N,ownerState:A,variant:b,sx:[...Object.keys(x).includes(u)?[]:[{color:u}],...Array.isArray(v)?v:[v]]},W))})},77894:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(1588),i=n(34867);function o(e){return(0,i.ZP)("MuiLink",e)}let a=(0,r.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);t.Z=a},28391:function(e,t,n){"use strict";var r=n(35944),i=n(70917),o=n(97104),a=n(21485),s=n(90642);t.Z=e=>{let{children:t,subtitle:n,title:u}=e;return(0,r.BX)(o.Z,{sx:{pt:3},css:(0,i.iv)("width:100%;max-width:448px;"),children:[(0,r.tZ)(a.Z,{variant:"h1",align:"center",children:u}),(0,r.tZ)(a.Z,{variant:"subtitle2",color:"textSecondary",align:"center",children:n}),(0,r.tZ)(s.Z,{sx:{mt:4,mx:3,mb:3},children:t})]})}},39524:function(e,t,n){"use strict";n.d(t,{W:function(){return i},X:function(){return r}});let r=e=>Array.isArray(e)?e:void 0===e?[]:[e],i=e=>Array.isArray(e)?e.length>0?e[0]:void 0:e},94450:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return v},default:function(){return g}});var r=n(35944),i=n(28391),o=n(67294),a=n(87536),s=n(12235),u=e=>{let{onSubmit:t}=e,[n,u]=(0,o.useState)(!1),l=(0,a.cI)({defaultValues:{email:"",password:"",rememberMe:!1}}),{handleSubmit:c}=l;return(0,r.tZ)(i.Z,{title:"登入",subtitle:"用您的帳號登入耐美知識",children:(0,r.tZ)(a.RV,{...l,children:(0,r.tZ)("form",{onSubmit:c(async(e,n)=>{u(!0),await (null==t?void 0:t(e,n)),u(!1)}),children:(0,r.tZ)(s.Z,{loading:n})})})})},l=n(68582),c=n(86199),d=n(39524),p=n(54745),m=n(88489),Z=n(21485),h=n(99294),f=n(11163),x=n(20377);let b=()=>{let e=(0,l.kF)(),t=(0,f.useRouter)(),n=(0,d.W)(t.query.returnUrl),{isInternal:r}=(0,c.D)(n,t.asPath,e.app.hosts);return r?n:"/"};var v=!0,g=()=>{let{session:e,signIn:t}=(0,p.Eu)(),n=(0,f.useRouter)(),i=b(),{enqueueSnackbar:a}=(0,x.Ds)(),s=(0,o.useCallback)(async e=>{let{email:r,password:o,rememberMe:s}=e,u=await t({email:r,password:o,rememberMe:s});if(!u.succeeded){a(u.message,{variant:"error"});return}a("登入成功",{variant:"success"}),i&&await n.push(i)},[a,i,n,t]);return(0,r.tZ)(m.Z,{maxWidth:"md",style:{display:"flex",flexDirection:"column",flexGrow:1,alignItems:"center",justifyContent:"center"},children:e?(0,r.BX)("div",{children:[(0,r.tZ)(Z.Z,{align:"center",children:"你已經成功登入耐美知識。"}),(0,r.BX)(Z.Z,{align:"center",children:["回",(0,r.tZ)(h.Z,{onClick:()=>n.back(),children:"上一頁"}),"。"]})]}):(0,r.tZ)(u,{onSubmit:s})})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=37265)}),_N_E=e.O()}]);

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.