PageSourceSearch

https://coenoma.com/_next/static/chunks/pages/%5Bcom_id%5D/admin/settings/edit-9cc8a2fa22fb3a99.js

js coenoma.com collected 2026-10-02 05:15:22 UTC 3,913 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6d59f4f3-ec42-4b54-a82b-bef8d7660541",e._sentryDebugIdIdentifier="sentry-dbid-6d59f4f3-ec42-4b54-a82b-bef8d7660541")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7754],{80801:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[com_id]/admin/settings/edit",function(){return n(38588)}])},75621:function(e,t,n){"use strict";n.d(t,{G:function(){return m}});var r=n(67294),i=n(11163),o=n(91088);let s=e=>{let{loading:t,isRefreshingToken:n,isUpdatedUserInfo:r,comId:i,hasUserInfo:o,isAuthUserNull:s,isRoleResolved:a,isAdmin:c,hasRoleError:u}=e;return t||n||!r||!i?"wait":o?u?s?"redirect-login":"redirect-community":a?c?"allow":"redirect-community":"wait":s?"redirect-login":"wait"};var a=n(10999),c=n(33221),u=n(76569),d=n(64676),l=n(12011),f=n(84657);let m=()=>{let e=(0,i.useRouter)(),{userInfo:t,isUpdatedUserInfo:n}=(0,c.P)(),{setErrorMessage:m}=(0,u.s)(),{authUser:y,loading:w,isRefreshingToken:_}=(0,d.a)(),{isAdmin:h,isRoleResolved:g,hasRoleError:b}=(0,o.Q)(),E=e.query.com_id,p=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(p.current===E)return;let r=s({loading:w,isRefreshingToken:_,isUpdatedUserInfo:n,comId:E,hasUserInfo:!!(null==t?void 0:t.id),isAuthUserNull:null===y,isRoleResolved:g,isAdmin:h,hasRoleError:b});if("wait"===r||"allow"===r)return;if(p.current=E,"redirect-login"===r){e.replace("/login");return}let i=null==t?void 0:t.id;i&&E&&(0,a.Qg)(i,E),m((0,l.x)(f.V.ADMIN_AUTH)),e.replace("/".concat(E))},[t,E,y,w,_,n,h,g,b,m,e]),{userInfo:t,isUserAdmin:h}}},38588:function(e,t,n){"use strict";n.r(t);var r=n(85893),i=n(67294),o=n(11163),s=n(76569),a=n(33221),c=n(12915),u=n(75621),d=n(34313),l=n(41774),f=n(49170),m=n(45363),y=n(85352),w=n(61489),_=n(91108),h=n(12011),g=n(34526),b=n(84657);t.default=()=>{let e=(0,o.useRouter)(),t=e.query.com_id,[n,E]=(0,i.useState)(null),{authUser:p,loading:I}=(0,c.Q)(),{isUserAdmin:x}=(0,u.G)(),{fetchUserInfo:N}=(0,a.P)(),{setSuccessMessage:D,setErrorMessage:T,checkedCommunityAuth:U}=(0,s.s)(),M=async n=>{try{await (0,d.J)({communityData:n,communityId:t}),N(),D("スペース情報が更新されました。"),e.pathname!=="/".concat(t,"/admin/settings")&&e.push("/".concat(t,"/admin/settings"))}catch(e){e.message&&e.message.includes("スペースIDが既に使用されています")?T(b.V.DUPLICATE_COMMUNITY_NAME):T((0,h.x)(b.V.UPDATE_COMMUNITY,e))}};return((0,i.useEffect)(()=>{(async()=>{if(t)try{let e=await (0,l.G)(t);if(e.iconUrl)try{let t=await (0,g.q)(!0,e.iconUrl);e={...e,displayIconUrl:t}}catch(e){T("アイコンの設定で不明なエラーが発生しました")}E(e)}catch(e){T((0,h.x)(b.V.FETCH_COMMUNITY,e))}})()},[t]),!I&&n&&x)?U?(0,r.jsxs)("div",{children:[(0,r.jsx)(f.p,{pageTitle:"スペース設定の編集"}),(0,r.jsxs)("div",{className:"main-content form-container",children:[(0,r.jsx)(m.x,{}),(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"スペース設定の編集"}),(0,r.jsx)(w.Z,{onSubmit:M,initialData:n,isEditMode:!0})]})]}):(0,r.jsx)(_.M,{}):(0,r.jsx)(y.a,{})}},34313:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r=async e=>{let{communityData:t,communityId:n,icon:r}=e;try{let e=await fetch("/api/shared/save_community",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({communityData:t,communityId:n,icon:r})}),i=await e.json();if(!e.ok){if("DUPLICATE_NAME"===i.code)throw Error(i.error||"スペースIDが既に使用されています");throw Error(i.error||i.details||"Unknown error")}return i}catch(e){throw console.error("Error saving community:",e),e}}}},function(e){e.O(0,[9100,1281,9766,8901,9198,5650,831,7257,1280,2888,9774,179],function(){return e(e.s=80801)}),_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.