PageSourceSearch

https://audioboom.com/assets/packs/js/4095-61765ea32c782019c3f5.chunk.js

js audioboom.com collected 2026-10-01 07:42:03 UTC 13,001 bytes, 1 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:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4aa845e-fdf3-4c63-adb3-560700df79fd",e._sentryDebugIdIdentifier="sentry-dbid-e4aa845e-fdf3-4c63-adb3-560700df79fd")}catch(e){}}();"use strict";(self.webpackChunkaudioboom_web=self.webpackChunkaudioboom_web||[]).push([[4095],{54095:function(e,n,t){t.d(n,{default:function(){return k}});var r={};t.r(r),t.d(r,{expired:function(){return u},fade:function(){return p},loading:function(){return x}});var s=t(74848),a=t(54669),i=t(86378),l=t(86850),o=t(96540),c=t(46942),d=t.n(c),u="expired__nQNSj",p="fade__OzOla",x="loading__c3tGS",v=({initialReason:e,initialReasonText:n,onSetDeclineReason:t,onCancel:r,advertiser:a})=>{let[i,l]=o.useState(e),[c,d]=o.useState(n||""),u="Other"===i||"Not interested in this product"===i;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("select",{className:"form-select mtm",onChange:e=>l(e.target.value),defaultValue:e||"",required:!0,children:[(0,s.jsx)("option",{value:"",children:"--Please select a reason--"}),(0,s.jsxs)("option",{value:"Not interested in this product",children:["Not interested in ",a]}),(0,s.jsxs)("option",{value:"This brand will not resonate with my audience (product, price, etc.)",children:[a," will not resonate with my audience"]}),(0,s.jsxs)("option",{value:"Against my values and beliefs: controversial",children:[a," are against my values and beliefs"]}),"Other"===i?(0,s.jsx)("option",{value:"Other",children:"Other"}):null]}),u?(0,s.jsxs)("div",{className:"mt-3",children:[(0,s.jsx)("label",{className:"form-label",htmlFor:"decline-reason-text",children:"Please specify"}),(0,s.jsx)("textarea",{id:"decline-reason-text",className:"form-control",maxLength:255,defaultValue:c||"",onChange:e=>d(e.currentTarget.value)})]}):null,(0,s.jsxs)("div",{className:"df mt-3",children:[(0,s.jsx)("button",{className:"btn btn-primary mrm",type:"button",disabled:!i||u&&!c,onClick:e=>{e.preventDefault(),t(i,u?c:null)},children:"Reject advertiser"}),(0,s.jsx)("button",{className:"btn btn-outline-secondary",type:"button",onClick:e=>{e.preventDefault(),r()},children:"Cancel"})]})]})},m=({initialReasonText:e,onSetApproveReason:n,onCancel:t,advertiser:r})=>{let[a,i]=o.useState(e||"");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)("textarea",{id:"approve-reason-text",placeholder:`Please briefly explain what interests you about ${r}.`,className:"form-control",maxLength:255,defaultValue:a||"",onChange:e=>i(e.currentTarget.value)})}),(0,s.jsxs)("div",{className:"df mt-3",children:[(0,s.jsx)("button",{className:"btn btn-primary mrm",disabled:!a,onClick:e=>{e.preventDefault(),n("Yes. Other",a)},type:"submit",children:"Approve advertiser"}),(0,s.jsx)("button",{className:"btn btn-outline-secondary",onClick:e=>{e.preventDefault(),t()},type:"button",children:"Cancel"})]})]})},h=t(77688),f=t(15685);let j=({type:e,currentSelection:n,onSelect:t})=>{let r;return r="none"!==n?`nav-link ${n===e?"active":""}`:"btn mrs btn-outline-primary rounded-4",(0,s.jsx)("a",{className:r,onClick:e=>{e.preventDefault(),t()},children:"approve"===e?"Approve":"Reject"})},b={Approved:(0,s.jsx)(h.A,{icon:f.e68}),Rejected:(0,s.jsx)(h.A,{icon:f.Jyw})};var _=({vet:e,onSubmit:n})=>{let{id:t,status:r,approveReason:a,approveReasonText:i,declineReason:l,declineReasonText:c,advertiser:d}=e,[u,p]=o.useState("none");if("Expired"===r)return(0,s.jsx)("div",{className:"card-footer l-flex-centre-children-v gap-4",children:"expired"});if("none"===u&&("Approved"===r||"Rejected"===r)){let e="Approved"===r?"approve":"reject",n="Approved"===r?"bg-success text-white":"bg-danger text-white";return(0,s.jsxs)("div",{className:`card-footer ${n} l-flex-centre-children-v gap-4`,children:[(0,s.jsxs)("div",{children:[b[r]," ",r]}),(0,s.jsx)("a",{href:"#",className:`small ${n}`,onClick:n=>{n.preventDefault(),p(e)},children:"edit"})]})}return(0,s.jsxs)("div",{className:"card-body pt-0",children:[(0,s.jsxs)("div",{className:"none"===u?"df":"nav nav-tabs",children:[(0,s.jsx)("div",{className:"nav-item",children:(0,s.jsx)(j,{type:"approve",currentSelection:u,onSelect:()=>p("approve")})}),(0,s.jsx)("div",{className:"nav-item",children:(0,s.jsx)(j,{type:"reject",currentSelection:u,onSelect:()=>p("reject")})})]}),"approve"===u?(0,s.jsx)(m,{initialReason:a,initialReasonText:i,onSetApproveReason:(e,r)=>{p("none"),n(t,{status:"Approved",approveReason:e,approveReasonText:r})},advertiser:d,onCancel:()=>p("none")}):"reject"===u?(0,s.jsx)(v,{initialReason:l,initialReasonText:c,onSetDeclineReason:(e,r)=>{p("none"),n(t,{status:"Rejected",declineReason:e,declineReasonText:r})},advertiser:d,onCancel:()=>p("none")}):null]})},y=({advertiser:e,advertiserDescription:n,advertiserWebsite:t,externalNotes:r,personalEndorsement:a})=>(0,s.jsxs)("div",{children:[(0,s.jsx)("h5",{children:t?(0,s.jsx)("a",{className:"emphasis",href:t,target:"_blank",rel:"noopener",children:e}):e}),"Yes"===a?(0,s.jsx)("p",{className:"small fw-bold mbn",style:{fontVariant:"small-caps"},children:"Personal endorsement"}):null,(0,s.jsxs)("div",{className:"small mts",children:[n?(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"Description"}),(0,s.jsx)("p",{children:n})]}):null,r?(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{children:"Exter
1nal Notes"}),(0,s.jsx)("p",{children:r})]}):null]})]}),g=t(79656),N=({adType:e,deliveryMethod:n,qaApprover:t,qaApproverEmail:r,dateRequested:a})=>(0,s.jsxs)("div",{className:"mbm small",children:[(0,s.jsxs)("dl",{className:"dl-horizontal mbn",children:[e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("dt",{children:"Type:"})," ",(0,s.jsx)("dd",{children:e})]}):null,n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("dt",{children:"Delivery:"})," ",(0,s.jsx)("dd",{children:n})]}):null,a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("dt",{children:"Requested:"})," ",(0,s.jsx)("dd",{children:a})]}):null]}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.A,{icon:g.y_8}),"\xa0Contact",(0,s.jsxs)("a",{href:`mailto:${r}`,className:"emphasis",children:["\xa0",t]})," ","for any questions or concerns."]}):null]}),A=o.memo(({vet:e,isLoading:n,onSetAttrs:t})=>(0,s.jsxs)("div",{className:d()("card mbm",r[`${e.status.toLowerCase()}`],{[x]:n}),children:[(0,s.jsxs)("div",{className:"card-body pb-0",children:[(0,s.jsx)(y,{advertiser:e.advertiser,advertiserDescription:e.advertiserDescription,advertiserWebsite:e.advertiserWebsite,externalNotes:e.externalNotes,personalEndorsement:e.personalEndorsement}),(0,s.jsx)(N,{dateRequested:e.dateRequested,adType:e.adType,deliveryMethod:e.deliveryMethod,qaApprover:e.qaApprover,qaApproverEmail:e.qaApproverEmail})]}),(0,s.jsx)(_,{vet:e,onSubmit:t})]})),D=t(35726);function w({filter:e,onSetFilter:n,startedEmpty:t}){let r=e=>t=>{t.preventDefault(),n(e)};return"Pending"===e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mbm",children:[(0,s.jsx)(h.A,{icon:f.QRE})," ",t?"There are no pending vets at this time":"All done! No more pending vets found"]}),(0,s.jsx)("button",{className:"btn btn-outline-primary mrm",type:"button",onClick:r("Approved"),children:"See already-approved vets"}),(0,s.jsx)("button",{className:"btn btn-outline-primary",type:"button",onClick:r("Rejected"),children:"See already-rejected vets"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mbm",children:[(0,s.jsx)(h.A,{icon:f.lEd})," No ",e.toLowerCase()," vets found."]}),(0,s.jsx)("button",{className:"btn btn-outline-primary",type:"button",onClick:r("all"),children:"See all vets"})]})}let C=()=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{children:[(0,s.jsx)(h.A,{icon:f.pS3})," Nothing to see here"]}),"Check back once you have some ad-vets to approve. We'll send an email notification when they're ready."]});function S(e){return"Pending"===e.status||"Paused"===e.status?"Pending":e.status}function R(e,n,t){let r={status:t.status,approve_reason:t.approveReason,approve_reason_text:t.approveReasonText,decline_reason:t.declineReason,decline_reason_text:t.declineReasonText};return(0,i.j0)((0,a.E8)(e,{vet_id:n,ad_vetting:r}))}var k=({url:e,sendUpdate:n=R,initialFilter:t,...r})=>{let[a,i]=(0,o.useState)(r.vets),[c,d]=(0,o.useState)(t||"Pending"),{loadingState:u,withLoad:p}=(0,l.A)(),x=(0,o.useCallback)((t,r)=>{e&&p(t,n(e,t,r)),i(e=>e.map(e=>e.id===t?{...e,...r}:e))},[p,n,e]),v="all"===c?a:a.filter(e=>S(e)===c);return 0===a.length?(0,s.jsx)(C,{}):(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"df mbm",children:[(0,s.jsx)("label",{htmlFor:"vet-filter",className:"col-form-label mrs",children:"Vet filter:"}),(0,s.jsxs)("select",{id:"vet-filter",className:"form-select mra",style:{width:"auto"},onChange:e=>d(e.target.value),value:c,children:[(0,s.jsx)("option",{value:"all",children:"Show all vets"}),(0,s.jsx)("option",{value:"Pending",children:"Show pending vets"}),(0,s.jsx)("option",{value:"Approved",children:"Show approved vets"}),(0,s.jsx)("option",{value:"Rejected",children:"Show rejected vets"}),(0,s.jsx)("option",{value:"Expired",children:"Show expired vets"})]})]}),(0,s.jsx)(D.F,{children:v.length?v.map(e=>(0,s.jsx)(D.e3,{children:(0,s.jsx)(A,{vet:e,isLoading:u[e.id],onSetAttrs:x})},e.id)):(0,s.jsx)(D.e3,{children:(0,s.jsx)("div",{className:"card",children:(0,s.jsx)("div",{className:"card-body",children:(0,s.jsx)(w,{filter:c,onSetFilter:d,startedEmpty:!r.vets.some(e=>"Pending"===S(e))})})})},"no-vets")})]})}},86850:function(e,n,t){var r=t(96540);n.A=function(){let[e,n,t]=function(){let[e,n]=(0,r.useState)({});return[e,(0,r.useCallback)(e=>{n(n=>({...n,[e]:(n[e]||0)+1}))},[]),(0,r.useCallback)(e=>{n(n=>({...n,[e]:(n[e]||0)-1}))},[])]}();return{loadingState:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,n>0])),withLoad:(0,r.useCallback)((e,r)=>(n(e),r.finally(()=>t(e))),[n,t])}}},35726:function(e,n,t){t.d(n,{AV:function(){return B},Nr:function(){return H},e3:function(){return M},QP:function(){return K},UW:function(){return Q},wY:function(){return Y.A},F:function(){return X.A}});var r={};t.r(r),t.d(r,{appear:function(){return d},appearActive:function(){return u},appearDone:function(){return p},duration:function(){return x},enter:function(){return v},enterActive:function(){return m},enterDone:function(){return h},exit:function(){return f},exitActive:function(){return j},exitDone:function(){return b}});var s={};t.r(s),t.d(s,{appear:function(){return _},appearActive:function(){return y},appearDone:function(){return g},"duration-off":function(){return N},"duration-on":function(){return A},enter:function(){return D},enterActive:function(){return w},enterDone:function(){return C},exit:function(){return S},exitActive:function(){return R},exitDone:function(){return k}});var a={};t.r(a),t.d(a,{appear:function(){return E},appearActive:function(){return P},appearDone:function(){return O},duration:function(){return F},enter:function(){return T},enterActive:function(){return I},enterDone:function(){return q},exit:function(){return L},exitActive:function(){return V},exitDone:function(){return $}});var i=t(74848),l=t(96540),o=t(13642),c=t(33495),d="appear__jPPgn",u="appearActive__XrMh8",p="appearDone__d7RF6",x="150ms",v="enter__Zr_nP",m="enterActive__K1XFz",h="enterDone__AaJj9",f="exit__kFmvY",j="exitActive___L2ti",b="exitDone__O9ncH",_="appear__gYbjG",y="appearActive__OpG8C",g="appearDone__ZvPR5",N="150ms",A="300ms",D="enter__BO7ZC",w="enterActive__i0nNl",C="enterDone__bLBcg",S="exit__XKZbC",R="exitActive__vYjAX",k="exitDone__ubUtb",E="appear__dx7CV",P="appearActive__Wl4A9",O="appearDone__gc0m8",F="250ms",T="enter__WB5vU",I="enterActive__x8g5f",q="enterDone__jPSw6",L="exit__UwbIX",V="exitActive__KvV32",$="exitDone__Tpr3G",W=t(34435),Y=t(6491),X=t(22618);(0,W.cS)(function(){document.body&&document.body.className.match("no-transitions")&&(o.A.disabled=!0)});let G=parseInt(x),U=parseInt(A),Z=parseInt(N),z=parseInt(F);function B(e){let{mountOnEnter:n=!0,unmountOnExit:t=!0,...s}=e;return(0,i.jsx)(c.A,{...s,mountOnEnter:n,unmountOnExit:t,classNames:r,timeout:G})}let H=e=>{let{children:n,className:t,role:r,id:s,...a}=e,o=l.useRef(null);return(0,i.jsx)(B,{...a,nodeRef:o,children:(0,i.jsx)("div",{ref:o,children:n,className:t,role:r,id:s})})};function K(e){let{mountOnEnter:n=!0,unmountOnExit:t=!0,...r}=e;return(0,i.jsx)(c.A,{...r,mountOnEnter:n,unmountOnExit:t,classNames:s,timeout:{enter:U,exit:Z}})}let M=e=>{let{children:n,className:t,role:r,id:s,...a}=e,o=l.useRef(null);return(0,i.jsx)(K,{...a,nodeRef:o,children:(0,i.jsx)("div",{ref:o,className:t,id:s,role:r,children:n})})};function Q(e){let{mountOnEnter:n=!0,unmountOnExit:t=!0,children:r,nodeRef:s,onEnter:l,onExit:o,...d}=e;return(0,i.jsx)(c.A,{...d,nodeRef:s,mountOnEnter:n,unmountOnExit:t,classNames:a,timeout:z,onEnter:e=>{let n=s?.current;n&&n.style.setProperty("--slide-height",`${n.scrollHeight}px`),l&&l(e)},onExit:()=>{let e=s?.current;e&&e.style.setProperty("--slide-height",`${e.offsetHeight}px`),o&&o()},children:r})}}}]);

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.