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]="d70ce733-cf4f-42c0-90d1-9f4d84dcc2d0",e._sentryDebugIdIdentifier="sentry-dbid-d70ce733-cf4f-42c0-90d1-9f4d84dcc2d0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8674],{27484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",i="hour",r="week",a="month",o="quarter",s="year",c="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},g="en",f={};f[g]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var p="$isDayjsObject",m=function(e){return e instanceof x||!(!e||!e[p])},v=function e(t,n,i){var r;if(!t)return g;if("string"==typeof t){var a=t.toLowerCase();f[a]&&(r=a),n&&(f[a]=n,r=a);var o=t.split("-");if(!r&&o.length>1)return e(o[0])}else{var s=t.name;f[s]=t,r=s}return!i&&r&&(g=r),r||!i&&g},w=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},b={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,a),o=n-r<0,s=t.clone().add(i+(o?-1:1),a);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(d){return({M:a,y:s,w:r,d:"day",D:c,h:i,m:n,s:t,ms:e,Q:o})[d]||String(d||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=v,b.i=m,b.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function h(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[p]=!0}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(l);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return b},g.isValid=function(){return this.$d.toString()!==d},g.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return w(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<w(e)},g.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,o){var d=this,l=!!b.u(o)||o,u=b.p(e),h=function(e,t){var n=b.w(d.$u?Date.UTC(d.$y,t,e):new Date(d.$y,t,e),d);return l?n:n.endOf("day")},g=function(e,t){return b.w(d.toDate()[e].apply(d.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),d)},f=this.$W,p=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case s:return l?h(1,0):h(31,11);case a:return l?h(1,p):h(0,p+1);case r:var w=this.$locale().weekStart||0,x=(f<w?f+7:f)-w;return h(l?m-x:m+(6-x),p);case"day":case c:return g(v+"Hours",0);case i:return g(v+"Minutes",1);case n:return g(v+"Seconds",2);case t:return g(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(r,o){var d,l=b.p(r),u="set"+(this.$u?"UTC":""),h=((d={}).day=u+"Date",d[c]=u+"Date",d[a]=u+"Month",d[s]=u+"FullYear",d[i]=u+"Hours",d[n]=u+"Minutes",d[t]=u+"Seconds",d[e]=u+"Milliseconds",d)[l],g="day"===l?this.$D+(o-this.$W):o;if(l===a||l===s){var f=this.clone().set(c,1);f.$d[h](g),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](g);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[b.p(e)]()},g.add=function(e,o){var c,d=this;e=Number(e);var l=b.p(o),u=function(t){var n=w(d);return b.w(n.date(n.date()+Math.round(t*e)),d)};if(l===a)return this.set(a,this.$M+e);if(l===s)return this.set(s,this.$y+e);if("day"===l)return u(1);if(l===r)return u(7);var h=((c={})[n]=6e4,c[i]=36e5,c[t]=1e3,c)[l]||1,g=this.$d.getTime()+e*h;return b.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,h=n.meridiem,g=function(e,n,r,a){return e&&(e[
1n]||e(t,i))||r[n].slice(0,a)},f=function(e){return b.s(a%12||12,e,"0")},p=h||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(u,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return g(n.monthsShort,s,l,3);case"MMMM":return g(l,s);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return g(n.weekdaysMin,t.$W,c,2);case"ddd":return g(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return b.s(a,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return p(a,o,!0);case"A":return p(a,o,!1);case"m":return String(o);case"mm":return b.s(o,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},g.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},g.diff=function(e,c,d){var l,u=this,h=b.p(c),g=w(e),f=(g.utcOffset()-this.utcOffset())*6e4,p=this-g,m=function(){return b.m(u,g)};switch(h){case s:l=m()/12;break;case a:l=m();break;case o:l=m()/3;break;case r:l=(p-f)/6048e5;break;case"day":l=(p-f)/864e5;break;case i:l=p/36e5;break;case n:l=p/6e4;break;case t:l=p/1e3;break;default:l=p}return d?l:b.a(l)},g.daysInMonth=function(){return this.endOf(a).$D},g.$locale=function(){return f[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=v(e,t,!0);return i&&(n.$L=i),n},g.clone=function(){return b.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),y=x.prototype;return w.prototype=y,[["$ms",e],["$s",t],["$m",n],["$H",i],["$W","day"],["$M",a],["$y",s],["$D",c]].forEach(function(e){y[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e.$i||(e(t,x,w),e.$i=!0),w},w.locale=v,w.isDayjs=m,w.unix=function(e){return w(1e3*e)},w.en=f[g],w.Ls=f,w.p={},w},e.exports=t()},62554:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i=[{id:"price_1RngATD8sm7g64NbaeAsGhyb",img:"/cart/plan5.svg"},{id:"price_1RngATD8sm7g64NboTuMA08s",img:"/cart/plan1.svg"},{id:"price_1RngIND8sm7g64NbA5IILIjL",img:"/cart/plan13.svg"},{id:"price_1RngIND8sm7g64NboogpVe0g",img:"/cart/plan9.svg"},{id:"price_1RngEZD8sm7g64NbeT8Cg05m",img:"/cart/plan6.svg"},{id:"price_1RngCQD8sm7g64Nb5GZ8WBBk",img:"/cart/plan2.svg"},{id:"price_1RngK2D8sm7g64Nbq1wyINbx",img:"/cart/plan14.svg"},{id:"price_1RngK2D8sm7g64Nbv2j1x4Cx",img:"/cart/plan10.svg"},{id:"price_1RngFsD8sm7g64NbvR2J3qIc",img:"/cart/plan7.svg"},{id:"price_1RngFsD8sm7g64Nbny8B7oMM",img:"/cart/plan3.svg"},{id:"price_1RngLGD8sm7g64NbvUFP9MAD",img:"/cart/plan15.svg"},{id:"price_1RngLGD8sm7g64NbYvAV9lwm",img:"/cart/plan11.svg"},{id:"price_1RsI92D8sm7g64NbwLBfn6wi",img:"/cart/plan8.svg"},{id:"price_1RsI97D8sm7g64NbvPrgRtwa",img:"/cart/plan8.svg"},{id:"price_1RsI99D8sm7g64Nb3wS7Gv3o",img:"/cart/plan8.svg"},{id:"price_1RsI9DD8sm7g64NbNMAVW1LJ",img:"/cart/plan8.svg"},{id:"price_1RsI92D8sm7g64Nb9RPnKTDN",img:"/cart/plan4.svg"},{id:"price_1RsI97D8sm7g64NbT7WnSk5M",img:"/cart/plan4.svg"},{id:"price_1RsI9AD8sm7g64NbNcmt4lYH",img:"/cart/plan4.svg"},{id:"price_1RsI9DD8sm7g64NbMV4IGXG3",img:"/cart/plan4.svg"},{id:"price_1RsI9QD8sm7g64NbyZD5kn7C",img:"/cart/plan12.svg"},{id:"price_1RsI9OD8sm7g64NbbP3yIZp7",img:"/cart/plan12.svg"},{id:"price_1RsI9LD8sm7g64NbxpwCCMjb",img:"/cart/plan12.svg"},{id:"price_1RsI9GD8sm7g64NbMJfdonsI",img:"/cart/plan12.svg"},{id:"price_1RsI9QD8sm7g64NbaIWGVCJR",img:"/cart/plan16.svg"},{id:"price_1RsI9OD8sm7g64NbPmmoCmTI",img:"/cart/plan16.svg"},{id:"price_1RsI9LD8sm7g64Nb56hbLQbJ",img:"/cart/plan16.svg"},{id:"price_1RsI9GD8sm7g64NbHHbUoVW9",img:"/cart/plan16.svg"}]},30687:function(e,t,n){"use strict";var i=n(62364),r=n(67294),a=n(15437),o=n(85717),s=n(29496),c=n(61312),d=n(5810),l=n(9835);let u=a.ZP.div.withConfig({componentId:"sc-7020e616-0"})(["padding:2rem 0;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:2rem;"]),h=a.ZP.div.withConfig({componentId:"sc-7020e616-1"})(["display:flex;flex-direction:column;gap:16px;width:80%;max-width:500px;margin:auto;"]),g=a.ZP.div.withConfig({componentId:"sc-7020e616-2"})(["display:flex;align-items:center;"]),f=a.ZP.img.withConfig({componentId:"sc-7020e616-3"})(["width:20px;height:20px;margin-right:8px;"]),p=a.ZP.input.withConfig({componentId:"sc-7020e616-4"})(["flex:1;padding:8px;font-size:16px;border:1px solid #ccc;border-radius:4px;&:focus{outline:none;border-color:#007bff;}"]),m=a.ZP.button.withConfig({componentId:"sc-7020e616-5"})(["padding:10px 20px;font-size:16px;color:white;background-color:",";border:none;border-radius:4px;cursor:",";margin-top:16px;width:15rem;"],e=>{let{disabled:t}=e;return t?o.Z.naviGray.light:o.Z.naviPurple.main},e=>{let{disabled:t}=e;return t?"not-allowed":"pointer"}),v=a.ZP.p.withConfig({componentId:"sc-7020e616-6"})(["color:",";font-size:14px;margin-top:8px;"],()=>o.Z.naviPink.main);t.Z=e=>{let{type:t,activeChannels:n,customer_id:a,subscription_id:o,video_id:w,closePopup:b}=e,{fetchUserPurchaseData:x}=(0,d.iQ)(),[y,Z]=(0,r.useState)([]),[_,D]=(0,r.useState)(!1),$=t.includes("Social Media"),I=$?n:[{name:"Website",icon:{url:"/images/internet.png"}}],C=e=>t=>{let n=t.target.value;Z(t=>{let i=t.find(t=>t.channel_name===e);return n?i?t.map(t=>t.channel_name===e?{...t,channel_url:n}:t):[...t,{channel_name:e,channel_url:n}]:t.filter(t=>t.channel_name!==e)})},M=async e=>{try{D(!0);let t=await l.Z.post("/api/customer/save-channels?video_id=".concat(w),{channels:e});if(200!==t.status)throw Error("Failed to save channels");x(null),(0,s.yv)("Channels saved successfully!",{variant:"success"})}catch(e){(0,s.yv)("Error saving channels: ",{variant:"error"})}finally{D(!1)}};(0,r.useEffect)(()=>{Z([])},[$]);let S=async()=>{let e;y.length>
10&&(e=!0,y.forEach(t=>{t.channel_url&&""!==t.channel_url.trim().replace(/\s+/g," ")?t.channel_url=t.channel_url.trim().replace(/\s+/g," "):e=!1}),e)?(await M(y),b()):(Z([]),(0,s.yv)("Error: Please enter a valid channel",{variant:"error"}))};return((0,r.useEffect)(()=>{let e=e=>{"Enter"===e.key&&(e.preventDefault(),S())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[y]),_)?(0,i.tZ)(c.Z,{message:"Saving channels..."}):(0,i.BX)(u,{children:[(0,i.tZ)("h2",{children:"Please add your channels"}),(0,i.BX)(h,{children:[I.map(e=>{var t;let{name:n,icon:r}=e;return(0,i.BX)(g,{children:[(0,i.tZ)(f,{src:r.url,alt:"".concat(n," icon")}),(0,i.tZ)(p,{type:"text",placeholder:"Enter your ".concat(n),onChange:C(n),value:(null===(t=y.find(e=>e.channel_name===n))||void 0===t?void 0:t.channel_url)||""})]},n)}),0===y.length&&(0,i.tZ)(v,{children:"Please enter information in at least one field to save channels."}),(0,i.BX)("div",{style:{display:"flex",justifyContent:"space-around"},children:[(0,i.tZ)(m,{onClick:S,disabled:0===y.length,children:"Save"}),(0,i.tZ)(m,{onClick:()=>{Z([])},disabled:0===y.length,children:"Reset"})]})]})]})}},89600:function(e,t,n){"use strict";var i=n(62364),r=n(67294),a=n(15437),o=n(233),s=n(13049);let c=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-0"})(["display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;background:rgb(23,115,235);position:relative;background-color:rgba(70,80,99,0.1);font-size:12px;font-weight:400;padding:1.5rem 3rem;box-sizing:border-box;*{color:rgba(70,80,99,1);padding:0;margin:0;}a{font-weight:700;text-decoration:none;}"]),d=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-1"})(["color:white;"]),l=a.ZP.div.withConfig({componentId:"sc-24a7eb8e-2"})(["position:absolute;right:1.5rem;"]);t.Z=e=>{let{banner:t}=e,[n,a]=r.useState(!0),{closable:u,content:h}=t;return n?(0,i.BX)(c,{children:[(0,i.tZ)(d,{className:"intro",dangerouslySetInnerHTML:{__html:null!=h?h:""}}),u&&(0,i.tZ)(l,{children:(0,i.tZ)(o.Z,{onClick:()=>a(!1),title:"Close Banner",icon:(0,i.tZ)(s.Z,{}),styles:{border:"0px",padding:0}})})]}):null}},77778:function(e,t,n){"use strict";n.d(t,{z:function(){return S}});var i=n(62364),r=n(15437),a=n(25675),o=n.n(a),s=n(92729),c=n(67294),d=n(34091),l=n(96597),u=n(41664),h=n.n(u),g=n(85717),f=n(47041),p=n(91600),m=n(30687),v=n(27484),w=n.n(v),b=n(9835),x=n(22283),y=n(85918);let Z=r.ZP.div.withConfig({componentId:"sc-d722c865-0"})(["border:1px solid #e0e0e0;border-radius:15px;padding:3rem;margin:2rem;width:100%;box-shadow:0 2px 4px rgba(0,0,0,0.1);height:160rem;max-height:",";box-sizing:border-box;position:relative;transition:0.5s ease all;.content{max-height:18rem;display:flex;align-items:center;}"],e=>e.expanded?"33rem":"18rem"),_=r.ZP.div.withConfig({componentId:"sc-d722c865-1"})(["flex-shrink:0;margin-right:20px;"]),D=r.ZP.div.withConfig({componentId:"sc-d722c865-2"})(["width:30rem;"]),$=r.ZP.h2.withConfig({componentId:"sc-d722c865-3"})(["margin:0;margin-left:2rem;font-size:2rem;font-weight:500;"]),I=r.ZP.div.withConfig({componentId:"sc-d722c865-4"})(["margin:10px 0;color:#777;font-size:1.4rem;font-weight:300;display:flex;flex-direction:column;gap:0.5rem;margin-left:2rem;"]),C=r.ZP.div.withConfig({componentId:"sc-d722c865-5"})([""]),M=r.ZP.div.withConfig({componentId:"sc-d722c865-6"})(["display:flex;margin-left:2rem;gap:1.5rem;flex-grow:1;"]),S=(0,r.ZP)(h()).withConfig({componentId:"sc-d722c865-7"})(["text-decoration:none;background-color:#000;color:white;border:none;border:1px solid #fff;border-radius:25px;margin-right:10px;cursor:pointer;font-size:1.2rem;font-weight:300;display:flex;align-items:center;gap:1rem;justify-content:center;width:17.5rem;height:3rem;transition:0.2s ease all;"," cursor:",";opacity:",";"],e=>!e.disabled&&"\n &:hover {\n background-color: #fff;\n border: 1px solid #000;\n color: #000;\n }\n ",e=>e.disabled?"not-allowed":"pointer",e=>e.disabled?"0.5":"1");r.ZP.button.withConfig({componentId:"sc-d722c865-8"})(["background-color:#000;color:white;border:none;border:1px solid #fff;border-radius:25px;margin-right:10px;cursor:pointer;font-size:1.2rem;font-weight:300;display:flex;align-items:center;gap:1rem;justify-content:center;width:17.5rem;height:3rem;transition:0.2s ease all;&:hover{background-color:#fff;border:1px solid #000;color:#000;}"]),r.ZP.span.withConfig({componentId:"sc-d722c865-9"})(["color:",";font-size:1rem;line-height:1.2rem;"],()=>g.Z.naviPink.main);let k=r.ZP.div.withConfig({componentId:"sc-d722c865-10"})(["display:flex;flex-direction:column;gap:0.5rem;
1max-width:200px;"]),P=r.ZP.button.withConfig({componentId:"sc-d722c865-11"})(["background-color:transparent;color:#465063;border-radius:25px;border:1px solid #4650634d;margin-right:10px;cursor:pointer;font-size:1.2rem;font-weight:300;display:flex;gap:0.5rem;align-items:center;justify-content:center;transition:0.2s ease all;height:3rem;width:11rem;&.close{position:absolute;top:0rem;right:0rem;margin:0;}&:hover{background-color:#dddddd30;color:#000;}"]);r.ZP.div.withConfig({componentId:"sc-d722c865-12"})(["font-size:2rem;font-weight:200;margin-left:20px;"]);let N=r.ZP.div.withConfig({componentId:"sc-d722c865-13"})(["margin-top:4rem;position:relative;"]),R=r.ZP.div.withConfig({componentId:"sc-d722c865-14"})(["font-size:1.1rem;text-transform:uppercase;color:#465063;margin-bottom:0.5rem;font-weight:200;"]),B=r.ZP.p.withConfig({componentId:"sc-d722c865-15"})(["color:#465063;margin-top:2rem;font-size:1.4rem;font-weight:300;"]),L=r.ZP.div.withConfig({componentId:"sc-d722c865-16"})(["width:100%;padding:0 15px;"]),O=r.ZP.div.withConfig({componentId:"sc-d722c865-17"})(["padding:15px;width:100%;background:#fff;margin-bottom:20px;border-radius:5px;display:flex;justify-content:center;align-items:center;box-shadow:0 3px 4px 0 rgba(0,0,0,0.14),0 3px 3px -2px rgba(0,0,0,0.2),0 1px 8px 0 rgba(0,0,0,0.12);"]),E=r.ZP.div.withConfig({componentId:"sc-d722c865-18"})(["height:130px;max-width:100%;width:130px;border-radius:5px;background:rgba(130,130,130,0.2);background:linear-gradient( to right,rgba(130,130,130,0.2) 8%,rgba(130,130,130,0.3) 18%,rgba(130,130,130,0.2) 33% );background-size:800px 100px;animation:wave-squares 2s infinite ease-out;"]),X=r.ZP.div.withConfig({componentId:"sc-d722c865-19"})(["height:12px;border-radius:2px;background:rgba(130,130,130,0.2);background:linear-gradient(to right,rgba(130,130,130,0.2) 8%,rgba(130,130,130,0.3) 18%,rgba(130,130,130,0.2) 33%);background-size:800px 100px animation:wave-lines 2s infinite ease-out;margin-bottom:",";width:",";"],e=>e.marginBottom||"6px",e=>e.width||"100%"),H=r.ZP.div.withConfig({componentId:"sc-d722c865-20"})(["flex:2;padding-right:15px;max-width:170px;"]),z=r.ZP.div.withConfig({componentId:"sc-d722c865-21"})(["flex:1;"]),A=r.ZP.div.withConfig({componentId:"sc-d722c865-22"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;.price{color:#465063;width:max-content;font-size:2rem;font-weight:200;margin:0;}.status{color:rgba(70,80,99,0.5);font-size:1rem;font-weight:300;letter-spacing:1.4px;text-transform:uppercase;margin-top:0.5rem;max-width:20rem;text-align:center;}"]);t.Z=e=>{let{item:t,sessionId:n,activeChannels:r,set_IsLoading:a,loaderState:u=!1}=e,{videoId:h,purchase_date:g,purchase_price:v,receipt:Y,stripeSubscriptionDetail:T}=t,{user:j}=(0,y.a)(),[U,W]=(0,c.useState)(""),[V,G]=(0,c.useState)(""),[J,F]=(0,c.useState)(""),[Q,q]=(0,c.useState)(""),[K,ee]=(0,c.useState)(""),[et,en]=(0,c.useState)(!0),[ei,er]=(0,c.useState)(!1),[ea,eo]=(0,c.useState)(null),[es,ec]=(0,c.useState)(!1),[ed,el]=(0,c.useState)(!1),[eu,eh]=(0,c.useState)(!1),[eg,ef]=(0,c.useState)(null),[ep,em]=(0,c.useState)(!1),[ev,ew]=(0,c.useState)(""),eb=async e=>{el(!1),e&&await ex().finally(()=>ey())},ex=async()=>{en(!0);try{var e,t,n;let i=(await s.Z.get("/api/media/videos/get-single-video?videoId=".concat(h))).data.video;W(null!==(e=null==i?void 0:i.title)&&void 0!==e?e:""),G(null!==(t=null==i?void 0:i.thumbnail)&&void 0!==t?t:""),F(null!==(n=null==i?void 0:i.created_at)&&void 0!==n?n:"unknow"),q(null==i?void 0:i.location_name),ee(null==i?void 0:i.description);let r=(null==i?void 0:i.original_file)||(null==i?void 0:i.ultra_high_res_file)||(null==i?void 0:i.high_res_file)||(null==i?void 0:i.production_file)||(null==i?void 0:i.standard_res_file)||(null==i?void 0:i.compressed_file)||(null==i?void 0:i.low_res_file)||(null==i?void 0:i.preview_file)||"#";console.log("DownloadURL",r),eo(r)}catch(e){console.error("Error fetching data:",e)}finally{em(!0)}};(0,c.useEffect)(()=>{ex()},[h]);let ey=async()=>{try{var e,t;en(!0);let i=await b.Z.get("/api/customer/get-single-purchase",{params:{customer_id:ev,cart_id:n}});console.log("fetchPurchaseInfo ==>",null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.data);let r=(0,x.p)(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.data),a=null==(r=JSON.parse(r))?void 0:r.purchases.find(e=>e.cart_id===n);if(a)for(let e of a.products){let t=e.videos;if(t&&t.length>0&&t.find(e=>String(e.video_id)===String(h))){let t=e.subscription_id;ef(t),ec(!0);break}}else console.warn("Can not find cart_id:",n)}catch(e){console.error("Error fetching customer purchases:",e)}finally{en(!1),eh(!0),u&&a()}},eZ=async e=>{if(e.preventDefault(),ea&&"#"!==ea)try{let e=await fetch(ea),t=await e.blob(),n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download="".concat(U||"video",".mp4"),document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(n),document.body.removeChild(i)}catch(e){console.error("Download failed:",e),window.open(ea,"_blank")}};return((0,c.useEffect)(()=>{(async()=>{let e=null;void 0!=window&&(e=localStorage.getItem("dbuser"));
1let t=await (0,f.getCookie)("dbuser")||e,n=t?JSON.parse(t):void 0;ew(null==n?void 0:n.customer_id)})()},[j]),(0,c.useEffect)(()=>{!eu&&ep&&ey()},[n,h,ev,eu,ep]),et)?(0,i.tZ)(()=>(0,i.tZ)(L,{children:(0,i.BX)(O,{children:[(0,i.tZ)(H,{children:(0,i.tZ)(E,{})}),(0,i.BX)(z,{children:[(0,i.tZ)(X,{className:"h17 w40 m10",height:"17px",width:"40%"}),(0,i.tZ)(X,{}),(0,i.tZ)(X,{height:"8px",width:"50%"}),(0,i.tZ)(X,{width:"75%",marginBottom:"0"})]})]})}),{}):(0,i.BX)(i.HY,{children:[(0,i.BX)(Z,{expanded:ei,children:[(0,i.BX)("div",{className:"content",children:[(0,i.tZ)(_,{children:(0,i.tZ)(o(),{src:V,alt:U,width:133,height:119,className:" rounded-[8px] object-cover h-[130px] w-[130px]"})}),(0,i.BX)(D,{children:[(0,i.tZ)($,{children:U}),(0,i.BX)(I,{children:[(0,i.tZ)(C,{children:w()(g).format("MMMM-DD-YYYY")}),(0,i.BX)(C,{children:["PURCHASE ID: ",null==n?void 0:n.slice(-20)]})]})]}),(0,i.BX)(M,{children:[Y&&(0,i.BX)(S,{href:Y,target:"_blank",children:[(0,i.tZ)(d.Z,{})," ",(0,i.tZ)("span",{children:"Download Receipt"})]}),es&&ea&&(0,i.tZ)(k,{children:(0,i.BX)(S,{href:ea,target:"_blank",onClick:eZ,rel:"noopener",children:[(0,i.tZ)(l.Z,{}),(0,i.tZ)("span",{children:"Download Asset"})]})}),!ei&&(0,i.BX)(P,{onClick:()=>er(!0),children:[(0,i.tZ)("span",{children:"+"}),(0,i.tZ)("span",{children:"Details"})]})]}),(0,i.BX)(A,{children:[(0,i.BX)("p",{className:"price",children:[v.toLocaleString("en-US",{style:"currency",currency:"USD"})," ","USD"]}),T&&(0,i.tZ)("p",{className:"status",children:T})]})]}),ei&&(0,i.BX)(N,{children:[(0,i.tZ)(R,{children:"Video"}),(0,i.BX)(R,{children:["PUBLISHED: ",J," - LOCATION: ",Q]}),(0,i.tZ)(B,{children:K}),(0,i.BX)(P,{className:"close",onClick:()=>er(!1),children:[(0,i.tZ)("span",{children:"-"}),(0,i.tZ)("span",{children:"Less"})]})]})]}),ed&&eg&&(0,i.tZ)(p.Z,{isOpen:ed,onClose:()=>eb(!1),children:T&&n&&(0,i.tZ)(m.Z,{type:T,activeChannels:r,customer_id:ev,video_id:h,subscription_id:eg,closePopup:()=>eb(!0)})})]})}},96597:function(e,t,n){"use strict";var i=n(62364);n(67294),t.Z=e=>{var t;return(0,i.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",...e,children:[(0,i.BX)("g",{fill:null!==(t=e.color)&&void 0!==t?t:"#2AEFE0",clipPath:"url(#a)",children:[(0,i.tZ)("path",{d:"M5.67 8.797c.045.045.09.075.15.105s.12.03.18.03.12-.015.18-.03c.06-.03.105-.06.15-.105l3.285-3.293a.473.473 0 0 0 0-.662.47.47 0 0 0-.66 0l-2.49 2.496V.466A.468.468 0 0 0 6 0a.468.468 0 0 0-.465.466v6.857l-2.49-2.48a.47.47 0 0 0-.66 0 .473.473 0 0 0 0 .66L5.67 8.798Z"}),(0,i.tZ)("path",{d:"M11.535 8a.468.468 0 0 0-.465.466 2.583 2.583 0 0 1-2.58 2.587H3.525a2.583 2.583 0 0 1-2.58-2.587A.468.468 0 0 0 .48 8C.225 8 0 8.21 0 8.466A3.535 3.535 0 0 0 3.525 12H8.49C10.425 12 12 10.421 12 8.466A.468.468 0 0 0 11.535 8Z"})]}),(0,i.tZ)("defs",{children:(0,i.tZ)("clipPath",{id:"a",children:(0,i.tZ)("path",{fill:"#fff",d:"M0 0h12v12H0z"})})})]})}},34091:function(e,t,n){"use strict";var i=n(62364);n(67294),t.Z=e=>(0,i.BX)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",...e,children:[(0,i.BX)("g",{fill:"#2AEFE0",clipPath:"url(#a)",children:[(0,i.tZ)("path",{d:"M8.46 3.383h-.954v.964h.954v-.964ZM8.46 6.764h-.954v.964h.954v-.964Z"}),(0,i.tZ)("path",{d:"M7.174 11.309 5.5 13l-1.674-1.691L2.15 13 0 10.827v-9.5C0 .597.59 0 1.314 0h8.372C10.41 0 11 .596 11 1.327v9.5L8.849 13l-1.675-1.691Zm1.675.33 1.197-1.21V1.328c0-.2-.161-.363-.36-.363H1.314a.362.362 0 0 0-.36.363v9.103l1.197 1.209 1.675-1.691 1.674 1.69 1.674-1.69 1.675 1.69Z"}),(0,i.tZ)("path",{d:"M6.283 3.383H2.48v.964h3.804v-.964ZM6.283 6.764H2.48v.964h3.804v-.964Z"})]}),(0,i.tZ)("defs",{children:(0,i.tZ)("clipPath",{id:"a",children:(0,i.tZ)("path",{fill:"#fff",d:"M0 0h11v13H0z"})})})]})}}]);
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.