1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6249],{75291:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/pricing",function(){return n(60082)}])},71767:function(e,t,n){"use strict";n.d(t,{Z:function(){return AdminLayout}});var i=n(85893),a=n(62469),r=n(67228),l=n(66112),s=n(17814),o=n(11163),c=n(67294);function useOnlyAdmin(){let{user:e,isLoading:t}=(0,s.Z)(),{push:n}=(0,o.useRouter)();(0,c.useEffect)(()=>{(null==e?void 0:e.isAdmin)||t||n("/admin/login").then()},[e,t,n])}function useAdminStatus(){let{user:e,isLoading:t}=(0,s.Z)();return t?"loading":(null==e?void 0:e.isAdmin)?"admin":"not-admin"}var d=n(16790);function useAuthStatus(){let{user:e,loading:t}=(0,d.Z)();return t?"loading":e?"authenticated":"unauthenticated"}var u=n(29267),m=n(57851);function AdminLayout(e){let{children:t=null,className:n="",loading:s=!1}=e;useOnlyAdmin(),(0,u.Z)();let c=useAuthStatus(),d=useAdminStatus(),{pathname:p}=(0,o.useRouter)();if("authenticated"!=c||"admin"!=d)return null;let h=[{name:"Dashboard",href:"#",icon:a.QGC},{name:"Tracks",href:"all-tracks",icon:a.RYk},{name:"Creators",href:"creators",icon:a.Tk0},{name:"Upload Tracks",href:"upload-tracks",icon:a.rG2},{name:"Submissions",href:"submissions",icon:a._MN},{name:"Competitions",href:"competitions",icon:a.YGl},{name:"Pricing",href:"pricing",icon:a.S7f},{name:"Profile Requests",href:"profile-requests",icon:a.fMw},{name:"Custom Briefs",href:"custom-briefs",icon:a.LOy},{name:"Payouts",href:"payouts",icon:a.zkR},{name:"Manage",href:"manage",icon:a.AMp},{name:"Featured",href:"featured-tracks",icon:a.r7p}].map(e=>{let{href:t,...n}=e;return{...n,href:"/admin/"+t,active:p.includes(t)&&""!==t}});return(0,i.jsxs)("div",{className:"bg-night w-full",children:[(0,i.jsxs)("div",{className:"bg-midnight/60 backdrop-blur-xl z-30 fixed w-full border-b border-dark-grey",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between p-7",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsx)(r.TR,{}),(0,i.jsx)("span",{children:"Admin Console"})]}),(0,i.jsx)("div",{className:"text-white",children:"@admin"})]}),(0,i.jsx)("div",{className:"ml-7",children:(0,i.jsx)(l.Z,{tabs:h})})]}),(0,i.jsx)("div",{className:(0,m.m)("py-8 pt-40 px-8 min-h-screen",n),children:s?(0,i.jsx)(r.$j,{}):t})]})}},45278:function(e,t,n){"use strict";n.d(t,{Z:function(){return H3}});var i=n(85893),a=n(57851);function H3(e){let{className:t,children:n}=e;return(0,i.jsx)("h3",{className:(0,a.m)("text-xl inline-block leading-tight font-[350] tracking-[-0.1px] text-white",t),children:n})}},72789:function(e,t,n){"use strict";n.d(t,{Z:function(){return ButtonSolid}});var i=n(85893),a=n(62469),r=n(81060),l=n(41664),s=n.n(l),o=n(57851);function ButtonSolid(e){let{href:t,className:n,children:l,loading:c,caret:d=!0,dark:u=!1,loadingText:m,lightning:p=!1,disabled:h=!1,...x}=e,f=(0,o.m)("font-[500] w-fit flex items-center transition gap-3 text-base px-4 py-1.5 rounded-lg ".concat(h?"opacity-40 !select-none":u?"bg-dark-grey hover:bg-mid-grey text-white":p?"bg-lightning hover:bg-lightning/70 text-midnight":"bg-white hover:bg-white/70 text-midnight"),n);return c?(0,i.jsxs)("button",{className:f,...x,children:[m,(0,i.jsx)(r.Z,{className:"mx-auto"})]}):t?(0,i.jsx)(s(),{href:t,children:(0,i.jsxs)("button",{className:f,...x,children:[l,d&&(0,i.jsx)(a.QUb,{})]})}):(0,i.jsxs)("button",{className:f,disabled:h,...x,children:[l,d&&(0,i.jsx)(a.QUb,{})]})}},14776:function(e,t,n){"use strict";n.d(t,{Z:function(){return Select}});var i,a,r=n(85893),l=n(67294),s=n(62469),o=n(35247),c=n(57851);let d=(0,l.forwardRef)(function(e,t){let{children:n,className:i,...a}=e;return(0,r.jsx)(o.ck,{className:(0,c.m)("py-2.5 px-4 cursor-default hover:outline-none hover:bg-white/10 data-[highlighted]:bg-white/10 rounded-md data-[disabled]:opacity-20",i),...a,ref:t,children:(0,r.jsx)(o.eT,{children:n})})});function Select(e){let{items:t,value:n,onChange:u,placeholder:m,label:p=null!==(a=null===(i=t.find(e=>{let{value:t}=e;return t==n}))||void 0===i?void 0:i.label)&&void 0!==a?a:n,triggerClassName:h}=e;return(0,r.jsxs)(o.fC,{value:n,onValueChange:u,children:[(0,r.jsxs)(o.xz,{className:(0,
1c.m)("inline-flex items-center justify-center rounded p-3 text-sm leading-none gap-4 bg-dawn hover:bg-dark-grey text-white data-[placeholder]:text-beton outline-none",h),children:[(0,r.jsx)(o.B4,{placeholder:m,children:p}),(0,r.jsx)(o.JO,{className:"",children:(0,r.jsx)(s.v4q,{})})]}),(0,r.jsx)(o.h_,{children:(0,r.jsxs)(o.VY,{className:"bg-dark-grey rounded-lg text-sm text-white will-change-[transform,opacity] data-[state=open]:data-[side=top]:animate-slideDownAndFade data-[state=open]:data-[side=right]:animate-slideLeftAndFade data-[state=open]:data-[side=bottom]:animate-slideUpAndFade data-[state=open]:data-[side=left]:animate-slideRightAndFade z-40 max-h-64",position:"popper",side:"bottom",collisionPadding:20,children:[(0,r.jsx)(o.l_,{className:"p-[5px] w-fit",children:t.map((e,t)=>{let{label:n,value:i,...a}=e;return(0,l.createElement)(d,{value:i,...a,key:t},null!=n?n:i)})}),(0,r.jsx)(o.Eh,{className:"fill-dark-grey"})]})})]})}},81060:function(e,t,n){"use strict";n.d(t,{Z:function(){return Spinner}});var i=n(85893),a=n(53990),r=n(57851);function Spinner(e){let{className:t=""}=e;return(0,i.jsx)(a.IDg,{className:(0,r.m)("animate-spin",t)})}},66112:function(e,t,n){"use strict";n.d(t,{Z:function(){return Tabs}});var i=n(85893),a=n(67294),r=n(41664),l=n.n(r),s=n(57851),o=n(59001);function Tab(e){let{href:t,active:n,name:a,withTitle:r,icon:c=()=>null,...d}=e,u=(0,s.m)("flex items-center gap-2 hover:text-white pb-2 text-sm border-b border-transparent",n&&"text-white border-white"),m=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{trigger:(0,i.jsx)(c,{className:"w-5 h-5 mb-2"}),content:a}),r&&(0,i.jsx)("span",{children:a})]});return t?(0,i.jsx)(l(),{href:t,children:(0,i.jsx)("div",{className:u,children:m})}):(0,i.jsx)("button",{className:u,...d,children:m})}function Tabs(e){let{tabs:t,withTitle:n}=e;return(0,i.jsx)("div",{className:"flex items-center gap-8",children:t.map((e,t)=>(0,a.createElement)(Tab,{...e,withTitle:n,key:t}))})}},59001:function(e,t,n){"use strict";var i=n(85893),a=n(66192);n(67294);var r=n(45278);t.Z=e=>{let{trigger:t,content:n,icon:l,className:s,keys:o,bio:c,image:d,heading:u,collisionBoundary:m,collisionPadding:p=15,align:h,side:x}=e;return(0,i.jsx)(a.zt,{delayDuration:200,children:(0,i.jsxs)(a.fC,{children:[(0,i.jsx)(a.xz,{asChild:!0,children:t}),(0,i.jsx)(a.h_,{children:(0,i.jsxs)(a.VY,{sideOffset:12,collisionPadding:p,align:h,className:"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade z-50 text-sm bg-paper/10 backdrop-blur-xl data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none text-white py-1 px-4 rounded-lg drop-shadow-lg will-change-[transform,opacity] flex flex-col leading-tight ".concat(s),collisionBoundary:m,side:x,children:[(0,i.jsxs)("div",{className:"".concat(u?"py-5 px-2":"p-1"),children:[d&&(0,i.jsx)("img",{src:d,alt:u,className:"rounded-full aspect-square w-10 h-10",style:{objectFit:"cover"}}),u&&(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)("div",{className:"p-2 w-fit rounded-full bg-white/20 text-white",children:l}),(0,i.jsx)(r.Z,{className:"my-2",children:u})]}),(0,i.jsx)("p",{className:" ".concat(u?"text-white/70":"text-white text-sm"," ").concat(c&&"text-xs line-clamp-4"),children:n}),o]}),(0,i.jsx)(a.Eh,{className:"fill-dawn"})]})})]})})}},99114:function(e,t,n){"use strict";n.d(t,{Z:function(){return LightningButton}});var i=n(85893),a=n(16487),r=n(57851);function LightningButton(e){let{className:t="",...n}=e;return(0,i.jsx)(a.Z,{className:(0,r.m)("bg-lightning/20 text-lightning py-3 px-6 rounded-lg disabled:opacity-50",t),...n})}},69569:function(e,t,n){"use strict";n.d(t,{F5:function(){return updatePrice},bu:function(){return updateGlobalPriceMultiplier},xz:function(){return fetchPrices}});var i=n(51973),a=n(13247),r=n(62854),l=n(4575);async function updatePrice(e){let{category:t,type:n,territory:r,location:s,duration:o,runtime:c,price:d}=e,u=(0,a.JU)(i.N$,l.e1,"pricing-table");await (0,a.pl)(u,{[t]:{[n]:{[r]:{[s]:{[o]:{[c]:d}}}}}},{merge:!0})}async function fetchPrices(){let e=(0,a.JU)(i.N$,l.e1,"pricing-table");return await (0,r.fv)(e)}async function updateGlobalPriceMultiplier(e){let t=(0,a.JU)(i.N$,l.e1,"pricing-table");await (0,a.r7)(t,{globalPriceMultiplier:e})}},35829:function(e,t,n){"use strict";n.d(t,{Z:function(){return usePrices}});var i=n(67848),a=n(69569);function usePrices(){return(0,i.a)(["pricing-table"],()=>(0,a.xz)())}},29267:function(e,t,n){"use strict";n.d(t,{Z:function(){return useOnlyAuthenticated}});var i=n(16790),a=n(11163),r=n(67294);function useOnlyAuthenticated(){let{user:e,loading:t}=(0,i.Z)(),{push:n}=(0,a.useRouter)();(0,r.useEffect)(()=>{t||e||n("/login").then()},[t,e,n])}},47363:function(e,t,n){"use strict";n.d(t,{IC:function(){return o},Kl:function(){return r},bO:function(){return i},bq:function(){return a},lI:function(){return l},oZ:function(){return s}});let i=[{name:"Africa",key:"africa"},{name:"Asia",key:"asia"},{name:"Europe",key:"europe"},{name:"North America",key:"north_america"},{name:"Oceania",key:"oceania"},{name:"South America",key:"south_america"}],a=[{name:"Global",key:"global"},...i,{name:"Regions Tier 1",key:"territory1"},{name:"Regions Tier 2",key:"territory2"},{name:"Regions Tier 3",key:"territoryROW"}],r=[{name:"Location Tier 1",key:"territory1"},{name:"Location Tier 2",key:"territory2"},{name:"Location Row",key:"territoryROW"}],l=[{name:"Up to 1 Month",key:"month"},{name:"Up to 6 Months",key:"6months"},{name:"Up to 1 year",key:"year"}],s=[{name:"Up to 30 seconds",key:"30seconds"},{name:"Up to 60 seconds",key:"60seconds"},{name:"Full Track",key:"fullTrack"}],o=[{name:"Advertising",key:"advertising",types:[{name:"TV Ad",key:"tv",description:"WW distribution, all media. incl. all cut downs",preventGlobal:!0},{name:"VOD",key:"vod",description:"ww distribution, media excl. TV, radio, cinema. Incl. all cut downs"},{name:"Radio Advertisement",key:"radioNational",description:"national distribution, incl. all cut downs",preventGlobal:!0},{name:"Radio Advertisement (Single local/regional station)",key:"radioRegional",description:"Specified named network distribution",preventGlobal:!0,preventContinents:!0},{name:"All other advertising (incl. online, socials (paid-for-media spend etc) ",key:"other",description:"ww distribution, incl. all cut downs"}]},{name:"Branded Content",subtitle:"(Including Social Media. Not including paid for media spend)",key:"branded",perpetual:!0,types:[{name:"Branded Content",key:"branded",de
1scription:"Covers all endorsed and promotional content (e.g. no media spend socials) for all media excl. TV/ VOD, radio and cinema. ww distribution, in perpetuity"}]},{name:"Corporate",key:"corporate",perpetual:!0,types:[{name:"Corporate",key:"corporate",description:"Covers B2B promotion (e.g. company reel), internal video, film festivals, personal online videos. In perpetuity. "}]},{name:"Trailers",key:"trailers",types:[{name:"\xa33M+ budget",key:"3M",description:"all media, ww distribution, excl. US public performance licence) "},{name:"\xa31M-3M budget",key:"1-3M",description:"all media, ww distribution, excl. US public performance licence) "},{name:"\xa3500K-\xa31M budget",key:"500K-1M",description:"all media, ww distribution, excl. US public performance licence) "},{name:"Under \xa3500K budget",key:"500K",description:"all media, ww distribution, excl. US public performance licence) "},{name:"\xa33M+ budget (Online)",key:"3M-online",description:"Online only, WW distribution"},{name:"\xa31M-3M budget (Online)",key:"1-3M-online",description:"Online only, WW distribution"},{name:"\xa3500K-\xa31M budget (Online)",key:"500K-1M-online",description:"Online only, WW distribution"},{name:"Under \xa3500K budget (Online)",key:"500K-online",description:"Online only, WW distribution"}]},{name:"Cinema & Film",key:"cinemaAndFilm",perpetual:!0,types:[{name:"\xa33M+ budget",key:"3M",description:"WW distribution, all media, excl. US public performace licence "},{name:"\xa31M-3M budget",key:"1-3M",description:"WW distribution, in perp, all media, excl. US public performace licence "},{name:"\xa3500K-\xa31M budget",key:"500K-1M",description:"WW distribution, all media, excl. US public performace licence "},{name:"Under \xa3500K budget",key:"500K",description:"all media, ww distribution, excl. US public performance licence) "}]},{name:"Games",key:"games",perpetual:!0,types:[{name:"AAA",key:"aaa",description:"WW distribution, all non-promotional media (e.g. ads/ trailers), in-perpetuity"},{name:"\xa33M-10M budget",key:"3-10M",description:"WW distribution, all non-promotional media (e.g. ads/ trailers), in-perpetuity"},{name:"\xa3500K-\xa33M budget",key:"500K-3M",description:"WW distribution, all non-promotional media (e.g. ads/ trailers), in-perpetuity"},{name:"Under \xa3500K budget",key:"500K",description:"WW distribution, all non-promotional media (e.g. ads/ trailers), in-perpetuity"}]},{name:"TV",key:"tv",perpetual:!0,preventGlobal:!0,types:[{name:"Single episode / one-off production",key:"single",description:"ww distribution, multiple platforms"},{name:"Series (up to 24 episodes)",key:"series",description:"ww distribution, multiple platforms"}]},{name:"Showreel",key:"showreel",perpetual:!0,preventGlobal:!1,types:[{name:"Showreel",key:"single",description:"ww distribution, multiple platforms"}]}]},60082:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Pricing}});var i=n(85893),a=n(71767),r=n(35829),l=n(67294),s=n(67228),o=n(99114),c=n(85945),d=n(48228),u=n(69569),m=n(50361),p=n.n(m),h=n(36968),x=n.n(h),f=n(66184);function useUpdatePrice(e){let{category:t,type:n,territory:i,location:a,duration:r,runtime:l,price:s}=e,{onSuccess:o=()=>{}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=(0,c.NL)();return(0,d.D)(()=>(0,u.F5)({category:t,type:n,territory:i,location:a,duration:r,runtime:l,price:s}),{onSuccess:()=>{m.setQueryData(["pricing-table"],function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return x()(p()(e),(0,f.iE)({category:t,type:n,territory:i,location:a,duration:r,runtime:l}),s)}),o()}})}var b=n(47363),g=n(48403),y=n.n(g);function EditPriceModal(e){var t;let{open:n,setOpen:a,category:r,type:c,territory:d,location:u,duration:m,runtime:p,price:h=0}=e,[x,f]=(0,l.useState)(h),{mutateAsync:g,isLoading:v}=useUpdatePrice({category:r,type:c,territory:d,location:u,duration:m,runtime:p,price:x},{onSuccess:()=>a(!1)}),{name:j}=b.IC.find(e=>{let{key:t}=e;return t===r}),{name:k}=null!==(t=b.lI.find(e=>{let{key:t}=e;return t===m}))&&void 0!==t?t:{name:y()(m)},{name:w}=b.oZ.find(e=>{let{key:t}=e;return t===p}),{name:N}=b.bq.find(e=>{let{key:t}=e;return t===d});return(0,i.jsxs)(s.u_,{open:n,setOpen:a,className:"p-6 border border-beton/20 rounded-lg max-w-md w-full bg-slate",children:[(0,i.jsx)("h2",{className:"text-2xl text-paper mb-6",children:"Edit Modal"}),(0,i.jsxs)("div",{children:[j," - ",k," - ",w," - ",N]}),(0,i.jsxs)("div",{className:"flex items-center justify-end gap-2 mb-4 text-3xl text-paper",children:[(0,i.jsx)("span",{children:"\xa3"}),(0,i.jsx)("input",{className:"bg-transparent w-36",value:0===x?"":x,onChange:e=>f(parseInt(e.target.value)||0)})]}),(0,i.jsxs)("div",{className:"flex items-center justify-end gap-6",children:[(0,i.jsx)("button",{onClick:()=>a(!1),children:"Cancel"}),(0,i.jsx)(o.Z,{loading:v,onClick:g,disabled:x<=0,children:"Confirm"})]})]})}function Cell(e){var t,n,a,s,o;let{category:c,type:d,territory:u,location:m,duration:p,runtime:h}=e,[x,f]=(0,l.useState)(!1),{data:b={}}=(0,r.Z)(),g=(null===(o=b[c])||void 0===o?void 0:null===(s=o[d])||void 0===s?void 0:null===(a=s[u])||void 0===a?void 0:null===(n=a[m])||void 0===n?void 0:null===(t=n[p])||void 0===t?void 0:t[h])||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("button",{onClick:()=>f(!0),children:["\xa3",g]}),(0,i.jsx)(EditPriceModal,{open:x,setOpen:f,category:c,type:d,territory:u,location:m,duration:p,runtime:h,price:g})]})}var v=n(72789);function useGlobalPriceMultiplier(){let{data:e={},...t}=(0,r.Z)(),{globalPriceMultiplier:n=1}=e;return{data:n,...t}}function useUpdateGlobalPriceMulitplier(e){let t=(0,c.NL)();return(0,d.D)(()=>(0,u.bu)(e),{onSuccess:()=>{t.setQueryData(["pricing-table"],function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...t,globalPriceMultiplier:e}})}})}function GlobalPriceMultiplierForm(){let[e,t]=(0,l.useState)(1),{data:n}=useGlobalPriceMultiplier(),{mutate:a,isLoading:r}=useUpdateGlobalPriceMulitplier(e);return(0,l.useEffect)(()=>{t(n)},[n]),(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[(0,i.jsx)(s.II,{value:e,onCh
1ange:e=>t(Number(e.target.value)),placeholder:"Global Price Multiplier",type:"number",step:"0.1",className:"w-64"}),(0,i.jsx)(v.Z,{onClick:()=>a(),loading:r,disabled:e==n,children:"Save"})]})}var j=n(14776),k=n(66112);function Pricing(){let[e,t]=(0,l.useState)(b.bq[0].key),[n,r]=(0,l.useState)(b.Kl[0].key);return(0,i.jsxs)(a.Z,{className:"w-full",children:[(0,i.jsxs)("div",{className:"space-y-4 mb-10",children:[(0,i.jsx)(GlobalPriceMultiplierForm,{}),(0,i.jsx)(j.Z,{items:b.bq.map(e=>{let{name:t,key:n}=e;return{label:t,value:n}}),value:e,onChange:t}),(0,i.jsx)(k.Z,{withTitle:!0,tabs:b.Kl.map(e=>{let{name:t,key:i}=e;return{name:t,active:i==n,onClick:()=>r(i)}})})]}),(0,i.jsxs)("table",{className:"w-full border border-beton/20 [&_td]:p-2 [&_th]:p-2 [&_td]:border [&_th]:border [&_td]:border-beton/20 [&_th]:border-beton/20 [&_th]:text-paper [&_th]:font-bold",children:[(0,i.jsxs)("thead",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{rowSpan:2,children:"License Type"}),(0,i.jsx)("th",{rowSpan:2,children:"License Terms"}),b.lI.map(e=>{let{name:t,key:n}=e;return(0,i.jsx)("th",{colSpan:b.oZ.length,className:"text-center",children:t},n)})]}),(0,i.jsx)("tr",{children:b.lI.map(e=>{let{key:t}=e;return b.oZ.map(e=>{let{name:n,key:a}=e;return(0,i.jsx)("th",{children:n},"".concat(t).concat(a))})})})]}),(0,i.jsx)("tbody",{children:b.IC.map(t=>{let{name:a,key:r,types:l,perpetual:s=!1}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("tr",{children:(0,i.jsx)("th",{className:"text-left !pt-4",children:a})},r),l.map(t=>{let{name:a,key:l,description:o}=t;return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a}),(0,i.jsx)("td",{children:o}),s?(0,i.jsx)("td",{colSpan:b.lI.length*b.oZ.length,children:(0,i.jsx)(Cell,{category:r,type:l,territory:e,location:n,duration:"perpetual",runtime:"fullTrack"})}):b.lI.map(t=>{let{key:a}=t;return(0,i.jsx)(i.Fragment,{children:b.oZ.map(t=>{let{key:s}=t;return(0,i.jsx)("td",{children:(0,i.jsx)(Cell,{category:r,type:l,territory:e,location:n,duration:a,runtime:s})},s)})})})]},l)})]})})})]})]})}},66184:function(e,t,n){"use strict";n.d(t,{E4:function(){return calculateLicensingCostWithTable},iE:function(){return getPricePath}}),n(69569);var i=n(27361),a=n.n(i);function getPricePath(e){let{category:t,type:n,territory:i,location:a,duration:r,runtime:l}=e;return"".concat(t,".").concat(n,".").concat(i,".").concat(a,".").concat(r,".").concat(l)}function calculateLicensingCostWithTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,{territories:n=[],location:{territory:i}={},media:{key:r}={},usage:{key:l}={},duration:{key:s}={},runtime:{key:o}={},format:{cost:c}={}}=e,{globalPriceMultiplier:d=1}=t;return n.map(e=>{let{territory:t}=e;return getPricePath({category:r,type:l,duration:s,runtime:o,territory:t,location:i})}).map(e=>a()(t,e)+c).reduce((e,t)=>e+t,0)*d}}},function(e){e.O(0,[955,3874,3609,2013,5445,8546,6556,5937,7409,4949,7851,8199,7848,9698,7154,2606,6584,6908,8931,5247,9502,5409,236,9774,2888,179],function(){return e(e.s=75291)}),_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.