PageSourceSearch

https://audioboom.com/assets/packs/js/8320-d0de14bc4359e3920758.chunk.js

js audioboom.com collected 2026-10-01 07:43:03 UTC 17,829 bytes, 4 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="363257e1-f553-4368-a080-bc504eb234a6",e._sentryDebugIdIdentifier="sentry-dbid-363257e1-f553-4368-a080-bc504eb234a6")}catch(e){}}();"use strict";(self.webpackChunkaudioboom_web=self.webpackChunkaudioboom_web||[]).push([[322,8320,8754],{38754:function(e,t,n){var r=n(74848);n(96540);var l=n(77688),o=n(55329),a=n(46942),i=n.n(a),s=n(79656);let u=e=>{let t="html"in e?{dangerouslySetInnerHTML:{__html:e.html}}:"text"in e?{children:e.text}:{children:e.children};return(0,r.jsx)("div",{...t,style:{maxWidth:400},role:"tooltip"})},c=e=>{let[t,n,a,c]=(0,o.A)();return(0,r.jsxs)("div",{className:"d-inline-flex",children:[(0,r.jsx)("button",{type:"button","aria-label":"Help",className:i()("within-para-button button-emphasise-focus",e.extraClasses),ref:n,onClick:e=>{e.preventDefault(),c(!0)},children:(0,r.jsx)(l.A,{icon:s.APe})}),t((0,r.jsx)(u,{...e}))]})};t.default=c,n.d(t,["l",0,c])},55329:function(e,t,n){var r=n(74848),l=n(34743),o=n(17663),a=n(96540),i=n(20311),s=n.n(i),u=n(35726);t.A=({startOpen:e=!1,placement:t="bottom",fixedPlacement:n=!1,ignoreLayoutShift:i=!1}={})=>{var f,p,h,x,g,v;let b,[y,j]=(0,a.useState)(e),[_,N]=(0,a.useState)(null),{refs:w,floatingStyles:k,middlewareData:C,placement:A,isPositioned:S}=(0,l.we)((f=t,p=_,h=n,x=i,{..."center"===f?{placement:"top",middleware:[d]}:{placement:f,middleware:[(0,l.cY)(8),h?null:(0,l.UU)({fallbackAxisSideDirection:"start",crossAxis:!1}),(0,l.BN)(),(0,l.UE)({element:p})]},whileElementsMounted:x?m:o.ll})),D=C.arrow,T=(0,a.useCallback)(()=>j(!1),[]);return g=[w.reference.current,w.floating.current],v=T,b=(0,a.useCallback)(e=>{let t=e.target;t instanceof Node&&(g.some(e=>e?.contains(t))||v())},[...g,v]),(0,a.useEffect)(()=>(document.addEventListener("click",b,!0),()=>{document.removeEventListener("click",b,!0)}),[b]),[(0,a.useCallback)(e=>{var n;let l={...k,willChange:void 0},o={position:"absolute",left:D?.x,top:D?.y,margin:0},a=`popover ${(n=A,s()(n in c,`unknown placement ${n}`),c[n])}`,i="center"===t?null:(0,r.jsx)("div",{ref:N,style:o,className:"popover-arrow"});return(0,r.jsx)(u.Nr,{in:y,children:(0,r.jsxs)("div",{ref:w.setFloating,style:l,className:a,children:[i,(0,r.jsx)("div",{className:"popover-body",children:e})]})})},[y,k,w.setFloating,N,t,A,D]),w.setReference,y&&S,j]};let c={top:"bs-popover-top",bottom:"bs-popover-bottom",left:"bs-popover-start",right:"bs-popover-end",center:"bs-popover-top"},d=(0,l.cY)(function({rects:e}){return-e.reference.height/2-e.floating.height/2});function m(e,t,n,r){return(0,o.ll)(e,t,n,{...r,layoutShift:!1})}},62167:function(e,t,n){var r=n(74848),l=n(77688);n(30322);var o=n(15685);t.A=({text:e})=>(0,r.jsx)("button",{type:"button",className:"btn btn-outline-secondary","data-js-copy-to-clipboard":e,children:(0,r.jsx)(l.A,{icon:o.KTq})})},71289:function(e,t,n){n.d(t,{A:function(){return o}});var r=n(74848),l=n(62167);function o({embedCode:e,embedOptionsUrl:t,className:n,disabled:a}){return(0,r.jsxs)("div",{className:n,children:[(0,r.jsx)("label",{className:"form-label",htmlFor:"r-embed-code",children:"Get the Embed Code"}),t&&(0,r.jsx)("a",{className:"fr small text-muted lh-body-absolute",href:t,rel:"nofollow",target:"_blank",children:"See more options"}),(0,r.jsxs)("div",{className:"input-group",children:[(0,r.jsx)("input",{id:"r-embed-code",className:"form-control embedcode js-autoselect",value:e,disabled:a,readOnly:!0}),(0,r.jsx)(l.A,{text:e})]})]})}},78320:function(e,t,n){n.d(t,{default:function(){return P}});var r=n(74848),l=n(96540),o=n(71289),a=n(20311),i=n.n(a);function s(e,t){let n;return(n=e.find(e=>e.themeName===t),i()(n,"can't select a non existent theme: "+t),n).linkColor}var u=n(38754);let c=`
2The player itself has a transparent background.<br/>
3Select Dark Theme if the page you're embedding onto has a dark background.
4`;function d(e){let t,{themeSetting:n,themes:o,useCustomColor:a,onThemeSelect:i,onColorSelect:s,onCustomColorChanged:d}=e,m=n.linkColor;return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"form-label",htmlFor:"r-embed-layout-theme",children:"Theme"}),(0,r.jsxs)("div",{className:"df",children:[(0,r.jsx)("select",{className:"form-select form-select-sm",id:"r-embed-layout-theme",value:n.themeName,onChange:i,children:o.map(({themeName:e})=>(0,r.jsx)("option",{value:e,children:e},e))}
4),(0,r.jsx)(u.default,{html:c,extraClasses:"mlm"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"r-embed-link-color",className:"form-label",children:"Spot color"}),(0,r.jsxs)("div",{className:"l-flex-centre-children-v",style:{gap:"0.5rem"},children:[(0,r.jsxs)("select",{className:"form-select form-select-sm",id:"r-embed-link-color",value:a?"customcolor":"default",onChange:s,children:[(0,r.jsx)("option",{value:"default",children:" default "}),(0,r.jsx)("option",{value:"customcolor",children:" custom "})]}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"input-group input-group-sm",children:[(0,r.jsx)("span",{className:"input-group-text",children:"#"}),(0,r.jsx)("input",{type:"text",id:"r-customColorTxtField",value:n.linkColor.substring(1),className:"form-control "+((t=n.linkColor.substring(1),/^[0-9A-F]{6}$/i.test(t))?"is-valid":"is-invalid"),maxLength:6,onChange:d,onBlur:d})]}),(0,r.jsx)("input",{type:"color",value:m,className:"form-control form-control-sm",style:{width:70},onChange:d,onBlur:d})]})]})]})]})}function m({themes:e,themeSetting:t,onChange:n}){let[o,a]=l.useState(!1),[u,c]=l.useState(null),f=e=>{n(e)},p=e=>{c(null),f({themeName:t.themeName,linkColor:"#"===e.charAt(0)?e:"#"+e})},h=u||t;return"default"===h.linkColor&&(h={...h,linkColor:s(e,h.themeName)}),(0,r.jsx)(d,{themes:e,themeSetting:h,useCustomColor:o,onThemeSelect:e=>{i()("light"===e.currentTarget.value||"dark"===e.currentTarget.value,"unknown theme name"),a(!1),f({themeName:e.currentTarget.value,linkColor:"default"})},onColorSelect:e=>{a("customcolor"===e.currentTarget.value),f({themeName:t.themeName,linkColor:"default"})},onCustomColorChanged:n=>{let r,l=n.currentTarget.value;"color"===n.currentTarget.type&&(l=l.replace(/^#/,""));var o,a=(r=l,/^[0-9A-F]{6}$/i.test(r));a?p(n.currentTarget.value):"blur"===n.type&&!1===a?p(s(e,t.themeName).substring(1)):(o=n.currentTarget.value,c({themeName:t.themeName,linkColor:"#"===o.charAt(0)?o:"#"+o}))}})}let f={playerMode:"Player mode",imageOption:"Image options"},p={imageOption:{full:"full bleed",fullsq:"don't crop"},playerMode:{playlist:"playlist player",latest_episode:"latest episode"}},h={imageOption:{},playerMode:{latest_episode:"A single-episode player that will automatically update to show your latest episode"}};var x=({optionType:e,options:t,value:n,onChange:o})=>{let a=l.useId();return(0,r.jsxs)("div",{children:[(0,r.jsx)("legend",{className:"col-form-label pt-0",children:f[e]||e}),t.map(t=>(0,r.jsxs)("div",{className:"form-check form-check-inline",children:[(0,r.jsx)("input",{className:"form-check-input",type:"radio",id:a+t,value:t,checked:t===n,onChange:()=>o(t)}),(0,r.jsxs)("label",{className:"form-check-label",htmlFor:a+t,children:[p[e][t]||t,function(e,t){let n=h[e][t];if(n)return(0,r.jsx)(u.default,{text:n,extraClasses:"mls"})}(e,t)]})]},t))]})},g=n(46942),v=n.n(g),b=n(77688),y="d-none d-sm-block",j=[y,y,"d-none d-md-block","d-none d-lg-block"],_=({onChange:e,previewWidth:t,sizesAndIcons:n})=>(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"navbar-text d-none d-sm-inline mrm small v-mid",children:"screen size:"}),(0,r.jsx)("div",{className:"btn-group",role:"group",style:{marginLeft:"auto"},"aria-label":"preview sizes",children:n.map(([n,l],o)=>{let a=t===n;return(0,r.jsx)("button",{type:"button",className:v()("btn btn-sm btn-light",j[o],{active:a,"bg-white":a}),onClick:t=>{t.preventDefault(),a||e(n)},children:(0,r.jsx)(b.A,{icon:l,className:"fa-1x",style:{minWidth:"1.5em"}})},o)})})]}),N=n(54669);let w=new Map;var k=function(e){let t=JSON.stringify(e),n=w.get(t);if(n)return n;let r=(0,N.F$)("/publishing/oembed.json",e).then(e=>e.json()).catch(e=>{throw w.delete(t),e});return w.set(t,r),r},C=n(43657),A=n(32017),S=n.n(A),D=n(86378),T=n(15685),O=n(79656);let E=[["100%",O.fGk],[320,O.GrJ],[480,O.w7B],[700,T.ArK]],M=new Map([["100%","w-100"],[320,"x-w-320"],[480,"x-w-480"],[700,"x-w-700"]]);var P=function({staticLink:e,embedVersion:t,warningMessage:n,imageOptions:a,themeSettings:i,playerModes:s,defaultOptions:u}){let[c,d]=(0,l.useState)({name:"iframe",version:t,...u}),[f,p]=(0,l.useState)("100%"),[h,g]=(0,l.useState)(null),v=(0,l.useMemo)(()=>{let e={};if(c.imageOption&&c.imageOption!==u.imageOption&&(e.image_option=c.imageOption),"latest_episode"===c.playerMode&&(e.player_mode=c.playerMode),!S()(c.themeSetting,u.themeSetting)){let t=c.themeSetting.linkColor?.replace(/^#/,"");e.player_theme=c.themeSetting.themeName,"default"!==t&&(e.link_color=t)}return e},[c,u]);(0,l.useEffect)(()=>{let t=!0,n={url:e,...v},r=setTimeout(()=>{t&&g(null)},100);return(0,D.j0)(k(n).then(e=>{t&&(clearTimeout(r),g(e.html))})),()=>{t=!1,clearTimeout(r)}},[e,v]);let y=(0,l.useMemo)(()=>{let t=new URL(e);for(let[e,n]of Object.entries(v))t.searchParams.set(e,n);return t.toString()},[e,v]),j="wordpress"===c.name?y:h,N=a||[],w=[];return i.length>1&&w.push((0,r.jsx)(m,{themes:i,themeSetting:c.themeSetting,onChange:e=>{d({...c,themeSetting:e})}},"theme")),s?.length&&w.push((0,r.jsx)(x,{optionType:"playerMode",options:s,value:c.playerMode,onChange:e=>{d({...c,playerMode:e})}},"playermode")),N.length&&w.push((0,r.jsx)(x,{optionType:"imageOption",options:N,value:c.imageOption,onChange:e=>{d({...c,imageOption:e})}},"image")),(0,r.jsxs)(l.Fragment,{children:[n&&(0,r.jsxs)("div",{className:"alert alert-danger",style:{whiteSpace:"pre-wrap"},children:[(0,r.jsx)(b.A,{icon:T.zpE})," ",n]}),(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsx)(o.A,{embedCode:j||"...",disabled:!j})}),e&&(0,r.jsx)("div",{className:"mb-3",children:(0,r.jsxs)("div",{className:"form-check mts",children:[(0,r.jsx)("input",{type:"checkbox",id:"r-usewordpress",checked:"wordpress"===c.name,onChange:e=>{let t=e.currentTarget.checked?"wordpress":"iframe";d({...c,name:t}),p("100%")},className:"form-check-input"}),(0,r.jsx)("label",{htmlFor:"r-usewordpress",className:"form-check-label",children:"for Squarespace, Wordpress, or Patreon"})]})}),!!w.length&&(0,r.jsx)("div",{className:"mvl",children:(0,r.jsx)("div",{className:"l-grid l-grid-auto",style:{gridGap:"2rem","--grid-dim":"250px"},children:w})}),(0,r.jsxs)("div",{className:"card "+("dark"===c.themeSetting.themeName?" bg-dark text-light":" bg-white text-dark"),children:[(0,r.jsxs)("div",{className:"card-header df",children:[(0,r.jsx)("span",{className:"mra",children:"Preview"}),4===c.version?(0,r.jsx)(_,{previewWidth:f,onChange:e=>{p(e)},sizesAndIcons:E}):null]}),(0,r.jsx)("div",{className:"card-body",children:h?(0,r.jsx)("div",{className:"df justify-content-center mha "+M.get(f),style:{transform:"scale(1,1)",transition:"width 0.3s ease"},dangerouslySetInnerHTML:{__html:h}}):(0,r.jsx)(C.Cr,{})})]})]})}},35726:function(e,t,n){n.d(t,{AV:function(){return V},Nr:function(){return X},e3:function(){return q},QP:function(){return Z},UW:function(){return J},wY:function(){return Y.A},F:function(){return G.A}});var r={};n.r(r),n.d(r,{appear:function(){return c},appearActive:function(){return d},appearDone:function(){return m},duration:function(){return f}
4,enter:function(){return p},enterActive:function(){return h},enterDone:function(){return x},exit:function(){return g},exitActive:function(){return v},exitDone:function(){return b}});var l={};n.r(l),n.d(l,{appear:function(){return y},appearActive:function(){return j},appearDone:function(){return _},"duration-off":function(){return N},"duration-on":function(){return w},enter:function(){return k},enterActive:function(){return C},enterDone:function(){return A},exit:function(){return S},exitActive:function(){return D},exitDone:function(){return T}});var o={};n.r(o),n.d(o,{appear:function(){return O},appearActive:function(){return E},appearDone:function(){return M},duration:function(){return P},enter:function(){return F},enterActive:function(){return I},enterDone:function(){return R},exit:function(){return U},exitActive:function(){return L},exitDone:function(){return B}});var a=n(74848),i=n(96540),s=n(13642),u=n(33495),c="appear__jPPgn",d="appearActive__XrMh8",m="appearDone__d7RF6",f="150ms",p="enter__Zr_nP",h="enterActive__K1XFz",x="enterDone__AaJj9",g="exit__kFmvY",v="exitActive___L2ti",b="exitDone__O9ncH",y="appear__gYbjG",j="appearActive__OpG8C",_="appearDone__ZvPR5",N="150ms",w="300ms",k="enter__BO7ZC",C="enterActive__i0nNl",A="enterDone__bLBcg",S="exit__XKZbC",D="exitActive__vYjAX",T="exitDone__ubUtb",O="appear__dx7CV",E="appearActive__Wl4A9",M="appearDone__gc0m8",P="250ms",F="enter__WB5vU",I="enterActive__x8g5f",R="enterDone__jPSw6",U="exit__UwbIX",L="exitActive__KvV32",B="exitDone__Tpr3G",$=n(34435),Y=n(6491),G=n(22618);(0,$.cS)(function(){document.body&&document.body.className.match("no-transitions")&&(s.A.disabled=!0)});let W=parseInt(f),H=parseInt(w),z=parseInt(N),K=parseInt(P);function V(e){let{mountOnEnter:t=!0,unmountOnExit:n=!0,...l}=e;return(0,a.jsx)(u.A,{...l,mountOnEnter:t,unmountOnExit:n,classNames:r,timeout:W})}let X=e=>{let{children:t,className:n,role:r,id:l,...o}=e,s=i.useRef(null);return(0,a.jsx)(V,{...o,nodeRef:s,children:(0,a.jsx)("div",{ref:s,children:t,className:n,role:r,id:l})})};function Z(e){let{mountOnEnter:t=!0,unmountOnExit:n=!0,...r}=e;return(0,a.jsx)(u.A,{...r,mountOnEnter:t,unmountOnExit:n,classNames:l,timeout:{enter:H,exit:z}})}let q=e=>{let{children:t,className:n,role:r,id:l,...o}=e,s=i.useRef(null);return(0,a.jsx)(Z,{...o,nodeRef:s,children:(0,a.jsx)("div",{ref:s,className:n,id:l,role:r,children:t})})};function J(e){let{mountOnEnter:t=!0,unmountOnExit:n=!0,children:r,nodeRef:l,onEnter:i,onExit:s,...c}=e;return(0,a.jsx)(u.A,{...c,nodeRef:l,mountOnEnter:t,unmountOnExit:n,classNames:o,timeout:K,onEnter:e=>{let t=l?.current;t&&t.style.setProperty("--slide-height",`${t.scrollHeight}px`),i&&i(e)},onExit:()=>{let e=l?.current;e&&e.style.setProperty("--slide-height",`${e.offsetHeight}px`),s&&s()},children:r})}},30322:function(e,t,n){n.r(t);var r=n(34435),l=n(6730),o=n(73029),a=n.n(o);function i(e,t){let n=new(a())(e,{trigger:"manual",title:t});n.show(),setTimeout(()=>n.hide(),100*t.length)}(0,r.VS)("[data-js-copy-to-clipboard]",e=>{e.addEventListener("click",async t=>{t.preventDefault();let n=e.dataset.jsCopyToClipboard,r=e.dataset.jsCopyConfirm;try{await navigator.clipboard.writeText(n),r?(0,l.A)(r):i(e,"Copied!")}catch{i(e,"please use Ctrl / Cmd + C to copy")}})})},34743:function(e,t,n){n.d(t,{we:function(){return d}});var r=n(17663),l=n(96540),o=n(40961),a="u">typeof document?l.useLayoutEffect:function(){};function i(e,t){let n,r,l;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!i(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function c(e){let t=l.useRef(e);return a(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:m,elements:{reference:f,floating:p}={},transform:h=!0,whileElementsMounted:x,open:g}=e,[v,b]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,j]=l.useState(d);i(y,d)||j(d);let[_,N]=l.useState(null),[w,k]=l.useState(null),C=l.useCallback(e=>
4{e!==T.current&&(T.current=e,N(e))},[]),A=l.useCallback(e=>{e!==O.current&&(O.current=e,k(e))},[]),S=f||_,D=p||w,T=l.useRef(null),O=l.useRef(null),E=l.useRef(v),M=null!=x,P=c(x),F=c(m),I=c(g),R=l.useCallback(()=>{if(!T.current||!O.current)return;let e={placement:t,strategy:n,middleware:y};F.current&&(e.platform=F.current),(0,r.rD)(T.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};U.current&&!i(E.current,t)&&(E.current=t,o.flushSync(()=>{b(t)}))})},[y,t,n,F,I]);a(()=>{!1===g&&E.current.isPositioned&&(E.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let U=l.useRef(!1);a(()=>(U.current=!0,()=>{U.current=!1}),[]),a(()=>{if(S&&(T.current=S),D&&(O.current=D),S&&D){if(P.current)return P.current(S,D,R);R()}},[S,D,R,P,M]);let L=l.useMemo(()=>({reference:T,floating:O,setReference:C,setFloating:A}),[C,A]),B=l.useMemo(()=>({reference:S,floating:D}),[S,D]),$=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=u(B.floating,v.x),r=u(B.floating,v.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...s(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,B.floating,v.x,v.y]);return l.useMemo(()=>({...v,update:R,refs:L,elements:B,floatingStyles:$}),[v,R,L,B,$])}n.d(t,["BN",0,(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"UE",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:l}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:l}).fn(t):{}:n?(0,r.UE)({element:n,padding:l}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"UU",0,(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"cY",0,(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}}])}}]);

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.