PageSourceSearch

https://cycomi.com/_next/static/chunks/pages/settings/gawa/notification-baeeb3247843c490.js

js cycomi.com collected 2026-09-24 20:40:46 UTC 11,724 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7676],{1154:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=a(84335).A},26872:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var r=a(14232),o=a(69241),n=a(4697),i=a(80027),s=a(68275),c=a(54773),l=a(1154),d=a(74073),h=a(58706),u=a(47951),p=a(45879);function m(e){return(0,p.Ay)("PrivateSwitchBase",e)}(0,u.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=a(37876);let b=(0,c.Ay)(h.A)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:e=>{let{edge:t,ownerState:a}=e;return"start"===t&&"small"!==a.size},style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:e=>{let{edge:t,ownerState:a}=e;return"end"===t&&"small"!==a.size},style:{marginRight:-12}}]}),x=(0,c.Ay)("input",{shouldForwardProp:s.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v=r.forwardRef(function(e,t){let{autoFocus:a,checked:r,checkedIcon:s,className:c,defaultChecked:h,disabled:u,disableFocusRipple:p=!1,edge:v=!1,icon:w,id:y,inputProps:k,inputRef:f,name:S,onBlur:A,onChange:j,onFocus:C,readOnly:P,required:M=!1,tabIndex:z,type:R,value:B,...F}=e,[N,E]=(0,l.A)({controlled:r,default:!!h,name:"SwitchBase",state:"checked"}),I=(0,d.A)(),_=u;I&&void 0===_&&(_=I.disabled);let O="checkbox"===R||"radio"===R,K={...e,checked:N,disabled:_,disableFocusRipple:p,edge:v},T=(e=>{let{classes:t,checked:a,disabled:r,edge:o}=e,s={root:["root",a&&"checked",r&&"disabled",o&&"edge".concat((0,i.A)(o))],input:["input"]};return(0,n.A)(s,m,t)})(K);return(0,g.jsxs)(b,{component:"span",className:(0,o.A)(T.root,c),centerRipple:!0,focusRipple:!p,disabled:_,tabIndex:null,role:void 0,onFocus:e=>{C&&C(e),I&&I.onFocus&&I.onFocus(e)},onBlur:e=>{A&&A(e),I&&I.onBlur&&I.onBlur(e)},ownerState:K,ref:t,...F,children:[(0,g.jsx)(x,{autoFocus:a,checked:r,defaultChecked:h,className:T.input,disabled:_,id:O?y:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;E(t),j&&j(e,t)},readOnly:P,ref:f,required:M,ownerState:K,tabIndex:z,type:R,..."checkbox"===R&&void 0===B?{}:{value:B},...k}),N?s:w]})})},55509:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=a(14232).createContext(void 0)},60513:(e,t,a)=>{"use strict";a.d(t,{V:()=>n});var r=a(37876),o=a(85786);let n=()=>(0,r.jsx)(o.A,{metaData:[{name:"robots",content:"noindex"}]})},66122:(e,t,a)=>{"use strict";a.d(t,{q:()=>i});var r=a(31455),o=a(60233),n=a(60850);let i={Push:{usePush:()=>r.u.useDataUser(["api/user/settings/push"],o.nC.Fetcher.read),usePushEdit:()=>(0,n.n)("/api/user/settings/push/edit",o.nC.MutationFetcher.create)}}},74073:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(14232),o=a(55509);function n(){return r.useContext(o.A)}},78066:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/gawa/notification",function(){return a(84569)}])},84569:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>en});var r=a(37876),o=a(92356),n=a(60513),i=a(97740),s=a(54773),c=a(9227),l=a(31771),d=a(2066),h=a(68351),u=a(99674),p=a(14232),m=a(69241),g=a(4697),b=a(54843),x=a(80027),v=a(78457),w=a(26872),y=a(82987),k=a(52196),f=a(47951),S=a(45879);function A(e){return(0,S.Ay)("MuiSwitch",e)}let j=(0,f.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),C=(0,s.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.edge&&t["edge".concat((0,x.A)(a.edge))],t["size".concat((0,x.A)(a.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(j.thumb)]:{width:16,height:16},["& .".concat(j.switchBase)]:{padding:4,["&.".concat(j.checked)]:{transform:"translateX(16px)"}}}}]}),P=(0,s.Ay)(w.A,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.switchBase,{["& .".concat(j.input)]:t.input}
1,"default"!==a.color&&t["color".concat((0,x.A)(a.color))]]}})((0,y.A)(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(j.checked)]:{transform:"translateX(20px)"},["&.".concat(j.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(j.checked," + .").concat(j.track)]:{opacity:.5},["&.".concat(j.disabled," + .").concat(j.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(j.input)]:{left:"-100%",width:"300%"}}}),(0,y.A)(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,b.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((0,v.A)(["light"])).map(e=>{let[a]=e;return{props:{color:a},style:{["&.".concat(j.checked)]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[a].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,b.X4)(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(j.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(a,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,b.a)(t.palette[a].main,.62):(0,b.e$)(t.palette[a].main,.55))}},["&.".concat(j.checked," + .").concat(j.track)]:{backgroundColor:(t.vars||t).palette[a].main}}}})]}})),M=(0,s.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((0,y.A)(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),z=(0,s.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((0,y.A)(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),R=p.forwardRef(function(e,t){let a=(0,k.b)({props:e,name:"MuiSwitch"}),{className:o,color:n="primary",edge:i=!1,size:s="medium",sx:c,...l}=a,d={...a,color:n,edge:i,size:s},h=(e=>{let{classes:t,edge:a,size:r,color:o,checked:n,disabled:i}=e,s={root:["root",a&&"edge".concat((0,x.A)(a)),"size".concat((0,x.A)(r))],switchBase:["switchBase","color".concat((0,x.A)(o)),n&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=(0,g.A)(s,A,t);return{...t,...c}})(d),u=(0,r.jsx)(z,{className:h.thumb,ownerState:d});return(0,r.jsxs)(C,{className:(0,m.A)(h.root,o),sx:c,ownerState:d,children:[(0,r.jsx)(P,{type:"checkbox",icon:u,checkedIcon:u,ref:t,ownerState:d,...l,classes:{...h,root:h.switchBase}}),(0,r.jsx)(M,{className:h.track,ownerState:d})]})}),B=(0,s.Ay)(R)(e=>{let{theme:t}=e;return{width:56,height:32,padding:0,[".".concat(j.switchBase)]:{padding:0,margin:4,transitionDuration:"300ms",["&.".concat(j.checked)]:{transform:"translateX(24px)",color:t.palette.primary.contrastText,["& + .".concat(j.track)]:{backgroundColor:t.palette.secondary.main,opacity:1,border:0}}},["& .".concat(j.thumb)]:{boxSizing:"border-box",width:24,height:24},["& .".concat(j.track)]:{borderRadius:16,backgroundColor:t.palette.mainGrey.main,opacity:1}}}),F=e=>(0,r.jsx)(B,{...e,disableRipple:!0}),N=(0,s.Ay)(c.A)({alignItems:"center",justifyContent:"space-between"}),E=(0,s.Ay)(l.E)(e=>{let{theme:t}=e;return{color:t.palette.headline.main,fontSize:h.Z.SP.L}});var I=a(92577),_=a(5849),O=a(37479),K=a(6704);let T=e=>{let{checked:t,handleOk:a,title:o}=e,{closeDialog:n}=(0,I.s)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(O.wt,{children:[o,"設定の確認"]}),(0,r.jsxs)(O.cw,{children:[(0,r.jsx)(O.$m,{children:(0,r.jsxs)(l.E,{fontSize:h.Z.M,children:[o,"設定を",t?"オフ":"オン","にしますか?"]})}),(0,r.jsxs)(O.NS,{children:[(0,r.jsx)(K.M,{onClick:a}),(0,r.jsx)(K.Z,{onClick:n})]})]})]})},D={PushInfo:"isPushInfo",PushStayFreeCharge:"isPushStayFreeCharge"},L={[D.PushInfo]:"お知らせ通知",[D.PushStayFreeCharge]:"チャージ完了通知"};var X=a(66122),Z=a(46143),q=a(64609);let G=(0,s.Ay)(c.A)({margin:"auto",width:"100%",maxWidth:600,marginTop:d.K.SP.M,marginBottom:
1d.K.SP.M}),V=(0,s.Ay)(e=>{let{title:t,text:a,className:o,...n}=e;return(0,r.jsxs)(N,{spacing:d.K.SP.M,direction:"row",className:o,children:[(0,r.jsxs)(u.A,{children:[(0,r.jsx)(E,{bold:!0,children:t}),a]}),(0,r.jsx)(F,{...n})]})})({minHeight:112,borderRadius:"4px",boxShadow:"0 0 4px 1px rgba(0, 0, 0, 0.2)",padding:d.K.SP.M}),W=(0,s.Ay)(l.E)({fontSize:h.Z.SP.M}),$=()=>{let{openDialog:e,closeDialog:t}=(0,I.s)(),{data:a,update:o,isValidating:n}=X.q.Push.usePush(),{trigger:i}=X.q.Push.usePushEdit(),{showInfo:s}=(0,Z.M)(),c=void 0===a||n,l=(0,p.useCallback)(n=>()=>{if(void 0===a)return;let c=a[n],l=L[n],d=async()=>{await i({[n]:!c},{onSuccess:async()=>{s("".concat(l,"設定を変更しました")),await o((0,q.jM)(a,e=>{e[n]=!c}))}}),t()};e((0,r.jsx)(T,{checked:c,title:l,handleOk:d}),_.br)},[t,e,s,i,a,o]);return(0,r.jsxs)(G,{spacing:d.K.SP.M,children:[(0,r.jsx)(V,{onClick:l(D.PushInfo),title:L[D.PushInfo],checked:!!(null==a?void 0:a.isPushInfo),disabled:c,text:(0,r.jsx)(W,{children:"作品の最新話更新のお知らせや無料話増量やコイン還元キャンペーンなどサイコミのお得なイベント情報などを受け取れます。"})}),(0,r.jsx)(V,{onClick:l(D.PushStayFreeCharge),title:L[D.PushStayFreeCharge],checked:!!(null==a?void 0:a.isPushStayFreeCharge),disabled:c,text:(0,r.jsx)(W,{children:"待てばタダ!を使ったあとにチャージが完了したら、お知らせを受け取れます。"})})]})};var H=a(94390),U=a(18289),J=a(56726),Q=a(14641);let Y=(0,s.Ay)(H.o)(e=>{let{theme:t}=e;return t.unstable_sx({borderTop:"1px solid",borderColor:t.palette.mainGrey.main,position:"fixed",bottom:0,left:0,width:"100%",px:d.K.SP.M,pt:d.K.SP.M,pb:d.K.SP.L})}),ee=(0,s.Ay)(U.hj)({width:"100%",maxWidth:260,marginTop:d.K.SP.M}),et=()=>{let{clientApi:e}=(0,Q.t)(),t=(0,p.useCallback)(()=>{var t;null==(t=e(J.L.OpenNotificationSettings))||t.then()},[e]);return(0,r.jsxs)(Y,{direction:"column",children:[(0,r.jsx)(l.E,{fontSize:h.Z.SP.M,children:"アプリの通知設定をONにしてもプッシュ通知が受け取れない場合は端末の設定をご確認ください。"}),(0,r.jsx)(ee,{onClick:t,children:"端末設定を確認する"})]})},ea=(0,s.Ay)(i.RG)(e=>{let{theme:t}=e;return t.unstable_sx({px:d.K.SP.M})}),er=()=>(0,r.jsxs)(i.Ay,{children:[(0,r.jsx)(i.CD,{disableMargin:!0,children:"通知設定"}),(0,r.jsx)(ea,{children:(0,r.jsx)($,{})}),(0,r.jsx)(et,{})]}),eo=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.A,{title:"通知設定"}),(0,r.jsx)(n.V,{}),(0,r.jsx)(er,{})]});eo.getLayout=(e,t)=>
1(0,r.jsx)(t,{hideNavbar:!0,children:e});let en=eo}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=78066)),_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.