PageSourceSearch

https://coenoma.com/_next/static/chunks/pages/[com_id]/[episode_id]-8ba96ebc0ebd8cbd.js

js coenoma.com collected 2026-10-02 05:17:04 UTC 18,516 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]="f2926ef1-345b-4f4c-98fc-02315341eddf",e._sentryDebugIdIdentifier="sentry-dbid-f2926ef1-345b-4f4c-98fc-02315341eddf")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1666],{39271:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[com_id]/[episode_id]",function(){return s(35479)}])},45363:function(e,t,s){"use strict";s.d(t,{x:function(){return l}});var n=s(85893);s(67294);var i=s(11163),a=s(95332);let r=["/login","/sso-callback"],l=e=>{let{fallbackPath:t,skipPaths:s=[],disableDefaultSkipPaths:l=!1,className:c="py-0.5 mb-2 rounded-md text-sm underline font-medium text-gray-500 hover:opacity-70 focus:outline-none focus:ring-2 focus:ring-offset-2"}=e,o=(0,i.useRouter)();return(0,n.jsx)("button",{onClick:()=>{let e=window.location.origin,n=document.referrer;a.Z.debug("BackButton - currentOrigin",e),a.Z.debug("BackButton - referrer",n);let i=o.asPath,c=i.split("/").filter(e=>e),d=c.length>0?"/"+c.slice(0,-1).join("/"):"/",u=t||d;a.Z.debug("BackButton - currentPath",i),a.Z.debug("BackButton - parentPath",d),a.Z.debug("BackButton - effectiveFallback",u);let m=window.history.length>1,x=n.startsWith(e),p=m&&x,f="";if(p&&window.history.state){let e=window.history.state;f=(null==e?void 0:e.url)||"",a.Z.debug("BackButton - prevUrl from history",f)}let h=l?s:[...r,...s],g=f&&h.some(e=>f===e||f.startsWith(e+"?")||f.startsWith(e+"/"));a.Z.debug("BackButton - effectiveSkipPaths",h),a.Z.debug("BackButton - isSkipPath",g),p&&!g?(a.Z.debug("BackButton - using browser back"),o.back()):(a.Z.debug("BackButton - using fallback path",u),o.push(u))},className:c,children:"もどる"})}},18981:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(85893);s(67294);var i=s(41664),a=s.n(i),r=s(53716);let l=e=>{let{playlist:t}=e;return(0,n.jsx)("div",{children:(0,n.jsx)(a(),{href:"/".concat(t.comId,"/playlists/").concat(t.slug),className:"block",children:(0,n.jsxs)("div",{className:"p-2 bg-white border shadow-md rounded-md flex justify-between items-center space-x-3 min-w-[300px] md:w-[440px] w-full max-w-full h-[100px] whitespace-pre-wrap",children:[(0,n.jsx)("div",{className:"w-[50px] h-[50px] rounded-full overflow-hidden",children:(0,n.jsx)("img",{src:t.displayIconUrl||"/images/default_icon.png",alt:t.displayName||"Playlist",className:"w-[50px] h-[50px]"})}),(0,n.jsxs)("div",{className:"flex-grow",children:[(0,n.jsx)("div",{className:"text-base font-semibold text-gray-800 flex items-center whitespace-pre-wrap h-[48px]",children:(0,n.jsx)("div",{className:"text-m line-clamp-2",children:t.displayName})}),(0,n.jsxs)("p",{className:"text-xs text-gray-500 mt-2",children:["エピソード数:",(0,r.u)(Number(t.episodeCount))]})]})]})})})}},49170:function(e,t,s){"use strict";s.d(t,{p:function(){return c}});var n=s(85893);s(67294);var i=s(9008),a=s.n(i),r=s(11163),l=s(76569);let c=e=>{let{pageTitle:t,pageDescription:s,pageImg:i,pageImgWidth:c,pageImgHeight:o}=e,d=(0,r.useRouter)(),{currentPlayingEpisode:u,community:m}=(0,l.s)(),x="限定公開のラジオ配信なら「コエノマ」",p=null==u?void 0:u.title,f=null==m?void 0:m.displayName,h=p?f?"".concat(p," | ").concat(f):p:t?"".concat(t," | ").concat(x):x,g=s||"コエノマは、チームやコミュニティ限定に共有ができる、いちばん簡単なラジオ配信ツールです。",y="".concat("https://coenoma.com").concat(d.asPath.split(/[?#]/)[0]),j=i||"".concat("https://coenoma.com").concat("/images/ogp.png");return(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:h}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1.0"}),(0,n.jsx)("meta",{name:"description",content:g}),(0,n.jsx)("meta",{property:"og:url",content:y}),(0,n.jsx)("meta",{property:"og:title",content:h}),(0,n.jsx)("meta",{property:"og:site_name",content:h}),(0,n.jsx)("meta",{property:"og:description",content:g}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:image",content:j}),(0,n.jsx)("meta",{property:"og:image:width",content:String(c||1200)}),(0,n.jsx)("meta",{property:"og:image:height",content:String(o||630)}),(0,n.jsx)("link",{rel:"canonical",href:y})]})}},41183:function(e,t,s){"use strict";s.d(t,{_:function(){return d}});var n=s(85893),i=s(67294),a=s(95664);let r=()=>"undefined"==typeof navigator?"":navigator.userAgent.toLowerCase(),l=()=>/iphone|ipad|ipod/.test(r()),c=()=>/android/.test(r()),o=()=>l()||c();function d(e){let{deepLink:t}=e,[s,r]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{o()&&r(!0)},[]),s)?(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 p-2 bg-white border-b border-gray-200 w-full",children:[(0,n.jsx)("img",{src:"/images/default_icon.png",alt:"アプリアイコン",className:"w-8 h-8 flex-shrink-0 rounded-lg border border-gray-200 p-0.5"}),(0,n.jsx)("span",{className:"text-gray-500 text-[12px] flex-1",children:"アプリ版で通知や連続再生"}),(0,n.jsx)("a",{href:t,target:"_self",className:"flex-shrink-0 px-3 py-1.5 rounded bg-primary-500 text-white hover:bg-primary-400 no-underline",onClick:()=>{let e=l()?a.k.ios:a.k.android,t=setTimeout(()=>window.location.href=e,1500);document.addEventListener("visibilitychange",()=>document.hidden&&clearTimeout(t),{once:!0})},children:"アプリで開く"}),(0,n.jsx)("button",{className:"flex-shrink-0 text-neutral-600 text-lg leading-none bg-transparent px-2","aria-label":"バナーを閉じる",onClick:()=>r(!1),children:"\xd7"})]}):null}},95664:function(e,t,s){"use strict";s.d(t,{k:function(){return n}});let n={ios:"https://apps.apple.com/jp/app/id".concat("6740161911"),android:"https://play.google.com/store/apps/details?id=".concat("com.coenoma.coenomaAppForListener")}},89298:function(e,t,s){"use strict";function n(e){return!!e&&"CLOSED"===e.accessType&&!0===e.isListenerAppEnabled}s.d(t,{I:function(){return n}})},63960:function(e,t,s){"use strict";var n=s(16310),i=s(79266);(0,n.i_)(i.MC)},35479:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return H},default:function(){return X}});var n=s(85893),i=s(67294),a=s(11163),r=s(9008),l=s.n(r),c=s(81657),o=s(95332),d=s(76569),u=s(64676),m=s(33221),x=s(52356),p=s(89782),f=s(41774),h=s(57797),g=s(49170),y=s(63915),j=s(99603),b=s(59417),w=s(76447),v=s(69108),N=s(7173),k=s(10975),_=s(32064),S=s(52214),C=s(52445),E=s(4375);let P=(e,t)=>{if(!e)return"0%";let s=(0,_.H2)().currentPlayingEpisode;return s&&e.id===s.id?t.current&&t.current.src?"".concat(t.current.currentTime/e.duration*100,"%"):"".concat((s.playbackPosition||e.playbackPosition)/e.duration*100,"%"):"".concat(e.playbackPosition/e.duration*100,"%")},I=(e,t,s)=>{if(t&&e.id===t.id){var n;return s.current&&s.current.src?s.current.currentTime:null!==(n=t.playbackPosition)&&void 0!==n?n:e.playbackPosition}return e.playbackPosition},Z=e=>{let{episode:t,fromPlaylist:s,isSuspended:r=!1}=e,{isPlaying:l,setIsPlaying:c,setEpisode:o,currentPlayingEpisode:u,setCurrentPlayingEpisode:x,episodes:p,audioRef:f}=(0,d.s)(),{userInfo:h}=(0,m.P)(),g=(0,a.useRouter)(),[Z,T]=(0,i.useState)(!1),[D,B]=(0,i.useState)(null),F=g.query.com_id;(0,i.useEffect)(()=>{h&&F&&(0,y.w)(h.id,F).then(e=>{T(e===v.K.ADMIN||e===v.K.SPEAKER)})},[h,F]),(0,i.useEffect)(()=>{let e=I(t,(0,_.H2)().currentPlayingEpisode,f);B((0,N.C)(t.duration,e,t.playbackFinished))},[l,t]),(0,i.useEffect)(()=>((0,E.PT)(t),()=>{(0,E.Zr)()}),[t.id]);let L=async()=>
1{if(t){let e=(0,_.H2)();if(s&&p&&e.isContinuousPlayback){let s=p.findIndex(e=>e.id===t.id),n=s>=0?p.slice(s+1):[];e.nextEpisodesList=n,(0,_.pC)(e)}let n={...t,duration:t.duration||0};x(n),(0,k.Dj)(n,l,c,u)}};return t?(0,n.jsx)("div",{className:"bg-white",children:(0,n.jsx)("div",{className:"container mx-auto pt-8 pb-8",children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,n.jsx)("div",{className:"flex items-start justify-center w-full md:w-1/4 md:mb-0 md:mr-8 mb-8",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("img",{src:t.displayThumbnailUrl||"/images/default_community_icon.png",alt:t.title,className:"max-w-[200px] w-full object-contain h-auto rounded-md"}),(0,n.jsx)("div",{className:"hidden md:flex items-center",children:(0,n.jsx)("button",{className:"button",onClick:L,children:l&&u&&t.id===u.id?(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsx)(j.G,{icon:b.XQY,className:"text-sm w-[18px] h-[18px] mr-2"}),(0,n.jsx)("span",{children:"一時停止する"})]}):(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsx)(j.G,{icon:b.zc,className:"text-sm w-[18px] h-[18px] mr-2"}),(0,n.jsx)("span",{children:"再生する"})]})})})]})}),(0,n.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-start",children:[(0,n.jsx)("h1",{className:"text-lg md:text-xl font-semibold text-gray-800 mr-2",children:t.title}),Z&&!r&&(0,n.jsx)("div",{className:"min-w-[40px]",children:(0,n.jsx)(w.x,{href:"/".concat(t.comId,"/manage-episodes/").concat(t.id,"/edit"),className:"w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center mr-2",children:(0,n.jsx)("div",{className:"w-10 h-10 flex items-center justify-center",children:(0,n.jsx)(j.G,{icon:b.Xcf,className:"w-5 h-5"})})})})]}),(0,n.jsx)("p",{className:"text-base md:text-lg text-gray-600",children:t.speakerNames}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"w-[100px] h-2 bg-gray-200 rounded-full overflow-hidden",children:(0,n.jsx)("div",{className:"h-4 bg-primary",style:{width:P(t,f)}})}),t&&D&&(0,n.jsx)("span",{className:"text-gray-400 text-sm min-w-[60px] mx-2 self-center",children:D})]}),(0,n.jsx)("div",{className:"flex items-center sm:hidden",children:(0,n.jsx)("button",{className:"text-white bg-primary rounded-full w-10 h-10 flex-shrink-0 flex items-center justify-center",onClick:L,children:l&&u&&t.id===u.id?(0,n.jsx)(j.G,{icon:b.XQY,className:"text-sm w-[18px] h-[18px]"}):(0,n.jsx)(j.G,{icon:b.zc,className:"text-sm w-[18px] h-[18px]"})})})]}),null!=t.listenCount&&(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(j.G,{icon:b.ItS,className:"text-gray-400 text-sm mr-1 h-4 w-4 mb-[1px]"}),(0,n.jsx)("span",{className:"text-gray-500 text-sm",children:(0,S.$)(t.listenCount)})]}),(0,n.jsx)("div",{className:"text-gray-600 leading-relaxed tracking-wide",dangerouslySetInnerHTML:{__html:(0,C.$)(t.description)}})]})]})})}):null};var T=s(34288),D=s(2538);let B=e=>{let{episode:t}=e;if(!t||!t.publishedAt)return null;let s=(0,D.m)(t.publishedAt);return(0,n.jsx)("div",{className:"bg-white",children:(0,n.jsx)("div",{className:"container mx-auto pt-8 pb-8",children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,n.jsx)("div",{className:"flex items-start justify-center w-full md:w-1/4 md:mb-0 md:mr-8 mb-8",children:(0,n.jsx)("div",{className:"space-y-4",children:(0,n.jsx)("img",{src:t.displayThumbnailUrl||"/images/default_community_icon.png",alt:t.title,className:"max-w-[200px] w-full object-contain h-auto rounded-md"})})}),(0,n.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,n.jsx)("h1",{className:"text-lg md:text-xl font-semibold text-gray-800",children:t.title}),(0,n.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-primary/10 text-primary text-sm font-medium",children:[(0,n.jsx)(j.G,{icon:T.SZw,className:"w-4 h-4"}),(0,n.jsxs)("span",{children:[s," 公開予定"]})]}),t.description&&(0,n.jsx)("div",{className:"text-sm md:text-base text-gray-700 whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:(0,C.$)(t.description)}}),(0,n.jsx)("div",{className:"mt-6 p-4 rounded-md bg-gray-50 border border-gray-200",children:(0,n.jsxs)("p",{className:"text-sm md:text-base text-gray-700",children:["このエピソードは",s,"に公開予定です。公開までお待ちください。"]})})]})]})})})};var F=s(9958),L=s(85352),A=s(45363),R=s(91108),U=s(18981),G=s(89298),M=s(41183),O=s(32736),$=s(86435),H=!0,X=e=>{let{seoEpisodeInfo:t,deepLink:s}=e,r=(0,a.useRouter)(),y=r.query.com_id,{signOut:j,authUser:b,setAuthUser:w,loading:v}=(0,u.a)(),{isUpdatedUserInfo:N,userInfo:k,setUserCommunities:_}=(0,m.P)(),S=r.query.episode_id,{episode:C,setEpisode:E,community:P,setCommunity:I,setErrorMessage:T,previousPath:D,isAccessModalOpen:H,checkedCommunityAuth:X,awaitingAuthenticationEpisodeId:q}=(0,d.s)(),[z,K]=(0,i.useState)(!1),[W,Y]=(0,i.useState)([]),[Q,J]=(0,i.useState)(!1),[V,ee]=(0,i.useState)(!1),et="".concat("https://coenoma.com","/api/user/embed?url=").concat("https://coenoma.com","/").concat(y,"/").concat(S);(0,i.useEffect)(()=>
1{if(D){let e="/".concat(y,"/playlists/");K((0,O.D)(D,e))}},[]);let{isFetchedData:es,setIsFetchedData:en,episodeData:ei}=(0,x.G)(S);(0,i.useEffect)(()=>{ei&&(o.Z.debug("episodeData",ei),E(ei),ee(!0))},[ei,E]),(0,i.useEffect)(()=>{let e=async()=>{try{let e=await (0,h.y)(S);E(e)}catch(e){console.error("Failed to fetch episode details:",e)}finally{ee(!0)}};!X||C||V||q||e()},[X,C,S,V,q]),(0,i.useEffect)(()=>{let e=async()=>{o.Z.debug("checkSessionAndRedirect start");let{data:e,error:t}=await c.O.auth.getSession();if(!(null==e?void 0:e.session)){o.Z.debug("sessionData is missing");let e="".concat(r.asPath);"/login"!==r.pathname&&(o.Z.debug("redirect to login"),r.push("/login?redirect_to=".concat(encodeURIComponent(e))))}},t=async()=>{try{if((0,$.w)(y)){let e=await (0,f.G)(y);I(e)}}catch(e){console.error("Failed to fetch community:",e)}};N&&!C&&(P?"CLOSED"===P.accessType&&(b?(o.Z.debug("authUser is not missing",b),k&&(o.Z.debug("userInfo is not missing",k),!k.userCommunityIds.includes(y))&&(o.Z.debug("userInfo.userCommunityIds does not include comId",k.userCommunityIds,y),T("認証が必要なエピソードURLです。"))):(o.Z.debug("authUser is missing"),T("認証が必要なエピソードURLです。"),e())):t())},[b,P,C,N,k]),(0,i.useEffect)(()=>{let e=async()=>{try{let e=await (0,p.C)(S,{column:"order_by",direction:"asc"},!0);o.Z.debug("playlistsData",e),Y(e.data)}catch(e){console.error("Failed to fetch playlists",e)}finally{J(!0)}};S&&e()},[S]);let ea=(0,n.jsx)(g.p,{pageTitle:(null==t?void 0:t.title)||(null==C?void 0:C.title),pageDescription:(null==t?void 0:t.description)||(null==C?void 0:C.description),pageImg:(null==t?void 0:t.displayThumbnailUrl)||(null==C?void 0:C.displayThumbnailUrl)||"/images/default_og_image.png"});if(!es)return(0,n.jsxs)(n.Fragment,{children:[ea,(0,n.jsx)(L.a,{})]});let er=C&&C.publicationType&&"PRIVATE"!==C.publicationType,el=!H&&(er||X);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R.M,{}),el?(0,n.jsxs)("div",{children:[ea,(0,n.jsx)(l(),{children:(0,n.jsx)("link",{rel:"alternate",type:"application/json+oembed",href:et})}),(0,n.jsxs)("div",{children:[C&&(0,G.I)(P)&&(0,n.jsx)(M._,{deepLink:s}),C&&(0,n.jsx)(F.default,{}),(0,n.jsxs)("div",{className:"main-content",children:[(0,n.jsx)(A.x,{}),C?C.isScheduled?(0,n.jsx)(B,{episode:C}):(0,n.jsx)(Z,{episode:C,fromPlaylist:z,isSuspended:null==P?void 0:P.isSuspended}):V?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"flex justify-center items-center mt-10",children:(0,n.jsx)("p",{className:"text-center sm:text-sm",children:"存在しないエピソードのURLです。"})})}):(0,n.jsx)("div",{className:"flex justify-center items-center mt-10",children:(0,n.jsx)(L.a,{type:"small"})}),(0,n.jsx)("div",{className:"my-6",children:Q?W&&W.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{className:"font-semibold mb-4",children:"このエピソードが含まれるプレイリスト"}),(0,n.jsx)("div",{className:"overflow-x-auto whitespace-nowrap",children:(0,n.jsx)("div",{className:"flex gap-6 mb-6",children:W.map(e=>(0,n.jsx)("div",{className:"w-full max-w-[400px]",children:(0,n.jsx)(U.Z,{playlist:e})},e.id))})})]}):(0,n.jsx)("div",{className:"flex justify-center items-center h-[124px]",children:(0,n.jsx)(L.a,{type:"small"})})})]})]})]}):(0,n.jsx)("div",{className:"flex justify-center items-center mt-10",children:(0,n.jsx)(L.a,{})})]})}},89782:function(e,t,s){"use strict";s.d(t,{C:function(){return n}});let n=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{column:"created_at",direction:"desc"},s=arguments.length>2?arguments[2]:void 0;try{let n=await fetch("/api/shared/get_episode_playlists",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({episodeId:e,orderBy:t,isActive:s}),credentials:"include"});if(!n.ok){let i=await n.json();throw console.error("Fetch playlists failed:",{statusCode:n.status,error:i.error||"Failed to fetch playlists",requestDetails:{episodeId:e,orderBy:t,isActive:s}}),Error(i.error||"Failed to fetch playlists")}let i=await n.json();return(null==i?void 0:i.logDetails)&&console.log("logDetails",null==i?void 0:i.logDetails),{data:i.data.data,totalCount:i.data.totalCount||0}}catch(e){throw console.error("Error retrieving playlists",e),e}}},52445:function(e,t,s){"use strict";s.d(t,{$:function(){return a}});var n=s(27856),i=s.n(n);let a=e=>{let t=e.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,'<a href="$1" target="_blank" rel="noopener noreferrer" class="text-primary" >$1</a>');return t=t.replace(/\n/g,"<br />"),i().sanitize(t,{ADD_ATTR:["target"]})}},2538:function(e,t,s){"use strict";function n(e){let t="string"==typeof e?new Date(e):e,s=t.getFullYear(),n=t.getMonth()+1,i=t.getDate(),a=String(t.getHours()).padStart(2,"0"),r=String(t.getMinutes()).padStart(2,"0");return"".concat(s,"年").concat(n,"月").concat(i,"日 ").concat(a,":").concat(r)}s.d(t,{m:function(){return n}})},52214:function(e,t,s){"use strict";s.d(t,{$:function(){return i}});var n=s(53716);let i=e=>{if(e<1e4)return"".concat((0,n.u)(e)," 回");{let t=e/1e4;return"".concat((0,n.u)(Math.floor(10*t)/10)," 万回")}}},53716:function(e,t,s){"use strict";function n(e){return"number"!=typeof e?"0":new Intl.NumberFormat().format(e)}s.d(t,{u:function(){return n}})},7173:function(e,t,s){"use strict";s.d(t,{C:function(){return i}});var n=s(56528);let i=(e,t,s)=>{let i=Math.ceil((e-t)/60),a=(0,n.L)(e);return s&&0==t||0==i?"既聴(".concat(a,")"):t>0?"残り".concat(i,"分"):a}}}
1,function(e){e.O(0,[4663,9100,1506,4288,5772,5650,3699,9958,2888,9774,179],function(){return e(e.s=39271)}),_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.