"use strict";(self.webpackChunkpsydb=self.webpackChunkpsydb||[]).push([[413],{4310:function(n,e,c){c.d(e,{W:function(){return t}});var i=c(7313),s=(c(5897),c(6417)),l=function(){return(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:"svg-inline icon-external-link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})})},a=c(4161),t=function(n){var e=n.movies,c=n.iconOnly;return void 0===e?null:(0,s.jsx)(i.Fragment,{children:e&&e.map((function(n,e){return c?void 0===n.link||null===n.link||""===n.link?null:(0,s.jsx)("span",{className:"headline-icon",children:(0,s.jsx)("a",{href:n.link,title:"".concat((0,a.__)("IMDB:")," ").concat(n.name),children:(0,s.jsx)(l,{})})},"sample-movie-".concat(e)):void 0===n.link||null===n.link||""===n.link?(0,s.jsx)("span",{children:n.name},"sample-movie-".concat(e)):(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("a",{href:n.link,title:"".concat((0,a.__)("IMDB:")," ").concat(n.name),children:n.name})," ",(0,s.jsx)("a",{href:n.link,title:"".concat((0,a.__)("IMDB:")," ").concat(n.name),children:(0,s.jsx)(l,{})})]}),(0,s.jsx)("br",{})]},"sample-movie-".concat(e))}))})}},7413:function(n,e,c){c.d(e,{d:function(){return m}});var i=c(1413),s=c(9439),l=c(7313),a=c(4277),t=c(4161),r=(c(5897),c(6417)),o=function(){return(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",className:"svg-inline icon-audio",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,r.jsx)("path",{fill:"currentColor",d:"M365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0L64-.0001c-35.35 0-64 28.65-64 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448zM171.5 259.5L136 296H92C85.38 296 80 301.4 80 308v56C80 370.7 85.38 376 92 376H136l35.5 36.5C179.1 420 192 414.8 192 404v-136C192 257.3 179.1 251.9 171.5 259.5zM235.1 260.7c-6.25 6.25-6.25 16.38 0 22.62C235.3 283.5 256 305.1 256 336c0 30.94-20.77 52.53-20.91 52.69c-6.25 6.25-6.25 16.38 0 22.62C238.2 414.4 242.3 416 246.4 416s8.188-1.562 11.31-4.688C258.1 410.1 288 380.5 288 336s-29.05-74.06-30.28-75.31C251.5 254.4 241.3 254.4 235.1 260.7z"})})},u=function(n){var e=n.audioFile,c=n.audioName,u=(0,l.useState)({isPlaying:!1}),d=(0,s.Z)(u,2),m=d[0],h=d[1],x=(0,l.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("audio",{src:(0,a.RO)(e),ref:x,onPlay:function(){return h((0,i.Z)((0,i.Z)({},m),{},{isPlaying:!0}))},onPause:function(){return h((0,i.Z)((0,i.Z)({},m),{},{isPlaying:!1}))},title:"".concat((0,t.__)("Sample from")," ").concat(c),preload:"none"}),(0,r.jsx)("a",{href:(0,a.RO)(e),onClick:function(n){return n.preventDefault(),null===x||null===x.current||(m.isPlaying?x.current.pause():x.current.play()),!1},title:"".concat((0,t.__)("Listen to sample from")," ").concat(c),children:(0,r.jsx)(o,{})})]})},d=c(4310),m=function(n){var e=n.sample;return(0,r.jsxs)("div",{className:"sample-item",children:[(0,r.jsx)("section",{id:"s".concat(e.id),className:"anchor"}),(0,r.jsxs)("h2",{children:["".concat(e.artist," - ").concat(e.track),""!==e.file&&void 0!==e.file&&(0,r.jsx)(u,{audioFile:e.file,audioName:"".concat(e.artist," - ").concat(e.track)})]}),(0,r.jsx)("p",{className:"text",children:e.text}),""!==e.source&&(0,r.jsx)("p",{children:(0,r.jsx)("i",{children:e.source})}),e.movies&&(0,r.jsx)("p",{children:(0,r.jsx)(d.W,{movies:e.movies})})]})}}}]);