text: "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62325],{82166:function(e,n,t){t.d(n,{vG:function(){return u},fp:function(){return s},lR:function(){return l},qG:function(){return d},KW:function(){return v},VC:function(){return p},ok:function(){return f}});var r=t(2448),a=t(80336),i=t(34856),o=t(11409),c=[a.pX],u=function(e){return i.n5?"".concat(e,"?ip=x480"):e},s=function(e){var n,t,r;return null!==e&&void 0!==e&&e.mediaItem?{previewImageUrl:null===(t=e.mediaItem)||void 0===t?void 0:t.previewImageUrl,previewVideoUrls:null===(r=e.mediaItem)||void 0===r?void 0:r.previewVideoUrls}:{previewImageUrl:(null===e||void 0===e?void 0:e.thumbImageUrl)||(null===e||void 0===e||null===(n=e.image)||void 0===n?void 0:n.url)||(null===e||void 0===e?void 0:e.previewImageUrl),previewVideoUrls:null===e||void 0===e?void 0:e.previewVideoUrls}},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.Am)(e);if(!n)return e.src;var t=s(e),r=t.previewImageUrl;return u(r)},d=function(e){switch(e.assetType){case a.pX:return"mp4";default:return null}},v=function(e){var n=e.asset;return c.includes((0,o.Tp)(n))&&!(0,o.so)(n)},p=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,o.EK)(t),i=a?r.bm:r.RA;return null===t||void 0===t||null===(e=t.displays)||void 0===e||null===(n=e[i])||void 0===n?void 0:n.src},f=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,o.Tp)(t);return i===a.k4?(null===t||void 0===t||null===(e=t.displays)||void 0===e||null===(n=e[r.bm])||void 0===n?void 0:n.src)||(null===t||void 0===t?void 0:t.src):i===a.xF?null===t||void 0===t?void 0:t.previewMp3:null}},13991:function(e,n,t){t.d(n,{i:function(){return w}});var r=t(30266),a=t(809),i=t.n(a),o=t(67294),c=t(11409),u=t(72444),s=t(59125),l=t(26636),d=t(65806),v=t(94790),p=t(96078),f=t(39012),w=function(e){var n=e.asset,t=e.clickAnalyticsLabels,a=void 0===t?{}:t,w=e.shouldSetLocalStorage,h=void 0!==w&&w,b=(0,o.useState)(!1),k=b[0],m=b[1],y=(0,d.B)(),g=(0,p.c)(),x=(0,l.N)(),O=x.triggerDownloadPreview,C=x.isDownloading,P=function(e){var n=e.asset,t=e.clickAnalyticsLabels,r=(0,u.U)(),a=(0,s.t)(),i=(0,o.useCallback)((function(){r({assets:[n],isComp:!1,isPaid:!1,isQuickDownload:!1,isRedownload:!1})}),[n,r]);return{analyticsInlineClick:(0,o.useCallback)((function(){var e=t.tryButton;return a(e)}),[a,t]),analyticsProductDownloaded:i}}({asset:n,clickAnalyticsLabels:a}),j=P.analyticsInlineClick,U=P.analyticsProductDownloaded;return{isActionInProgress:C,tryButtonClickHandler:(0,o.useCallback)((0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y){e.next=5;break}j(),v.j&&(h&&(0,f.oe)(n),window.location.href=g),e.next=12;break;case 5:if(!(0,c.w5)(n)){e.next=9;break}m(!0),e.next=12;break;case 9:return U(),e.next=12,O({asset:n});case 12:case"end":return e.stop()}}),e)}))),[j,U,n,y,h,g,O]),isMusicPreviewModalOpen:k,setIsMusicPreviewModalOpen:m}}},59125:function(e,n,t){t.d(n,{t:function(){return i}});var r=t(67294),a=t(29996),i=function(){var e=(0,a.yh)().analytics;return(0,r.useCallback)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.pageSection,r=n.eventLabel;return t&&r&&e.inlineClick("".concat(t,".").concat(r))}),[e])}},26636:function(e,n,t){t.d(n,{N:function(){return x}});var r=t(92809),a=t(30266),i=t(809),o=t.n(i),c=t(67294),u=t(88789),s=t(80336),l=t(75307),d=t(11409),v=t(82166),p=t(39012),f=t(85884),w=function(){var e=(0,a.Z)(o().mark((function e(n,r){var a,i,c,u,s,l,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.g,c=i.fetch,u=i.document,s=i.URL,e.next=3,c(n,{cache:"no-cache",mode:"cors",credentials:"omit"});case 3:return l=e.sent,d=u.createElement("a"),e.t0=s,e.next=8,l.blob();case 8:return e.t1=e.sent,d.href=e.t0.createObjectURL.call(e.t0,e.t1),d.download=null!==(a=null!==r&&void 0!==r?r:n.split("/").pop())&&void 0!==a?a:"download",u.body.appendChild(d),d.click(),d.remove(),e.abrupt("return",d);case 15:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),h=new RegExp("\\s","g"),b="preview",k="_",m=function(e){var n=e.id,t=e.title;return"".concat(n).concat(k).concat(t.replace(h,"-").toLowerCase()).concat(k).concat(b)},y=function(e,n){var t=e.id,r=e.title;return"".concat(t).concat(k).concat(r.replace(h,"-").toLowerCase()).concat(k).concat("short").concat(n).concat(k).concat(b)},g=t(12679),x=function(){var e=(0,c.useState)(null),n=e[0],t=e[1],i=(0,c.useState)(!1),h=i[0],b=i[1],k=(0,c.useState)(null),x=k[0],O=k[1],C=(0,c.useCallback)(function(){var e=(0,a.Z)(o().mark((function e(n){var r,a,i,c,s,l,p;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.asset,a=(0,d.Tp)(r),i={data:[{media_id:r.id,media_type:a,media_size:"preview",media_format:(0,v.qG)({assetType:a})}]},e.prev=3,b(!0),e.next=7,f.uS.post((0,u.u8)().formattedUrl,i);case 7:s=e.sent,l=s.data,p=l.data[0].attributes,c=p.url,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),t(e.t0);case 16:return e.prev=16,b(!1),e.finish(16);case 19:return e.abrupt("return",c);case 20:case"end":return e.stop()}}),e,null,[[3,13,16,19]])})));return function(n){return e.apply(this,arguments)}}(),[]),P=(0,c.useCallback)(function(){var e=(0,a.Z)(o().mark((function e(n){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({asset:n});case 2:(t=e.sent)&&(0,g.l_)(t);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[C]),j=(0,c.useCallback)(function(){var e=(0,a.Z)(o().mark((function e(n){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m(n),b(!0),e.next=4,w((0,v.ok)(n),t);case 4:b(!1);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[]),U=(0,c.useMemo)((function(){var e;return e={},(0,r.Z)(e,s.k4,(function(e){return w((0,v.ok)(e))})),(0,r.Z)(e,s.xF,j),(0,r.Z)(e,s.Xy,(function(e){return(0,p.A_)((0,v.ok)(e),{target:"_blank"})})),(0,r.Z)(e,s.pX,P),e}),[j,P]);return{triggerDownloadPreview:function(){var e=(0,a.Z)(o().mark((function e(n){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.asset,e.abrupt("return",(0,d.EK)(r)?U[s.Xy](r):null===(t=U[(0,d.Tp)(r)])||void 0===t?void 0:t.call(U,r));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),triggerDownloadShortsPreview:function(){var e=(0,a.Z)(o().mark((function e(n){var t,r,a,i,c,u,s,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.asset,i=n.size,c=l.wZ.indexOf(i),u=null===a||void 0===a||null===(t=a.trackAssets)||void 0===t||null===(r=t.shorts)||void 0===r?void 0:r[c],s=u.externalUrl,d=y(a,i),O(i),e.next=7,w(s.replace("http://","https://"),d);case 7:O(null);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),isDownloading:h,shortDownloading:x,error:n}}},63522:function(e,n,t){t.d(n,{X:function(){return u}});var r=t(92809),a=t(63786),i=t(85893);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var c=(0,a.Z)((0,i.jsx)("path",{d:"M15.667 7.6C7.267-.96-2.92 9.427 5.48 17.987l10.187 10.387L25.84 17.987C34.28 9.334 24.093-1 15.667 7.6zM24 16.12l-8.267 8.44-8.347-8.44c-2.147-2.187-2.893-4.6-2.053-6.613.596-1.443 1.992-2.44 3.621-2.44h.062-.003c1.907.142 3.58 1.039 4.739 2.391l.008.009 1.907 1.947 1.893-1.947c1.179-1.377 2.871-2.285 4.777-2.425l.023-.001h.029c1.626 0 3.021.99 3.615 2.401l.01.026c.84 2.027.093 4.453-2.013 6.653z"}),"Heart.svg"),u=function(e){return(0,i.jsx)(c,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({viewBox:"0 0 32 32"},e))}}}]);