PageSourceSearch

https://gogoland.koikeya.co.jp/_next/static/chunks/pages/view/chal…/question/result-c84f65e56dd0f9e9.js

js koikeya.co.jp collected 2026-10-02 06:54:42 UTC 15,842 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a39a2cce-4228-5fb8-8659-2fe4e7d29c8d")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6575,9983],{4073:(e,t,i)=>{var n=i(16553),a=i(79949),s=i(85727);e.exports=function(e,t){return e&&e.length?n(e,s(t,2),a):void 0}},16553:(e,t,i)=>{var n=i(80014);e.exports=function(e,t,i){for(var a=-1,s=e.length;++a<s;){var r=e[a],c=t(r);if(null!=c&&(void 0===d?c==c&&!n(c):i(c,d)))var d=c,o=r}return o}},21558:(e,t,i)=>{"use strict";i.d(t,{l:()=>d});var n=i(45023),a=i(19294),s=i(66432),r=i(7528);let c=(0,r.n9)()(()=>({card:{display:"flex",flexDirection:"column","@media (min-width:480px)":{flexDirection:"row"}},details:{display:"flex",flexDirection:"column",wordBreak:"break-all"},content:{flex:"1 0 auto"},title:{fontSize:"0.875rem"},description:{fontSize:"0.75rem"},cover:{height:150,width:"100%",backgroundSize:"contain"}})),d=e=>{let t,{classes:i}=c(),{previewData:d}=e;if(!d)return null;let{url:o,title:l,description:m,image:u}=d,{slicedTitle:p,slicedDescription:h}=(t=l?Math.min(50,l.length):0,{slicedTitle:l?(0,a.truncate)(l,t):"",slicedDescription:m?(0,a.truncate)(m,100-t):""});return(0,n.Y)("a",{href:(0,s.Hs)(o),target:"_blank",rel:"noopener",children:(0,n.FD)(r.Zp,{className:i.card,children:[(0,n.Y)(r.Vo,{className:i.cover,image:u}),(0,n.Y)("div",{className:i.details,children:(0,n.FD)(r.Wu,{className:i.content,children:[(0,n.Y)(r.o5,{className:i.title,component:"h5",variant:"h6",children:p}),(0,n.Y)(r.o5,{className:i.description,color:"textSecondary",children:h})]})})]})})}},30469:(e,t,i)=>{"use strict";i.d(t,{r:()=>d});var n=i(45023),a=i(2004),s=i.n(a),r=i(90524),c=i(39282);let d=()=>{let{t:e}=(0,r.B)(["components/atoms"]);return(0,n.FD)(n.FK,{children:[(0,n.FD)("span",{className:s().dynamic([["638339df2649080c",[c.Q1.user.text.light,c.Z4[350]]]])+" editState text-right",children:["(",e("edited"),")"]}),(0,n.Y)(s(),{id:"638339df2649080c",dynamic:[c.Q1.user.text.light,c.Z4[350]],children:`.editState.__jsx-style-dynamic-selector{color:${c.Q1.user.text.light};font-size:${c.Z4[350]}}`})]})}},32533:(e,t,i)=>{"use strict";i.d(t,{_:()=>r});var n=i(45023),a=i(2004),s=i.n(a);function r(e){let{percentage:t,percentageColor:i,isMostPopular:a,className:r,slimHeight:c,children:d}=e,o=c?41:56;return(0,n.FD)("section",{className:s().dynamic([["28dfd0274f7d0d6e",[o,a?i||"#B3D3F3":"#c1c0c0",t,14,o]]])+" wrap d-flex align-items-center",children:[(0,n.Y)("div",{className:s().dynamic([["28dfd0274f7d0d6e",[o,a?i||"#B3D3F3":"#c1c0c0",t,14,o]]])+" "+`percent ${r||""}`,children:(0,n.FD)("span",{className:s().dynamic([["28dfd0274f7d0d6e",[o,a?i||"#B3D3F3":"#c1c0c0",t,14,o]]])+" px-2 font-weight-bold",children:[t||0,"%"]})}),(0,n.Y)("div",{className:s().dynamic([["28dfd0274f7d0d6e",[o,a?i||"#B3D3F3":"#c1c0c0",t,14,o]]])+" w-100 px-2",children:d}),(0,n.Y)(s(),{id:"28dfd0274f7d0d6e",dynamic:[o,a?i||"#B3D3F3":"#c1c0c0",t,14,o],children:`.percent.__jsx-style-dynamic-selector{position:absolute;top:0;bottom:0;left:0;right:0;text-align:left;line-height:${o}px}span.__jsx-style-dynamic-selector{position:relative;top:0;left:0;z-index:3}.percent.__jsx-style-dynamic-selector:after{content:"";position:absolute;background:${a?i||"#B3D3F3":"#c1c0c0"};top:0;bottom:0;left:0;width:${t}%;border-radius:4px;z-index:2}.wrap.__jsx-style-dynamic-selector{position:relative;font-size:14px;height:${o}px}`})]})}i(36439)},35692:(e,t,i)=>{"use strict";i.d(t,{Q:()=>m});var n=i(45023),a=i(2004),s=i.n(a),r=i(36439),c=i(41471),d=i(33922),o=i(21558),l=i(57968);function m({body:e}){let t,i=(e=>{let t=(0,c.useDispatch)(),i=(0,c.useSelector)(({app:e})=>e.urlPreviews);if(!e)return null;let n=()=>e&&i[e]?i[e]:{loading:!1,setPreview:!1,previewData:void 0};return(0,r.useEffect)(()=>{let i=n();!e||i.loading||i.setPreview||t((0,d.A)(l.HK.FETCH_PREVIEW_REQUEST)({url:e}))},[]),n()})((t=e?.match(/(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/i))?t[0]:null);return i&&i.setPreview&&i.previewData?.image?(0,n.FD)("div",{className:"jsx-e9c66dfc96916ef3 previewLoader",children:[(0,n.Y)(o.l,{previewData:i?.previewData}),(0,n.Y)(s(),{id:"e9c66dfc96916ef3",children:".previewLoader.jsx-e9c66dfc96916ef3{margin:16px auto}"})]}):null}},35856:(e,t,i)=>{"use strict";i.d(t,{f:()=>l});var n=i(45023),a=i(2004),s=i.n(a);i(36439);var r=i(63640),c=i(25008),d=i.n(c),o=i(9534);function l(e){let t=e.onClick?"button":"div";return(0,n.FD)(t,{type:e.onClick?"button":void 0,"aria-pressed":e.onClick?e.isActive:void 0,onClick:e.onClick&&(t=>e.onClick?.(t)),"data-cy":"question-option",className:s().dynamic([["f0ffbbdd16a7ff5e",[14,r.A.MAIN_BLUE,r.A.MAIN_BLUE]]])+" "+(d()("option my-1",e.className,{active:e.isActive},o.B_)||""),children:[e.image&&(0,n.Y)("div",{className:s().dynamic([["f0ffbbdd16a7ff5e",[14,r.A.MAIN_BLUE,r.A.MAIN_BLUE]]])+" mb-2",children:(0,n.Y)("img",{src:e.image,role:"presentation",className:s().dynamic([["f0ffbbdd16a7ff5e",[14,r.A.MAIN_BLUE,r.A.MAIN_BLUE]]])+" w-75"})}),e.text&&(0,n.Y)("div",{"data-cy":"question-option-label",className:s().dynamic([["f0ffbbdd16a7ff5e",[14,r.A.MAIN_BLUE,r.A.MAIN_BLUE]]])+" mx-2",children:e.text}),(0,n.Y)(s(),{id:"f0ffbbdd16a7ff5e",dynamic:[14,r.A.MAIN_BLUE,r.A.MAIN_BLUE],children:`.option.__jsx-style-dynamic-selector{display:block;width:100%;-webkit-appearance:none;appearance:none;background-color:transparent;color:inherit;font-family:inherit;font-size:14px;font-weight:bold;line-height:inherit;text-align:center;padding:17px 0;border:1px solid#c1c0c0;border-radius:0;box-shadow:0px 1px 3px darkgrey}.option.active.__jsx-style-dynamic-selector{outline:1px solid ${r.A.MAIN_BLUE};border:1px solid ${r.A.MAIN_BLUE};transition:all.25s ease}img.__jsx-style-dynamic-selector{height:120px;object-fit:contain}`})]})}},37422:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>$});var n=i(45023),a=i(90524),s=i(41471),r=i(33922),c=i(87314),d=i(62786),o=i(33026),l=i(382),m=i(6871),u=i(2783),p=i(23265),h=i(2004),f=i.n(h),y=i(36439),g=i(4073),b=i.n(g),_=i(51370),x=i(28317),N=i(89247),v=i(68102),w=i(9534),A=i(83539);class E extends y.Component{render(){let{rows:e,t,isLoadingMoreAnswers:i,hasMoreAnswers:a,onClickLoadMore:s}=this.props,r=[...e].reverse();return(0,n.FD)("section",{className:"jsx-dd0fe7a91eeeec55",children:[(0,n.Y)(N.N,{text:t("See past responses"),nowLoading:i,hasMore:a,onClick:s}),(0,n.Y)("div",{"data-cy":"challenge-result-answer-list",className:"jsx-dd0fe7a91eeeec55",children:r.map((e,t)=>e.isResigned?null:(0,n.Y)("div",{className:"jsx-dd0fe7a91eeeec55 comments py-3",children:(0,n.Y)(v.X,{bodyClassName:w.B_,iconPath:e.iconPath,userId:e.userId,name:e.name,isAdmin:e.isAdmin,viewedByAdmin:!1,viewableType:A.g.Public,accountName:e.accountName,body:e.body||"",lastEditedAt:null,createdAt:e.createdAt,images:e.images,documents:e.documents,videos:[],isResigned:e.isResigned}
3)},`RR${e.userId}-${e.createdAt}-${t}`))}),(0,n.Y)(f(),{id:"dd0fe7a91eeeec55",children:".comments.jsx-dd0fe7a91eeeec55{border-top:1px solid rgba(0,0,0,.1)}.comments.jsx-dd0fe7a91eeeec55:last-child{border-bottom:1px solid rgba(0,0,0,.1)}"})]})}}let Y=(0,x.C)(["components/molecules"])(E);var I=i(35856),T=i(32533),D=i(9688);class C extends y.Component{createQuestion(e,t){switch(e.type){case _.qb.FREE:return this.createFree(e);case _.qb.MULTIPLE_SELECT:case _.qb.SINGLE_SELECT:return this.createSelect(e)}}createFree(e){let{hasMoreAnswers:t,fetchMoreAnswers:i,isLoadingMoreAnswers:a,answers:s}=this.props,{rows:r}=s||{};if((0,D.I)(r))return null;let c=r.map(t=>({...t,body:t.content.find(t=>t.uuid===e.uuid)?.text,images:t.images?.find(t=>t.questionUuid===e.uuid)?.srcs,documents:t.documents?.find(t=>t.questionUuid===e.uuid)?.documents})).map(({content:e,...t})=>t);return(0,n.FD)("div",{className:"mb-5",children:[(0,n.Y)("div",{className:w.B_,children:e.query}),(0,n.Y)("section",{className:"my-3","data-cy":"challenge-question-answer",children:(0,n.Y)(Y,{rows:c,hasMoreAnswers:t,isLoadingMoreAnswers:a,onClickLoadMore:i})})]})}createSelect(e){let t=()=>!(0,D.I)(this.props.answers.rows),i=i=>{if(!t())return(0,n.Y)(T._,{percentage:0,isMostPopular:!1});let{summary:a}=this.props.answers||{},s=e.options.map(e=>e.uuid),r=b()(a?.filter(e=>s.includes(e.optionUuid)),"percentage")?.optionUuid,{percentage:c}=a?.find(e=>e.optionUuid===i)||{};return(0,n.Y)(T._,{percentage:c||0,isMostPopular:i===r})};return(0,n.FD)("div",{className:"mb-5",children:[(0,n.Y)("div",{className:w.B_,children:e.query}),(0,n.Y)("div",{className:"mt-2",children:e.options.map(e=>(0,n.FD)("section",{className:"mb-4",children:[(0,n.Y)(I.f,{isActive:!1,image:e.image,text:e.text}),i(e.uuid)]},`OPT${e.uuid}`))})]})}render(){let{questions:e}=this.props;return(0,n.FD)("div",{className:f().dynamic([["f8d59b11dd396392",[14]]])+" wrap mt-0 px-3",children:[(0,n.Y)("section",{className:f().dynamic([["f8d59b11dd396392",[14]]]),children:e.filter(e=>e.isViewable).map((e,t)=>(0,n.Y)(y.Fragment,{children:this.createQuestion(e,t)},`q${t}`))}),(0,n.Y)(f(),{id:"f8d59b11dd396392",dynamic:[14],children:".wrap.__jsx-style-dynamic-selector{font-size:14px}"})]})}}var L=i(12753),F=i(95880),M=i(76036),B=i(21097),S=i(20764),k=i(8819),q=i(57968),U=i(7172),j=i(55165),P=i(37240),O=i(12379),R=i(98611);let X=()=>{let{t:e}=(0,a.B)(["pages/view/challenge/question"]),t=(0,S.useRouter)(),i=(0,s.useSelector)(j.do),r=(0,O.hT)("challengeId",t.query),{challenge:d,answers:h,hasMoreAnswers:f,fetchMoreAnswers:y,isLoadingMoreAnswers:g,translationState:b,isLoading:_,toggleTranslationState:x}=(0,P.y6)(r);(0,U.hY)(c._D.Challenge);let N=()=>{if(_)return null;if(!d||!h)return(0,n.Y)(F.M,{statusCode:404});let a=d.categoryIndex===o.CategoryIndex.Accepting,s=()=>{switch(d.categoryIndex){case o.CategoryIndex.Completed:return e("Responded");case o.CategoryIndex.Ended:return e("Closed");default:return d.userCompletionCount>0?e("Respond Again"):e("Respond")}};return(0,n.FD)(u.E,{...d,showDetail:!0,translationState:b,onTranslationToggle:x,children:[(0,n.Y)("section",{className:"mx-auto mb-5",style:{width:140},children:a?(0,n.Y)(l.M,{style:{paddingRight:0,paddingLeft:0},color:i.backgroundColor,charColor:i.color,onClick:()=>t.push(`/view/challenge/${r}/question/option`),children:s()}):(0,n.Y)(l.M,{color:"#8c8c8c",disabled:!0,children:s()})}),(0,n.Y)(C,{questions:d.questions,answers:h,hasMoreAnswers:f,fetchMoreAnswers:y,isLoadingMoreAnswers:g})]})};return(0,n.FD)(p.w,{children:[(0,n.Y)(m.e,{keyPhrase:d?.title,description:d?.body,imageUrl:d?.eyecatchImage}),(0,n.Y)(B.default,{renderPc:()=>(0,n.Y)(n.FK,{children:(0,n.Y)(M.z,{content:(0,n.Y)("div",{className:"py-3",children:N()})})}),renderSp:()=>(0,n.Y)(L.D,{children:(0,n.Y)("section",{className:"px-3",children:N()})})})]})};X.getInitialProps=({ctx:e})=>{let{dispatch:t}=e.store,i=e.store.getState();if("string"!=typeof e.query.challengeId)throw Error("challengeId is not string");let n=+e.query.challengeId;n!==i.app.challenge.detail.data?.id&&t((0,r.A)(q.vB.SET)()),t(k.Jh.request({id:n,errCb:t=>{t&&t?.response?.status!==404&&(0,R.V2)(e,d.default.VIEW_SIGNIN)}}))};let $=X},49653:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/view/challenge/[challengeId]/question/result",function(){return i(37422)}])},51370:(e,t,i)=>{"use strict";
3var n=function(e){return e&&e.__esModule?e:{default:e}};t.SF=t.m6=t.In=t.qb=void 0,i(30140),n(i(98023)),n(i(92905)),t.qb={DEFAULT:0,FREE:1,MULTIPLE_SELECT:2,SINGLE_SELECT:3},t.In=e=>e.type===t.qb.FREE,t.m6=e=>e.type===t.qb.MULTIPLE_SELECT||e.type===t.qb.SINGLE_SELECT,t.SF=e=>e.type===t.qb.MULTIPLE_SELECT||e.type===t.qb.SINGLE_SELECT},68102:(e,t,i)=>{"use strict";i.d(t,{X:()=>E});var n=i(45023),a=i(2004),s=i.n(a),r=i(36439),c=i(41471),d=i(26139),o=i(30469),l=i(34533),m=i(74411),u=i(69275),p=i(35692),h=i(37721),f=i(8820),y=i(8089),g=i(28115),b=i(9688),_=i(25008),x=i.n(_),N=i(39282),v=i(83539),w=i(99135);class A extends r.Component{scrollToAnchor(){let{anchor:e}=this.props,t=(0,g.R)();if(e&&("string"==typeof e?[e]:e).indexOf(window.location.hash)>0){let e=window.location.pathname+window.location.hash;t.replaceRoute(e,{shallow:!0}),window.scrollTo(0,window.pageYOffset-60)}}componentDidMount(){this.scrollToAnchorTimer=setTimeout(()=>{this.scrollToAnchor()},500)}componentWillUnmount(){clearTimeout(this.scrollToAnchorTimer)}render(){let{children:e,iconPath:t,userId:i,name:a,isAdmin:r,viewedByAdmin:c,viewableType:p,accountName:f,body:g,lastEditedAt:b,createdAt:_,videos:A,images:E,documents:Y,isResigned:I,officialIcon:T,colors:D,user:C,bodyClassName:L}=this.props,F=D.userName,M=c&&p===v.g.Restricted,B=!!b;return p!==v.g.Restricted||c||C.id===i||(B=!1),(0,n.FD)(n.FK,{children:[M?(0,n.Y)("div",{className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" mt-2 mb-3 ml-2",children:(0,n.Y)(w.j,{})}):null,(0,n.Y)(m.H,{timeType:"absoluteAndRelative",src:t,userId:i,name:a,nameColor:F.color,isAdmin:r,officialIcon:T,tabActiveColor:D.tabActive.color,accountName:f,createdAt:_,isResigned:I}),(0,n.Y)("div",{className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" user-comment",children:(0,n.FD)("div",{"data-cy":"comment-content",className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" main-content",children:[(0,n.FD)("section",{style:{fontSize:14},className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" "+(x()("my-2")||""),children:[(0,n.Y)(l.n,{className:L,isAdminPost:!!r,children:g}),B&&(0,n.Y)(o.r,{})]}),(0,n.Y)("section",{className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" my-2",children:this.createURLPreviewOrYouTubePreview(g)}),(0,n.FD)("section",{className:s().dynamic([["a51b9575b8c7a4dd",[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH]]])+" my-2 videos-and-photos-wrapper",children:[(0,n.Y)(h.N,{videos:A,images:E,isDisabledLink:!0,enableImageGallery:!(0,d.S$)()&&-1!==location.pathname.indexOf("/view/post")}),(0,n.Y)(u.V,{documents:Y})]}),e]})}),(0,n.Y)(s(),{id:"a51b9575b8c7a4dd",dynamic:[N.aK[700],N.EA.sm,y.A.BOX_CONTENT_MAX_WIDTH],children:`.user-comment.__jsx-style-dynamic-selector{display:flex;position:relative;line-height:${N.aK[700]};margin-left:56px}.main-content.__jsx-style-dynamic-selector{flex:1;width:100%;overflow-wrap:break-word}@media(max-width:${N.EA.sm}){.user-comment.__jsx-style-dynamic-selector{margin-left:52px}}a.__jsx-style-dynamic-selector{color:#2b6eb2;font-weight:bold}.videos-and-photos-wrapper.__jsx-style-dynamic-selector{max-width:${y.A.BOX_CONTENT_MAX_WIDTH}px;margin:0 auto}`})]})}constructor(...e){super(...e),this.createURLPreviewOrYouTubePreview=e=>{let t=f.N.extractMovieIdAryFromString(e);return t.length>0?(0,n.Y)(f.N,{idAry:t}):(0,b.I)(this.props.images)&&(0,b.I)(this.props.videos)&&(0,b.I)(this.props.documents)?(0,n.Y)(p.Q,{body:e}):""}}}let E=(0,c.connect)(e=>({officialIcon:e.site.common.officialIcon.src,colors:e.site.common.colors,user:e.user}))(A)},79949:e=>{e.exports=function(e,t){return e>t}},89247:(e,t,i)=>{"use strict";i.d(t,{N:()=>c});var n=i(45023),a=i(2004),s=i.n(a),r=i(7528);function c(e){let{text:t,nowLoading:i,hasMore:a,onClick:c}=e;return a?i?(0,n.Y)("div",{className:"text-center",children:(0,n.Y)(r.hZ,{})}):(0,n.FD)("div",{onClick:c,className:"jsx-a9a91b2a3e4a0d84 load text-center",children:[t,(0,n.Y)(s(),{id:"a9a91b2a3e4a0d84",children:".load.jsx-a9a91b2a3e4a0d84{c
3olor:#2b6eb2;font-size:13px;cursor:pointer;margin:.6rem 0 1rem 0}"})]}):null}}},e=>{e.O(0,[51,7046,2494,2136,4819,6328,7912,5013,2822,4824,970,5879,2442,3909,7172,9004,5116,4411,2783,8119,636,6593,8792],()=>e(e.s=49653)),_N_E=e.O()}]);
4//# sourceMappingURL=result-c84f65e56dd0f9e9.js.map
5//# debugId=a39a2cce-4228-5fb8-8659-2fe4e7d29c8d

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.