PageSourceSearch

https://app.featuring.co/_next/static/chunks/pages/w/[workspaceCod…/workspace_setting-81dc2edd449a1b3b.js

js featuring.co collected 2026-09-24 12:24:13 UTC 8,082 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2388],{1003:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>$,default:()=>B});var a=s(80263),r=s(77464),n=s(1061),i=s(46987),o=s(3024),c=s(18577),l=s(51596),d=s(30620),g=s(75778),p=s(3638),m=s(52659),u=s(53239),x=s(50610),h=s(26217),k=s(13050),w=s(41864),j=s(78719),b=s(36456),y=s(54202),_=s(60897),f=s(32273),v=s(52130),C=s(57628),N=s(6055),A=s(93834),U=s(18131),T=s(95707),z=s(3731),E=s(55370),S=s(20763);let V=()=>{var e;let{t}=(0,m.Bd)(["setting","common"]),s=(0,A.A)(),{authority:z}=(0,w.Pj)(),V=(0,u.useRef)(null),[$,B]=(0,u.useState)(!1),[M,P]=(0,u.useState)(!1),[O,R]=(0,u.useState)(!1),[D,F]=(0,u.useState)(!1),[L,q,X,I,G]=(0,N.A)(V),H=(0,j.A)(),{openWorkspaceDeleteFlow:W}=(0,C.O)();(0,u.useEffect)(()=>{null!==H&&q(H?.name)},[H]),(0,u.useEffect)(()=>{if(D){let e=setTimeout(()=>{F(!1)},1e3);return()=>clearTimeout(e)}},[D]);let{dataUpdatedAt:Z}=(0,v.Bq)();(0,u.useEffect)(()=>{Z&&(P(!1),R(!1))},[Z]);let{data:J=null}=(0,f.SS)({select:e=>e.membership_name}),{mutate:K}=(0,_.oG)(),Q=async()=>{if(H?.code)try{await navigator.clipboard.writeText(H.code),F(!0)}catch(e){}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(E.A,{pageName:t("setting:workspace.workspace-setting.head.title",{noWrap:!0})}),(0,a.jsx)(S.$.bL,{children:(0,a.jsxs)(S.$.wn,{grow:!0,children:[(0,a.jsx)(S.$.X3,{children:(0,a.jsx)("span",{children:t("setting:workspace.workspace-setting.background.section-header")})}),(0,a.jsxs)(S.$.iq,{children:[(0,a.jsxs)("div",{className:(0,k.Uu)({gap:"spacing-400",align:"end"}),children:[M?(0,a.jsx)(U.A,{_width:"84px",_height:"84px",radius:"4px"}):(0,a.jsx)(r.bL,{size:"xl",shape:"square",name:H?.name??"",children:H?.workspace_image&&(0,a.jsx)(r._V,{src:H.workspace_image,alt:H?.name??""})}),(0,a.jsxs)("div",{className:(0,k.Uu)({gap:"spacing-200",align:"end"}),children:[(0,a.jsx)(T.A,{text:t("setting:workspace.workspace-setting.background.profile-item.uploading-button.text"),upload_type:"immediately",mutate:e=>{P(!0),K({workspace_image:e},{onError(){P(!1),s(t("setting:workspace.workspace-setting.edit-mutate.image-loading.on-error.toast"),!1,!0)}})},max_size:1}),(0,a.jsx)("p",{className:h.C.body[1],children:t("setting:workspace.workspace-setting.background.profile-item.upload-size")})]})]}),(0,a.jsxs)("ul",{className:(0,p.A)((0,k.Uu)({direction:"column",align:"stretch",gap:"spacing-600"}),(0,x.UV)({marginTop:"spacing-1000"})),children:[(0,a.jsxs)("li",{className:(0,k.Uu)({gap:"spacing-400"}),children:[(0,a.jsx)("p",{style:{width:120},className:(0,p.A)(h.C.body[2],(0,x.UV)({color:"text-3"})),children:t("setting:workspace.workspace-setting.background.section-item.member-type")}),(0,a.jsx)("p",{className:(0,p.A)(h.C.heading[2],(0,x.UV)({color:"text-1"})),children:(e=J??"",y.EH.includes(e)?`${y.tD[e]?.()}`:y.yp.includes(e)?`${t("workspace.workspace-setting.membership-name.free")}${"free"===e?"":` (${y.tD[e]?.()})`}`:"")})]}),(0,a.jsxs)("li",{className:(0,k.Uu)({gap:"spacing-400"}),children:[(0,a.jsx)("p",{style:{width:120},className:(0,p.A)(h.C.body[2],(0,x.UV)({color:"text-3"})),children:t("setting:workspace.workspace-setting.background.section-item.name")}),(0,a.jsxs)("div",{className:(0,k.Uu)({gap:"spacing-100"}),children:[!$&&!O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:(0,p.A)(h.C.heading[2],(0,x.UV)({color:"text-1"})),children:H?.name}),(0,a.jsx)(n.M,{buttonType:"contrast",prefix:(0,a.jsx)(c.O,{}),onClick:()=>B(!0)})]}),O&&(0,a.jsx)(i.a,{size:"sm"}),$&&!O&&(0,a.jsxs)("div",{className:(0,k.Uu)({gap:"spacing-100",align:"start"}),children:[(0,a.jsx)(o.P,{ref:V,value:L,onChange:e=>{e.currentTarget.value.length<=15&&q(e.currentTarget.value),e.currentTarget.value.length<2?I("too_short"):e.currentTarget.value.length>15?I("too_long"):I("pass")},status:"pass"!==X&&"none"!==X?"error":"none",validationText:G,trailingElement:(0,a.jsx)(l.a,{onClick:()=>B(!1)})}),(0,a.jsx)(n.M,{size:"md",text:t("setting:workspace.workspace-setting.background.section-item.modification"),onClick:()=>{R(!0),K({name:L},{onSuccess(){B(!1)}
1,onError(){B(!1),R(!1),s(t("setting:workspace.workspace-setting.edit-mutate.name-loading.on-error.toast"),!1,!0)}})},disabled:"pass"!==X})]})]})]}),(0,a.jsxs)("li",{className:(0,k.Uu)({gap:"spacing-400"}),children:[(0,a.jsx)("p",{style:{width:120},className:(0,p.A)(h.C.body[2],(0,x.UV)({color:"text-3"})),children:t("setting:workspace.workspace-setting.background.section-item.workspace-code")}),(0,a.jsxs)("div",{className:(0,k.Uu)({gap:"spacing-100"}),children:[(0,a.jsx)("p",{className:(0,p.A)(h.C.heading[2],(0,x.UV)({color:"text-1"})),children:H?.code}),(0,a.jsx)(n.M,{buttonType:"contrast",prefix:D?(0,a.jsx)(d.M,{}):(0,a.jsx)(g.x,{}),onClick:Q})]})]})]}),(0,b.wm)(z.type)&&(0,a.jsx)("div",{className:(0,x.UV)({marginTop:"spacing-800"}),children:(0,a.jsx)(n.M,{text:t("setting:workspace.workspace-setting.background.section-item.delete-workspace"),size:"md",onClick:()=>{H?.code&&H?.name&&W({type:"delete",workspace_code:H.code,workspace_name:H.name})},isDanger:!0,buttonType:"tertiary"})})]})]})})]})};V.getLayout=e=>(0,a.jsx)(z.A,{children:e});var $=!0;let B=V},3731:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var a=s(80263),r=s(582),n=s(52659);s(53239);var i=s(41864),o=s(63751),c=s(20213);let l=["workspace_setting","team_members_management","membership_management","credit-management","payment_management","coupon"],d=({children:e})=>{let{t}=(0,n.Bd)("setting"),s=(0,r.useRouter)(),{type:d}=(0,i.Pj)(e=>e.authority),g=[t("manage-workspace"),t("manage-team-member"),t("manage-membership"),t("manage-credit"),t("manage-payment"),t("coupon")],p=[t("manage-payment"),t("coupon")],m=g.filter(e=>!((s?.locale==="ja"||s?.locale==="en")&&p.includes(e)));return(0,a.jsx)(c.A,{base_url:"/setting/workspace/",tab_list:m,route_list:l,_disabled:[],...o.OZ.setting_membership,children:e})}},9296:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/w/[workspaceCode]/setting/workspace/workspace_setting",function(){return s(1003)}])},95707:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var a=s(80263),r=s(53239),n=s(49631),i=s(42100),o=s(60922),c=s(1061),l=s(52659);let d=({resolve:e,size:t})=>{let{t:s}=(0,l.Bd)("setting");return(0,a.jsx)(o.z,{title:s("picture-size-alert.alert-header"),handleClose:()=>e(),size:"sm",hasCloseButton:!1,isBgClose:!1,actionsChildren:[(0,a.jsx)(c.M,{buttonType:"primary",text:s("picture-size-alert.primary-button.text"),onClick:()=>e()},"confirm")],children:(0,a.jsx)("p",{children:s("picture-size-alert.alert-body",{size:t})})})},g=i.Ay.label.withConfig({componentId:"sc-168e2af2-0"})(["white-space:nowrap;padding:0 8px;border-radius:4px;",";",";display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color 0.2s,border 0.2s;&:disabled{cursor:unset;}color:",";background-color:transparent;border:1px solid ",";&:hover{background-color:",";}&:active{background-color:",";}&:disabled{color:",";border-color:",";background-color:transparent;}"],({_margin:e})=>e&&`margin: ${e}`,({theme:e})=>e.typo.body.p_bold,({theme:e})=>e.colors.gray.gray80_text,({theme:e})=>e.colors.gray.gray15,({theme:e})=>e.colors.gray.gray10,({theme:e})=>e.colors.gray.gray15,({theme:e})=>e.colors.gray.gray30,({theme:e})=>e.colors.gray.gray15),p=i.Ay.input.withConfig({componentId:"sc-168e2af2-1"})(["display:none;"]),m=({text:e,upload_type:t,mutate:s,setPreview:i,setFile:o,max_size:c,_accept:l="image/jpg, image/png, image/jpeg",_margin:m})=>{let u=(0,r.useRef)(null),x=(0,n.hS)(d);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(g,{_margin:m,children:[e,(0,a.jsx)(p,{type:"file",accept:l,ref:u,onChange:e=>{if(!c)return;let a=e.currentTarget,r=a.files;if(!a||!r)return;let n=new FileReader,l=r[0];if(!l)return;let d=1024*c*1024;if(l?.size>d)return void x({size:c});
1if("preview"===t&&i&&o&&(n?.readAsDataURL(l),n.onloadend=()=>{"string"==typeof n?.result&&i(n?.result),o(l)}),"immediately"===t&&s&&c){let e=1024*c*1024;if(l?.size>e)return void x({size:c});s(l)}}})]})})}}},e=>{e.O(0,[9227,6160,636,6593,8792],()=>e(e.s=9296)),_N_E=e.O()}]);
2//# sourceMappingURL=workspace_setting-81dc2edd449a1b3b.js.map

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.