1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="d69e3d03-8d4e-4462-aaf0-0c15229d27c1",e._sentryDebugIdIdentifier="sentry-dbid-d69e3d03-8d4e-4462-aaf0-0c15229d27c1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12363,41267,48512],{19524:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/build-projects/[build_project_id]/activities/[activity_id]",function(){return t(70351)}])},70351:(e,i,t)=>{"use strict";t.r(i),t.d(i,{__N_SSP:()=>U,default:()=>G});var r=t(79532),l=t(10670),d=t(88990),s=t(93570),a=t(47098),c=t(66419),n=t(70532),u=t(22059),o=t(41030),x=t(18892),j=t(33248),h=t(49215),f=t(67843),v=t(57325);let m=(0,u.UG)(` 2 fragment BuildActivityDetailFragment on BuildActivity { 3 id 4 buildProjectId 5 createdAt 6 images { 7 id 8 imageUrl 9 note 10 } 11 workTimes { 12 id 13 phaseLabel 14 workTimeMinutes 15 } 16 creator { 17 id 18 displayName 19 photoURL 20 } 21 } 22`),p=(0,u.UG)(` 23 fragment BuildActivityDetailBuildProjectFragment on BuildProject { 24 id 25 title 26 userGunplaKits { 27 id 28 title 29 } 30 } 31`),y=({activity:e,buildProject:i})=>{let{t}=(0,n.A)("features/buildProject"),{t:l}=(0,n.A)("shared"),d=(0,u.Bk)(m,e),a=i?(0,u.Bk)(p,i):null,c=a?.userGunplaKits??[],y=c.map(e=>e.title).join(t("ã")),b=d.workTimes.reduce((e,i)=>e+i.workTimeMinutes,0),g=d.creator?.id??"",_=d.creator?.displayName??"",w=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"size-36 shrink-0",children:(0,r.jsx)(x.e,{src:d.creator?.photoURL??"",size:"small",alt:""})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-col truncate",children:[(0,r.jsx)(s.o,{variant:"subtitleSm",className:"truncate",children:_}),(0,r.jsx)(s.o,{variant:"captionXs",color:"tertiary",children:(0,v.eb)(l)(d.createdAt)})]})]});return(0,r.jsxs)("div",{className:"flex w-full flex-col gap-16",children:[(e=>g?(0,r.jsx)(h.N,{href:f.y.profile._user_id(g).$url(),className:"flex items-center gap-8 no-underline hover:text-interactive",withFocusRing:!0,children:e}):(0,r.jsx)("div",{className:"flex items-center gap-8",children:e}))(w),(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[d.workTimes.length>0&&(0,r.jsx)("div",{className:"flex flex-row flex-wrap gap-4",children:d.workTimes.map(e=>(0,r.jsx)(o.v,{variant:"basic",size:"xxsmall",children:e.phaseLabel},e.id))}),c.length>0&&y.length>0&&(0,r.jsx)(s.o,{variant:"heading2xl",component:"h2",children:y}),b>0&&(0,r.jsx)(s.o,{variant:"bodyLg",color:"secondary",children:t("使¥æéï¼{{time}}",{time:(e=>{let i=Math.floor(e/60),r=e%60;return i>0&&r>0?t("{{hours}}æé{{mins}}å",{hours:i,mins:r}):i>0?t("{{hours}}æé",{hours:i}):t("{{mins}}å",{mins:r})})(b)})})]}),d.images.length>0&&(0,r.jsx)("div",{className:"flex flex-col gap-8",children:d.images.map((e,i)=>(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)("div",{className:"relative aspect-square w-full overflow-hidden",children:(0,r.jsx)(j._,{src:e.imageUrl,alt:t("ç»å{{index}}",{index:i+1}),fill:!0,objectFit:"cover",sizes:"(max-width: 768px) 100vw, 656px"})}),e.note?(0,r.jsx)(s.o,{variant:"bodyLg",className:"whitespace-pre-wrap break-words",children:e.note}):null]},e.id))})]})};var b=t(5164),g=t(7307),_=t(48595),w=t(19496),N=t(75276),k=t(78181),I=t(24668),P=t(69296),A=t(89919),D=t(75920),B=t(56511),T=t(53265),q=t(74981);let $=(0,u.UG)(` 32 query BuildActivityDetailPageQuery($buildProjectId: String!, $buildActivityId: String!) { 33 buildActivity(buildProjectId: $buildProjectId, buildActivityId: $buildActivityId) { 34 id 35 ...BuildActivityDetailFragment 36 } 37 buildProject(buildProjectId: $buildProjectId) { 38 id 39 title 40 ...BuildActivityDetailBuildProjectFragment 41 } 42 } 43 `,[m,p]),F=({ogpData:e})=>{let i=(0,c.useRouter)(),{webBuildProjectPageReleaseFlag:t}=(0,T.D)(),d="string"==typeof i.query.build_project_id?i.query.build_project_id:"",s="string"==typeof i.query.activity_id?i.query.activity_id:"",a=!0===t,{isOwner:n,isLoaded:u}=(0,q.N)(),{data:o,loading:x}=(0,l.IT)($,{variables:{buildProjectId:d,buildActivityId:s},skip:!d||!s||!a&&(!u||!n)}),j=(()=>
43{if(!d||!s)return(0,r.jsx)(D.Y,{children:(0,r.jsx)(I.M,{})});if(null==t)return(0,r.jsx)(k.k,{});if(!a){if(!u)return(0,r.jsx)(D.Y,{children:(0,r.jsx)(k.k,{})});if(!n)return(0,r.jsx)(D.Y,{children:(0,r.jsx)(I.M,{})})}if(x||void 0===o)return(0,r.jsx)(k.k,{});if(!o.buildActivity||!o.buildProject)return(0,r.jsx)(D.Y,{children:(0,r.jsx)(I.M,{})});let e=o.buildProject.title,i=(0,r.jsx)(b.dZ,{kind:"activity"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.A,{title:e}),(0,r.jsx)(w.Y,{children:(0,r.jsx)(b.j7,{})}),(0,r.jsx)(g.G,{title:e,defaultHref:f.y.$url(),subContent:i,children:(0,r.jsxs)("div",{className:"mb-40 flex grow flex-col gap-16",children:[(0,r.jsx)("div",{className:"w-full bg-surface-plain px-16 py-12 lg:rounded-lg lg:px-24 lg:py-16",children:(0,r.jsx)(y,{activity:o.buildActivity,buildProject:o.buildProject})}),(0,r.jsx)("div",{className:"hidden lg:block xl:hidden",children:i})]})})]})})();return(0,r.jsx)(A.A,{ogpData:e??void 0,children:a?j:(0,r.jsx)(D.Y,{children:j})})},L=()=>{let{t:e}=(0,n.A)("shared"),i=(0,c.useRouter)(),t="string"==typeof i.query.build_project_id?i.query.build_project_id:"",u="string"==typeof i.query.activity_id?i.query.activity_id:"",o=(0,_.N)(f.y.$url()),{webBuildProjectPageReleaseFlag:x}=(0,T.D)(),{data:j}=(0,l.IT)($,{variables:{buildProjectId:t,buildActivityId:u},skip:!t||!u||!0!==x});return(0,r.jsxs)(N.Y9,{divider:!0,children:[(0,r.jsx)(N.FK,{children:(0,r.jsx)(d.K,{size:"small",onClick:o,"aria-label":e("æ»ã"),children:(0,r.jsx)(a.p,{})})}),(0,r.jsx)(s.o,{variant:"subtitleMd",className:"mx-auto truncate px-44",align:"center",children:j?.buildProject?.title??""})]})},M=({children:e})=>(0,r.jsx)(B.i,{mobileHeader:(0,r.jsx)(L,{}),disableBottomTab:!0,children:e});F.getLayout=e=>(0,r.jsx)(M,{children:e});var U=!0;let G=F},74981:(e,i,t)=>{"use strict";t.d(i,{N:()=>a});var r=t(10670),l=t(22059),d=t(79817);let s=(0,l.UG)(` 44 query OwnerCheckQuery($userId: String!) { 45 user(userId: $userId) { 46 id 47 role 48 } 49 } 50`);function a(){let e=(0,d.wS)(),i=(0,d.DB)(),{data:t,loading:l}=(0,r.IT)(s,{variables:{userId:e??""},skip:!0!==i||!e});return{isOwner:t?.user?.role==="ADMIN",isLoaded:void 0!==i&&!l}}}},e=>{e.O(0,[30985,10670,91188,33886,22469,87007,16090,45964,87149,86370,61712,56511,13066,90636,46593,38792],()=>e(e.s=19524)),_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.