PageSourceSearch

https://coenoma.com/_next/static/chunks/pages/[com_id]/admin/analytics/episode-analytics-b5faf23717a901e2.js

js coenoma.com collected 2026-10-02 05:16:00 UTC 23,723 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]="eca1acf1-868a-45e2-ab8d-33ba1bd36656",e._sentryDebugIdIdentifier="sentry-dbid-eca1acf1-868a-45e2-ab8d-33ba1bd36656")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3244],{95507:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[com_id]/admin/analytics/episode-analytics",function(){return n(87638)}])},40198:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var s=n(85893),a=n(67294),l=n(41664),i=n.n(l),r=n(99603),c=n(59417),o=n(11163);let d=e=>{let{menuItems:t}=e,[n,l]=(0,a.useState)(()=>"false"!==localStorage.getItem("adminSideMenuIsOpen")),d=(0,o.useRouter)();return(0,s.jsxs)("div",{className:"flex flex-col ".concat(n?"w-64":"w-[38px]"," bg-white border-r border-gray-100 transition-all duration-300 py-4 px-2"),children:[(0,s.jsx)("div",{className:"flex items-center justify-end",children:(0,s.jsx)("button",{onClick:()=>{l(e=>(localStorage.setItem("adminSideMenuIsOpen",String(!e)),!e))},className:"focus:outline-none w-[20px] h-[20px]",children:(0,s.jsx)(r.G,{icon:n?c.UXu:c.cLY,className:"text-primary w-[20px] h-[20px]"})})}),(0,s.jsx)("nav",{className:"flex flex-col overflow-y-auto px-3",children:t.map((e,t)=>(0,s.jsxs)(a.Fragment,{children:[n&&e.sectionLabel&&(0,s.jsx)("p",{className:"mt-6 mb-2 pt-4 px-2 border-t border-gray-100 text-xs text-gray-500",children:e.sectionLabel}),(0,s.jsxs)(i(),{href:e.link,passHref:!0,className:"flex items-center py-3 px-2 text-gray-700 hover:bg-gray-100 rounded-lg transition-colors duration-200 text-[14px] ".concat(d.asPath.split("#")[0]===e.link?"font-bold text-primary":""),target:e.link.startsWith("http")?"_blank":"_self",children:[(0,s.jsx)("span",{className:"".concat(n?"transition-opacity duration-300 opacity-100 delay-100":"opacity-0"),children:e.name}),e.link.startsWith("http")&&(0,s.jsx)(r.G,{icon:c.Xjp,className:"ml-auto text-primary ".concat(n?"opacity-100 delay-300":"opacity-0")})]})]},t))})]})}},54256:function(e,t,n){"use strict";var s=n(85893);n(67294);var a=n(85352);t.Z=e=>{let{title:t,value:n,unit:l,isLoading:i,isError:r,note:c}=e;return(0,s.jsxs)("div",{className:"border border-gray-100 rounded-md p-4 relative",style:{height:"110px"},children:[i&&(0,s.jsx)("div",{className:"absolute inset-0 flex justify-center items-center",children:(0,s.jsx)(a.a,{type:"small"})}),!i&&r&&(0,s.jsxs)("div",{className:"absolute inset-0 flex justify-center items-center text-sm",children:["データ取得に",(0,s.jsx)("br",{}),"失敗しました"]}),!i&&!r&&void 0!==n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h3",{className:"text-[13px] mb-1",children:t}),(0,s.jsxs)("div",{className:"flex items-baseline",children:[(0,s.jsx)("span",{className:"text-4xl font-bold tabular-nums",children:"number"==typeof n?n.toLocaleString():n}),(0,s.jsx)("span",{className:"text-sm ml-1",children:l})]}),(0,s.jsx)("div",{className:"absolute bottom-2 left-4 right-4 text-[10px] text-gray-500 mt-2 overflow-hidden text-ellipsis min-h-[14px]",children:c&&"※ ".concat(c)})]}),!i&&!r&&void 0===n&&(0,s.jsxs)("div",{className:"absolute inset-0 flex justify-center items-center text-sm",children:["データが",(0,s.jsx)("br",{}),"ありませんでした"]})]})}},48698:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var s=n(85893);n(67294);var a=n(54256);let l=e=>{let{data:t}=e;return(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 items-end mb-6",children:t.map((e,t)=>(0,s.jsx)(a.Z,{title:e.title,value:e.value,unit:e.unit,isLoading:e.isLoading,isError:e.isError,note:e.note},t))})};t.Z=l},88675:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var s=n(85893),a=n(67294),l=n(99603),i=n(59417);let r=e=>{let{isOpen:t,handleToggle:n,children:r,text:c="オプション",width:o="150px"}=e,d=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&n()};return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,n]),(0,s.jsxs)("div",{className:"relative",ref:d,children:[(0,s.jsxs)("button",{onClick:n,className:"flex items-center text-primary text-xs px-2 h-full cursor-pointer",children:[(0,s.jsx)("span",{className:"mr-2",children:c}),(0,s.jsx)("div",{className:"w-4 h-4 mb-[2px]",children:(0,s.jsx)(l.G,{icon:t?i.l1h:i.eW2,className:"w-4 h-4"})})]}),t&&(0,s.jsx)("div",{className:"absolute right-0 mt-2 py-2 bg-white rounded-md shadow-xl z-50",style:{width:o||"150px"},children:r})]})}},40301:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var s=n(85893);n(67294);var a=n(99603),l=n(59417);let i=e=>{let{options:t,selectedValue:n,handleSelect:i}=e;return(0,s.jsx)(s.Fragment,{children:t.map(e=>(0,s.jsxs)("div",{onClick:()=>i(e.value),className:"cursor-pointer px-4 py-2 hover:bg-gray-100 flex justify-between",children:[e.label,n===e.value&&(0,s.jsx)("div",{className:"mt-[1px] h-5 w-5 flex items-center",children:(0,s.jsx)(a.G,{icon:l.LEp,className:"text-primary h-4 w-4"})})]},e.value))})}},62785:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});var s=n(85893),a=n(67294),l=n(99603),i=n(59417);let r=e=>{let{id:t,inputRef:n,onChange:r,onKeyUp:c,onFocus:o,onClear:d,placeholder:u="Search...",disableAutocomplete:h=!1}=e,[m,p]=(0,a.useState)(!1),[x,g]=(0,a.useState)("");return(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)("input",{id:t,...n,value:x,className:"w-full border border-gray-300 px-3 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 pl-10 z-1",placeholder:u,onCh
1ange:e=>{g(e.target.value),null==r||r(e)},onKeyUp:c,onFocus:e=>{p(!0),null==o||o()},onBlur:()=>p(!1),autoComplete:h?"off":void 0}),(0,s.jsx)("span",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 w-4 h-4 flex items-center justify-center",children:(0,s.jsx)(l.G,{icon:i.wn1,className:"w-4 h-4"})}),x&&(0,s.jsx)("span",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 cursor-pointer z-10",children:(0,s.jsx)("button",{onClick:e=>{e.stopPropagation(),g(""),null==r||r({target:{value:""}}),null==d||d()},className:"p-2 flex items-center justify-center",children:(0,s.jsx)(l.G,{icon:i.NBC,className:"w-4 h-4"})})})]})}},49170:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var s=n(85893);n(67294);var a=n(9008),l=n.n(a),i=n(11163),r=n(76569);let c=e=>{let{pageTitle:t,pageDescription:n,pageImg:a,pageImgWidth:c,pageImgHeight:o}=e,d=(0,i.useRouter)(),{currentPlayingEpisode:u,community:h}=(0,r.s)(),m="限定公開のラジオ配信なら「コエノマ」",p=null==u?void 0:u.title,x=null==h?void 0:h.displayName,g=p?x?"".concat(p," | ").concat(x):p:t?"".concat(t," | ").concat(m):m,f=n||"コエノマは、チームやコミュニティ限定に共有ができる、いちばん簡単なラジオ配信ツールです。",y="".concat("https://coenoma.com").concat(d.asPath.split(/[?#]/)[0]),b=a||"".concat("https://coenoma.com").concat("/images/ogp.png");return(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:g}),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1.0"}),(0,s.jsx)("meta",{name:"description",content:f}),(0,s.jsx)("meta",{property:"og:url",content:y}),(0,s.jsx)("meta",{property:"og:title",content:g}),(0,s.jsx)("meta",{property:"og:site_name",content:g}),(0,s.jsx)("meta",{property:"og:description",content:f}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:image",content:b}),(0,s.jsx)("meta",{property:"og:image:width",content:String(c||1200)}),(0,s.jsx)("meta",{property:"og:image:height",content:String(o||630)}),(0,s.jsx)("link",{rel:"canonical",href:y})]})}},37015:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var s=n(85893);n(67294);let a=e=>{let{data:t,columns:n,headerHeight:a,cellHeight:l,onRowClick:i}=e;return(0,s.jsx)("div",{className:"w-full overflow-x-auto",children:(0,s.jsxs)("table",{className:"min-w-full border-collapse table-auto text-gray-500",children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{className:"border-b border-gray-300 text-xs",children:n.map(e=>(0,s.jsx)("th",{className:"p-2 ".concat("center"===e.headerAlign?"text-center":"right"===e.headerAlign?"text-right":"text-left"," ").concat(e.className||""),style:{height:a||"auto"},children:e.label},String(e.key)))})}),(0,s.jsx)("tbody",{className:"text-[14px]",children:t.map((e,t)=>(0,s.jsx)("tr",{className:"border-b border-gray-300 hover:bg-gray-50 cursor-pointer",onClick:()=>i&&i(e),children:n.map(t=>(0,s.jsx)("td",{className:"p-2 ".concat("center"===t.cellAlign?"text-center":"right"===t.cellAlign?"text-right":"text-left"," ").concat(t.className||""),style:{height:l||"auto"},children:t.render?t.render(e[t.key],e):e[t.key]},String(t.key)))},t))})]})})}},75621:function(e,t,n){"use strict";n.d(t,{G:function(){return m}});var s=n(67294),a=n(11163),l=n(91088);let i=e=>{let{loading:t,isRefreshingToken:n,isUpdatedUserInfo:s,comId:a,hasUserInfo:l,isAuthUserNull:i,isRoleResolved:r,isAdmin:c,hasRoleError:o}=e;return t||n||!s||!a?"wait":l?o?i?"redirect-login":"redirect-community":r?c?"allow":"redirect-community":"wait":i?"redirect-login":"wait"};var r=n(10999),c=n(33221),o=n(76569),d=n(64676),u=n(12011),h=n(84657);let m=()=>{let e=(0,a.useRouter)(),{userInfo:t,isUpdatedUserInfo:n}=(0,c.P)(),{setErrorMessage:m}=(0,o.s)(),{authUser:p,loading:x,isRefreshingToken:g}=(0,d.a)(),{isAdmin:f,isRoleResolved:y,hasRoleError:b}=(0,l.Q)(),v=e.query.com_id,j=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(j.current===v)return;let s=i({loading:x,isRefreshingToken:g,isUpdatedUserInfo:n,comId:v,hasUserInfo:!!(null==t?void 0:t.id),isAuthUserNull:null===p,isRoleResolved:y,isAdmin:f,hasRoleError:b});if("wait"===s||"allow"===s)return;if(j.current=v,"redirect-login"===s){e.replace("/login");return}let a=null==t?void 0:t.id;a&&v&&(0,r.Qg)(a,v),m((0,u.x)(h.V.ADMIN_AUTH)),e.replace("/".concat(v))},[t,v,p,x,g,n,f,y,b,m,e]),{userInfo:t,isUserAdmin:f}}},12915:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var s=n(67294),a=n(11163),l=n(64676),i=n(33221),r=n(95332);let c=()=>{let e=(0,a.useRouter)(),{authUser:t,loading:n,isRefreshingToken:c}=(0,l.a)(),{isUpdatedUserInfo:o}=(0,i.P)();return(0,s.useEffect)(()=>
1{if(o&&!t&&!n&&!c){let s=encodeURIComponent(e.asPath);"/login"!==e.pathname?(r.Z.debug("認証なしでのアクセスを検出、ログインページへリダイレクト",{isUpdatedUserInfo:o,authUser:!!t,loading:n,isRefreshingToken:c,currentPath:e.pathname}),e.push("/login?redirect_to=".concat(s))):r.Z.debug("Already on login page, no redirect needed")}},[t,o,n,c]),{authUser:t,loading:n}}},87638:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var s=n(85893),a=n(67294),l=n(11163),i=n(76569),r=n(33221),c=n(12915),o=n(75621);let d=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{column:"published_at",direction:"desc"},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"episodes",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{let a=await fetch("/api/admin/get_episodes_analytics",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({communityId:e,searchKeyword:s,orderBy:t,orderTable:n}),credentials:"include"});if(!a.ok){let n=await a.json();throw console.error("Fetch episodes failed:",{statusCode:a.status,error:n.error||"Failed to fetch episodes",requestDetails:{communityId:e,orderBy:t,searchKeyword:s}}),Error(n.error||"Failed to fetch episodes")}let l=await a.json();return(null==l?void 0:l.logDetails)&&console.log("logDetails",null==l?void 0:l.logDetails),{episodesData:l.episodesData,totalCount:l.totalCount}}catch(e){throw console.error("Error retrieving episodes",e),e}};var u=n(49170),h=n(85352),m=n(48698),p=n(62785),x=n(88675),g=n(40301),f=n(37015),y=n(56528),b=n(80918);let v=e=>{let{value:t,max:n}=e;return(0,s.jsxs)("div",{className:"min-w-[120px]",children:[(0,s.jsx)("div",{className:"text-right font-bold text-gray-700",children:t.toLocaleString()}),(0,s.jsx)("div",{className:"h-1.5 bg-gray-100 rounded-sm overflow-hidden mt-1",children:(0,s.jsx)("div",{className:"h-full bg-primary rounded-sm",style:{width:n>0?"".concat(t/n*100,"%"):0}})})]})},j=e=>{let{episodes:t,showPodcastDownloads:n,onRowClick:a}=e,l=t.reduce((e,t)=>Math.max(e,t.listeners1Min),0),i=[{key:"title",label:"タイトル",className:"min-w-[280px] max-w-[420px]"},{key:"publishedAt",label:"公開日",headerAlign:"center",cellAlign:"center",className:"w-28 whitespace-nowrap",render:e=>e?(0,b.o)(e,!1):"—"},{key:"durationSec",label:"長さ",headerAlign:"center",cellAlign:"center",className:"whitespace-nowrap",render:e=>(0,y.L)(e)},{key:"listeners1Min",label:"聴いた人(1分以上)",headerAlign:"center",render:e=>(0,s.jsx)(v,{value:e,max:l})},{key:"finishRate",label:"完聴率",headerAlign:"center",cellAlign:"center",render:(e,t)=>null===e?(0,s.jsx)("span",{className:"text-gray-400",children:"—"}):(0,s.jsxs)("div",{className:"min-w-[110px]",children:[(0,s.jsxs)("div",{className:"whitespace-nowrap text-right",children:[(0,s.jsxs)("span",{className:"font-bold text-gray-700",children:[e,"%"]}),(0,s.jsxs)("span",{className:"text-xs text-gray-400 ml-1",children:["(",t.finishedListeners.toLocaleString(),"名)"]})]}),(0,s.jsx)("div",{className:"h-1.5 bg-gray-100 rounded-sm overflow-hidden mt-1",children:(0,s.jsx)("div",{className:"h-full bg-gray-300 rounded-sm",style:{width:"".concat(e,"%")}})})]})},{key:"averageRetentionRate",label:"視聴維持率",headerAlign:"center",cellAlign:"center",render:e=>"".concat(e,"%")}];return n&&i.push({key:"podcastDownloads",label:"Podcast DL",headerAlign:"center",cellAlign:"center",render:e=>e.toLocaleString()}),(0,s.jsx)(f.x,{data:t,columns:i,headerHeight:"60px",cellHeight:"60px",onRowClick:e=>a(e.id)})};var w=n(91108),N=n(40198),S=n(12011),k=n(31168),_=n(7505);let A=e=>{let t=Number(e);return Number.isFinite(t)?t:0},L=e=>e.map(e=>{var t,n;let s=A(e.listeners1Min),a=A(e.finishedListeners);return{id:e.id,title:null!==(t=e.title)&&void 0!==t?t:"",publishedAt:null!==(n=e.publishedAt)&&void 0!==n?n:null,durationSec:A(e.duration),listeners1Min:s,listeners50Percent:A(e.listeners50Percent),listeners80Percent:A(e.listeners80Percent),finishedListeners:a,averageRetentionRate:A(e.averageRetentionRate),podcastDownloads:A(e.podcastDownloads),finishRate:s>0?Math.min(100,Math.round(a/s*100)):null}}
1),R=[{value:"published_desc",label:"公開日が新しい順"},{value:"published_asc",label:"公開日が古い順"},{value:"listeners_desc",label:"聴いた人が多い順"},{value:"finish_rate_desc",label:"完聴率が高い順"}],C=(e,t,n)=>null===e.publishedAt&&null===t.publishedAt?0:null===e.publishedAt?1:null===t.publishedAt?-1:n*(new Date(e.publishedAt).getTime()-new Date(t.publishedAt).getTime()),D=(e,t)=>{let n=[...e];switch(t){case"published_asc":n.sort((e,t)=>C(e,t,1));break;case"listeners_desc":n.sort((e,t)=>t.listeners1Min-e.listeners1Min);break;case"finish_rate_desc":n.sort((e,t)=>{var n,s;return(null!==(n=t.finishRate)&&void 0!==n?n:-1)-(null!==(s=e.finishRate)&&void 0!==s?s:-1)});break;default:n.sort((e,t)=>C(e,t,-1))}return n},P=(e,t)=>{let n=t.trim().toLowerCase();return n?e.filter(e=>e.title.toLowerCase().includes(n)):e},E=e=>{let t=D(e,"published_desc").slice(0,10),n=t.reduce((e,t)=>e+t.listeners1Min,0),s=t.reduce((e,t)=>e+t.finishedListeners,0);return{episodeCount:e.length,recentAvgListeners:t.length>0?Math.round(n/t.length):null,recentFinishRate:n>0?Math.min(100,Math.round(s/n*100)):null,recentWindowSize:t.length}};var M=n(84657);let I=[{key:"id",label:"エピソードID"},{key:"title",label:"エピソードタイトル"},{key:"publishedAt",label:"公開日"},{key:"duration",label:"エピソードの長さ(秒)"},{key:"listeners1Min",label:"リスナー数(1分)"},{key:"listeners50Percent",label:"リスナー数(50%)"},{key:"listeners80Percent",label:"リスナー数(80%)"},{key:"finishedListeners",label:"リスナー数(完聴)"},{key:"finishRate",label:"完聴率(%)"},{key:"averageRetentionRate",label:"視聴維持率(%)"},{key:"podcastDownloads",label:"Podcastダウンロード数"}];var O=()=>{var e,t,n,f;let[y,b]=(0,a.useState)(!1),v=(0,l.useRouter)(),A=v.query.com_id,{loading:C}=(0,c.Q)(),{isUserAdmin:O}=(0,o.G)(),{isUpdatedUserInfo:F}=(0,r.P)(),[U,T]=(0,a.useState)([]),[G,Z]=(0,a.useState)(!1),[z,B]=(0,a.useState)(!1),{setErrorMessage:V,community:W,checkedCommunityAuth:Y}=(0,i.s)(),[H,K]=(0,a.useState)("published_desc"),[Q,X]=(0,a.useState)(""),[q,J]=(0,a.useState)(!1);(0,a.useEffect)(()=>{A&&F&&(async()=>{try{let{episodesData:e}=await d(A);T(L(null!=e?e:[])),b(!0)}catch(e){Z(!0),b(!0),V((0,S.x)(M.V.EPISODES_PLAYBACK_DATA,e))}})()},[A,F]);let $=(0,a.useMemo)(()=>D(P(U,Q),H),[U,Q,H]),ee=(0,a.useMemo)(()=>E(U),[U]),et=!!(null==W?void 0:W.isPrivatePodcastEnabled),en=[{title:"配信エピソード",value:ee.episodeCount,unit:"本",isLoading:!y,isError:G},{title:"聴いた人(1回平均)",value:null!==(t=ee.recentAvgListeners)&&void 0!==t?t:0,unit:"名",isLoading:!y,isError:G,note:"直近".concat(ee.recentWindowSize,"回")},{title:"完聴率",value:null!==(n=ee.recentFinishRate)&&void 0!==n?n:0,unit:"%",isLoading:!y,isError:G,note:"直近".concat(ee.recentWindowSize,"回・聴いた人のうち最後まで聴いた割合")}],es=async()=>{try{B(!0);let e=D(U,"published_desc").map(e=>{var t;return{id:e.id,title:e.title,publishedAt:e.publishedAt?new Date(e.publishedAt).toISOString():"",duration:e.durationSec,listeners1Min:e.listeners1Min,listeners50Percent:e.listeners50Percent,listeners80Percent:e.listeners80Percent,finishedListeners:e.finishedListeners,finishRate:null!==(t=e.finishRate)&&void 0!==t?t:"",averageRetentionRate:e.averageRetentionRate,...et?{podcastDownloads:e.podcastDownloads}:{}}});await (0,_.D)(e,"episodes_analytics_".concat(null==W?void 0:W.displayName),I)}catch(e){V((0,S.x)(M.V.EPISODES_PLAYBACK_DATA,e))}finally{B(!1)}},ea=null!==(f=null===(e=R.find(e=>e.value===H))||void 0===e?void 0:e.label)&&void 0!==f?f:"並び替え",el=(0,k.a)(A,W);return!C&&O&&F&&Y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.p,{pageTitle:"エピソード分析"}),(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)(N.E,{menuItems:el}),(0,s.jsxs)("div",{className:"container main-content",children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"エピソード分析"}),(0,s.jsxs)("div",{className:"space-y-4",children:[(!y||!G&&U.length>0)&&(0,s.jsx)(m.j,{data:en}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsx)("div",{className:"flex-grow min-w-[240px]",children:(0,s.jsx)(p.M,{id:"episodeAnalyticsSearch",placeholder:"タイトルで検索...",onChange:e=>X(e.target.value),onKeyUp:()=>{},onClear:()=>X("")})}),(0,s.jsx)("div",{className:"relative",children:(0,s.jsx)(x.r,{isOpen:q,handleToggle:()=>J(!q),text:ea,width:"200px",children:(0,s.jsx)(g.Y,{options:R.map(e=>{let{value:t,label:n}=e;return{value:t,label:n}}),selectedValue:H,handleSelect:e=>{K(e),J(!1)}})})}),(0,s.jsx)("div",{className:"w-[190px]",children:(0,s.jsx)("button",{onClick:es,className:"button",disabled:!y||0===U.length,children:"CSVダウンロード"})})]}),y?G?(0,s.jsxs)("div",{className:"mt-24 text-center text-gray-500",children:[(0,s.jsx)("p",{children:"データの取得に失敗しました。"}),(0,s.jsx)("p",{className:"text-sm mt-2",children:"時間をおいてページを再読み込みしてください。"})]}):0===U.length?(0,s.jsxs)("div",{className:"mt-24 text-center text-gray-500",children:[(0,s.jsx)("p",{children:"公開済みのエピソードがまだありません。"}),(0,s.jsx)("p",{className:"text-sm mt-2",children:"エピソードを公開すると、ここに聴かれ方が表示されます。"})]}):0===$.length?(0,s.jsx)("div",{className:"mt-24 text-center text-gray-500",children:(0,s.jsxs)("p",{children:["「",Q,"」に一致するエピソードがありません。"]})}):(0,s.jsx)(j,{episodes:$,showPodcastDownloads:et,onRowClick:e=>v.push("/".concat(A,"/admin/episodes/").concat(e))}):(0,s.jsx)("div",{className:"flex justify-center items-center h-96",children:(0,s.jsx)(h.a,{type:"small"})})]})]})]}),z&&(0,s.jsx)(h.a,{type:"overlay"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.a,{}),(0,s.jsx)(w.M,{})]})}},31168:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});let s=(e,t)=>[{name:"概要",link:"/".concat(e,"/admin/analytics")},{name:"エピソード分析",link:"/".concat(e,"/admin/analytics/episode-analytics")},{name:"ユーザー分析",link:"/".concat(e,"/admin/analytics/user-analytics")},...(null==t?void 0:t.canGroup)?[{name:"グループ効果",link:"/".concat(e,"/admin/analytics/group-effect")}]:[],{name:"データエクスポート",link:"/".concat(e,"/admin/analytics/exports")}]},42235:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});let s=async function(e,t){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text/plain;charset=utf-8;";if("string"==typeof e)n=e;else{let t=new Blob([e],{type:s});n=URL.createObjectURL(t)}let a=document.createElement("a");a.href=n,a.download=t,a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a),"string"!=typeof e&&URL.revokeObjectURL(n)}},80918:function(e,t,n){"use strict";function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];"string"==typeof e&&(e=new Date(e));let n=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),l=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0");return t?"".concat(n,"-").concat(s,"-").concat(a," ").concat(l,":").concat(i):"".concat(n,"-").concat(s,"-").concat(a)}n.d(t,{o:function(){return s}})},7505:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var s=n(42235),a=n(95332);let l=async(e,t,l)=>{if(a.Z.debug("makeAndDownloadCsv start, data",e),!e||0===e.length){console.error("No data provided for CSV download.");return}let r=l.filter(t=>e.some(e=>e.hasOwnProperty(t.key))),c=r.map(e=>e.label),o=Math.ceil(e.length/1e4),d=0,u=o>1?new(await n.e(5733).then(n.t.bind(n,55733,23))).default:null,h=new Date().toISOString().replace(/[-T:.Z]/g,"").slice(0,14);for(;1e4*d<e.length;){let n=e.slice(1e4*d,(d+1)*1e4),l=[c.join(",")];
1n.forEach(e=>{let t=r.map(t=>{let n=e[t.key];return null==n?n="":"object"==typeof n?n='"'.concat(JSON.stringify(n).replace(/"/g,'""'),'"'):"string"==typeof n&&(n.includes('"')||n.includes(",")||n.includes("\n"))?n='"'.concat(n.replace(/"/g,'""'),'"'):"boolean"==typeof n&&(n=n.toString()),n});l.push(t.join(","))});let m=l.join("\n"),p=await i(m),x=o>1?"".concat(t,"_").concat(h,"_part").concat(d+1,".csv"):"".concat(t,"_").concat(h,".csv");if(a.Z.debug("csvContent part ".concat(d+1),m),o>1)u.file(x,p);else{await (0,s.S)(p,x);return}d++}if(o>1){let e=await u.generateAsync({type:"blob"}),n="".concat(t,"_").concat(h,".zip");await (0,s.S)(e,n)}};async function i(e){let t=window.navigator.userAgent.toLowerCase();if(a.Z.debug("userAgent",t),!t.includes("windows"))return new Blob([e],{type:"text/csv;charset=utf-8;"});{let{TextEncoder:t}=await Promise.all([n.e(6189),n.e(8731)]).then(n.t.bind(n,48731,23)),s=new t("shift-jis").encode(e);return new Blob([s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)],{type:"text/csv;charset=shift-jis;"})}}},9008:function(e,t,n){e.exports=n(23867)}},function(e){e.O(0,[5650,2888,9774,179],function(){return e(e.s=95507)}),_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.