1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4137],{44137:(e,t,s)=>{"use strict";s.d(t,{A:()=>X});var l=s(37876),i=s(14232),n=s(58487),a=s(81195),o=s(56661),r=s(89099),c=s(97851),d=s.n(c),h=s(1075),u=s(71410),m=s(37526),x=s(53607),p=s(15852),_=s(65754),j=s(71733),y=s(58549),C=s(87701),g=s(80553),v=s(67906),P=s(65106),b=s(26250),N=s(13480),w=s(46608),S=s(89850),f=s(83016),A=s.n(f),D=s(2491),B=s.n(D),T=s(60966),k=s(24925),I=s(68423),M=s(69980),E=s(80208),H=function(e){return e[e.Delete=0]="Delete",e[e.Public=1]="Public",e[e.Private=6]="Private",e}({}),F=s(72807),O=s(99853),U=s(20883),R=s(68236),L=s(10663),z=s(52186),Y=s.n(z);let{publicRuntimeConfig:{assets:W}}=A()();function X(e){let{link:t,image:s,title:c,titleColor:f="red",user:A=null,position:D=null,date:z=null,size:X=null,downloads:K=null,totalDownloads:V=null,plays:q=null,musics:J=null,isPlaylist:G=null,isAlbum:Z=null,expandInfo:Q=null,tags:$=null,infoPeriod:ee=null,editableAlbum:et=!1,sendDate:es=null,released:el=null,isPinned:ei=!1,id:en=null,index:ea=null,deleteButton:eo=null,analyticsParameters:er=null,onClickHighlighted:ec=null,onClickRemoveAlbum:ed=null,onClickPrivate:eh=null,onClickCDNotListed:eu=null,description:em=null,isScheduled:ex=null}=e,ep=(0,o.useTranslations)("Shared"),{locale:e_,push:ej}=(0,r.useRouter)(),{user:ey}=(0,i.useContext)(O.cy),[eC,eg]=(0,i.useState)(!1),[ev,eP]=(0,i.useState)(!1),[eb,eN]=(0,i.useState)(!1),[ew,eS]=(0,i.useState)(0===ea),[ef,eA]=(0,i.useState)(!1),[eD,eB]=(0,i.useState)([]),[eT,ek]=(0,i.useState)(""),eI=(0,k.N$)("(max-width: 768px)"),eM=()=>{if(er){let e=(0,I.L)(er);M.F.logEvent(e)}},eE=()=>"pt-BR"===e_?m.A:"es"===e_?x.A:null,eH=async e=>{var t,s;e.preventDefault();let{playlistTitle:l}=e.currentTarget;if(eA(!1),c===l.value&&!(null==(t=eD[0])?void 0:t.file))return void B().fire({icon:"error",title:"Oops...",text:ep("NoChangeIn",{locale:e_}).toString(),customClass:{container:"modal",actions:"containerButtonBlue"}});let{status:i,message:n}=await L.h.updatePlaylist(en,c!==l.value?l.value:"",[],[],null==(s=eD[0])?void 0:s.file,null);200===i?(ek(c!==l.value?l.value:""),B().fire({title:n,imageUrl:"".concat(W,"/img/ico-playlist.jpg"),timer:3e3,showConfirmButton:!1,customClass:{container:Y().modalSuccess}}).then(e=>{e.value&&ej("/playlist/".concat(ey.username,"/").concat(l.value.replace(/\s/g,"-")))})):B().fire({icon:"error",title:"Oops...",text:"playlist-advertised"===n?ep("YourPlaylistHasBecomeAdvertisedContactSupport",{locale:e_}).toString():n,customClass:{container:"modal",actions:"containerButtonBlue"}})};return(0,i.useEffect)(()=>{7===el||6===el?eg(!0):9===el?eP(!0):(eg(!1),eP(!1))},[el]),(0,i.useEffect)(()=>{let e;et&&((e=JSON.parse(localStorage.getItem(G?"myPlaylistsFirstTime":"myCdsFirstTime")))||(e=[]),-1!==e.indexOf(ey.id)&&eS(!1))},[]),(0,l.jsxs)("article",{className:"".concat(Y().cardContainer," ").concat(et&&Y().editableAlbum),children:[(0,l.jsxs)(a.A,{href:t,prefetch:!1,role:"button",tabIndex:D,onKeyDown:()=>eM(),onClick:()=>eM(),children:[D&&(0,l.jsx)("span",{className:Y().position,children:D}),(0,l.jsx)(n.default,{src:4===el?"".concat(W,"/img/mobile/img-autorais-big.png"):s,width:eI?100:208,height:eI?100:208})]}),(0,l.jsxs)("div",{className:"".concat(Y().cardContent," ").concat(ei?Y().pinned:""),children:[(0,l.jsxs)(a.A,{href:t,prefetch:!1,role:"button",tabIndex:D,onKeyDown:()=>eM(),onClick:()=>eM(),children:[G&&(0,l.jsx)("h3",{className:Y().titlePlaylist,children:"Playlist"}),Z&&(0,l.jsx)("h3",{className:"".concat(Y().titlePlaylist," ").concat(Y()[f]),children:"CD"}),ei&&!et&&4!==el&&(0,l.jsx)("div",{className:Y().cardContentPinnedImage,children:(0,l.jsx)(n.default,{unoptimized:!0,src:"".concat(W,"/img/cd_perfil_starred_bg.png"),width:34,height:35,alt:""})}),ei&&et&&4!==el&&(0,l.jsx)("div",{className:Y().cardContentPinnedImageMobile,children:(0,l.jsx)(n.default,{unoptimized:!0,src:"".concat(W,"/img/mobilestar.png"),width:20,height:20,alt:""})}),(0,l.jsx)("h3",{className:Y()[f],children:""!==eT?eT:c})]}),4===el&&(0,l.jsx)("div",{className:Y().cardContentCopyrighted,children:(0,l.jsxs)("div",{className:Y().cardContentCopyrightedText,children:[(0,l.jsx)(T.hji,{size:20}),(0,l.jsx)("p",{children:ep("CopyrightProtected",{locale:e_}).toString()})]})}),et&&4!==el&&(0,l.jsx)("button",{type:"button",className:Y().editButton,onClick:()=>eN(!0),children:(0,l.jsx)(S.ZZB,{})}),(0,l.jsx)("div",{className:Y().statisticsContainer,children:A&&(0,l.jsx)(E.y,{name:A.name,username:A.username,isVip:null==A?void 0:A.isVip,userId:A.id,className:Y().usernameComponent})}),em&&4!==el&&(0,l.jsxs)("div",{className:Y().description,children:[(0,l.jsx)("p",{children:em}),"...",(0,l.jsx)(a.A,{href:t,prefetch:!1,children:(0,l.jsx)("strong",{children:"Leia mais"})})]}),z&&X&&4!==el&&(0,l.jsxs)("div",{className:Y().infoContainer,children:[(0,l.jsxs)("div",{children:[ep("Published",{locale:e_}).toString(),":",(0,l.jsxs)("span",{children:[" ",(0,h.A)((0,u.A)(z),"dd/MM/yy - HH:mm").replace("-","\xe0s")]})]}),X&&(0,l.jsxs)("p",{children:[ep("Size",{locale:e_}).toString(),":",(0,l.jsxs)("b",{children:[" ",d()(X).format("0.0 b").toUpperCase()]})]})]}),Q&&4!==el&&(0,l.jsx)("div",{className:Y().expandInfo}),et&&4!==el&&(0,l.jsxs)("div",{className:Y().infoContainer,children:[es&&(7===el||ex)&&(0,l.jsxs)("p",{children:[ep("Sent",{locale:e_}).toString(),":",(0,l.jsxs)("span",{children:[" ",(0,h.A)((0,u.A)(es),"EEEE',' dd MMMM '".concat(ep("In",{locale:e_}),"' yyyy '").concat(ep("At",{locale:e_}),"' HH:mm"),{locale:eE()})]})]}),es&&4!==el&&(0,l.jsxs)("p",{children:[ep("Published",{locale:e_}).toString(),":",7===el||ex?(0,l.jsx)(p.A,{title:ep(ex?"ArchiveWithScheduledPublicationYouCanChange":"YouCanPublishTheCDByClickingPadlockIcon",{locale:e_}).toString(),placement:"right",classes:{popper:Y().tooltipBlue,arrow:Y().arrow},arrow:!0,children:(0,l.jsxs)("span",{className:Y().notPublish,children:[" ",ep("NotPublished",{locale:e_}).toString(),": ",(0,l.jsx)(b.dSe,{})]})}):(0,l.jsxs)("span",{children:[" ",(0,h.A)((0,u.A)(es),"EEEE',' dd MMMM '".concat(ep("In",{locale:e_}),"' yyyy '").concat(ep("At",{locale:e_}),"' HH:mm"),{locale:eE()})]})]}),X&&(0,l.jsxs)("p",{children:[ep("Size",{locale:e_}).toString(),":",(0,l.jsxs)("b",{children:[" ",d()(X).format("0.0 b").toUpperCase()]})]}),q&&4!==el&&(K||J)&&(0,l.jsxs)("div",{className:Y().infoMobile,children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:d()(q).format("0.[0]a").toUpperCase()})," Plays"]}),K?(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:d()(K).format("0.[0]a").toUpperCase()})," Downloads"]}):(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:J})," ",ep("Musics",{locale:e_}).toString()]}),eC&&(0,l.jsxs)("div",{className:Y().isPrivate,children:[(0,l.jsx)("p",{children:ep(G?"PrivatePlaylistWithoutPlaysAccounting":"PrivateWithoutAccountingPlaysAndDownloads",{locale:e_}).toString()}),(0,l.jsx)(w.PXj,{})]}),ev&&(0,l.jsxs)("div",{className:Y().isPrivate,children:[(0,l.jsx)("p",{children:ep(G?"PlaylistNotListed":"CDNotListed",{locale:e_}).toString()}),(0,l.jsx)(w.PXj,{})]})]})]}),(null==$?void 0:$.length)>0&&4!==el&&(0,l.jsx)("div",{className:Y().tagsContainer,children:(0,l.jsxs)("div",{children:["Tags:",$.map(e=>(0,l.jsxs)("span",{children:[" #",e]},e))]})}),K&&V&&ee&&4!==el&&(0,l.jsxs)("div",{className:Y().downloadContainer,children:[(0,l.jsx)("div",{className:Y().downloads,children:(0,l.jsx)("b",{children:d()(K).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:ep(ee,{locale:e_}).toString()})}),(0,l.jsx)("div",{className:Y().totalDownloads,children:(0,l.jsx)("b",{children:d()(V).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:"Total"})})]}),q&&J&&4!==el&&(0,l.jsxs)("div",{className:Y().downloadContainer,children:[(0,l.jsx)("div",{className:Y().downloads,children:(0,l.jsx)("b",{children:G?d()(q).format("0,0").toUpperCase():d()(q).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:"Plays"})}),(0,l.jsx)("div",{className:Y().totalDownloads,children:(0,l.jsx)("b",{children:d()(J).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:ep("Musics",{locale:e_}).toString()})})]}),q&&K&&4!==el&&(0,l.jsxs)("div",{className:Y().downloadContainer,children:[(0,l.jsx)("div",{className:Y().downloads,children:(0,l.jsx)("b",{children:d()(q).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:"Plays"})}),(0,l.jsx)("div",{className:Y().totalDownloads,children:(0,l.jsx)("b",{children:d()(K).format("0.[0]a").toUpperCase()})}),(0,l.jsx)("div",{className:Y().downloadsText,children:(0,l.jsx)("span",{children:"Downloads"})})]})]}),et&&0!==el&&4!==el&&(0,l.jsxs)("div",{className:"".concat(Y().edit," ").concat(ei&&Y().editIsPinned),children:[(0,l.jsx)(p.A,{open:ew&&!eI&&0===ea,classes:{popper:Y().tooltipBlueFirst,arrow:Y().arrow,tooltipPlacementBottom:Y().bottomSpace},placement:"top",arrow:!0,title:(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:ep(G?"HereYouCanManageYourPlaylist":"HereYouCanManageTheCD",{locale:e_}).toString()}),(0,l.jsxs)("p",{children:[(0,l.jsx)(w.PXj,{})," ",ep("PrivateOrPublic",{locale:e_}).toString(),";"]}),ec&&(0,l.jsxs)("p",{children:[(0,l.jsx)(N.oqo,{})," ",ep("PinOnProfile",{locale:e_}).toString(),";"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)(P.wwX,{})," ",ep("Edit",{locale:e_}).toString(),";"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)(b.dW_,{})," ",ep("Delete",{locale:e_}).toString(),"."]}),(0,l.jsx)("div",{className:Y().containerButton,children:(0,l.jsx)(_.A,{onClick:()=>{var e;let t;return e=G?"myPlaylistsFirstTime":"myCdsFirstTime",void(!(t=JSON.parse(localStorage.getItem(e)))&&(t=[]),-1===t.indexOf(ey.id)&&(eS(!1),t.push(ey.id)),localStorage.setItem(e,JSON.stringify(t)))},children:"OK"})})]}),children:(0,l.jsxs)("div",{className:ew&&Y().tooltipFirstTime,children:[(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.A,{title:ep("Private",{locale:e_}).toString(),placement:"top-start",children:(0,l.jsx)(j.A,{className:(eC||ev)&&Y().private,onClick:()=>ev?eu(en,H.Public,ei):eh(en,eC?H.Public:H.Private,eC,ei),children:(0,l.jsx)(w.PXj,{})})}),ec&&!ex&&(0,l.jsx)(p.A,{title:ep("PinOnProfile",{locale:e_}).toString(),placement:"top-start",children:(0,l.jsx)(j.A,{className:"".concat(Y().detach," ").concat(ei&&Y().active),onClick:()=>ec(en,eC,ei),children:(0,l.jsx)(N.oqo,{})})})]}),(0,l.jsx)(p.A,{title:ep("EditAlbum",{locale:e_,album:G?"Playlist":"CD"}).toString(),placement:"top-start",children:(0,l.jsx)(j.A,{onClick:()=>ej(G?"/biblioteca/playlists/editar/".concat(en):"/biblioteca/cds/editar/".concat(en)),children:(0,l.jsx)(P.wwX,{})})}),(0,l.jsx)(p.A,{title:ep("RemoveAlbum",{locale:e_,album:G?"Playlist":"CD"}).toString(),placement:"top-start",onClick:()=>ed(en),children:(0,l.jsx)(j.A,{children:(0,l.jsx)(b.dW_,{})})})]})}),(0,l.jsx)("div",{children:(0,l.jsxs)("p",{children:[eC&&ep(G?"PrivatePlaylistWithoutPlaysAccounting":"PrivateWithoutAccountingPlaysAndDownloads",{locale:e_}).toString(),ev&&ep(G?"PlaylistNotListed":"CDNotListed",{locale:e_}).toString()]})}),ex&&6!==el&&7!==el&&(0,l.jsx)("div",{className:Y().scheduledBlock,children:(0,l.jsxs)("p",{children:[ep("WillBePublishedIn",{locale:e_,album:G?"Playlist":"CD"}),":"," ",(0,l.jsx)("strong",{children:(0,h.A)((0,u.A)(es),"dd/MM/yy HH:mm")}
1)]})})]}),eo&&(0,l.jsxs)("div",{className:Y().deleteButton,onClick:()=>eo(),role:"button",tabIndex:0,onKeyDown:()=>eo,children:[(0,l.jsx)(N.WeY,{}),(0,l.jsx)("span",{className:Y().tooltipText,children:ep("Remove")})]}),(0,l.jsx)(y.Ay,{anchor:"bottom",open:eb,onClose:()=>eN(!1),children:(0,l.jsx)(F.V,{title:c,className:Y().optionMenu,setDrawer:eN,list:[!ex&&{id:0,text:ep(eC||ev?"PutAbumAsPublic":"PlaceAlbumAsPrivate",{locale:e_,album:G?"Playlist":"CD"}).toString(),icon:w.PXj,onClick:()=>ev?eu(en,H.Public,ei):eh(en,eC?H.Public:H.Private,eC,ei)},ec&&!ex&&{id:1,text:ep("PinOnProfile",{locale:e_}).toString(),icon:N.oqo,onClick:()=>ec(en,eC,ei)},G?{id:2,text:ep("Edit",{locale:e_}).toString(),onClick:()=>ej("/biblioteca/playlists/editar/".concat(en)),icon:P.wwX}:{id:3,text:ep("EditAlbum",{locale:e_,album:"CD"}).toString(),href:"/biblioteca/cds/editar/".concat(en),icon:P.wwX},{id:4,text:ep("RemoveAlbum",{locale:e_,album:G?"Playlist":"CD"}).toString(),icon:b.dW_,onClick:()=>ed(en)}]})}),(0,l.jsxs)(C.A,{open:ef,onClose:()=>eA(!1),classes:{paper:Y().modalEdit},children:[(0,l.jsx)("h2",{children:ep("RenamePlaylist",{locale:e_})}),(0,l.jsx)("p",{children:ep("UpdateImageEnterNewNameForThisPlaylist",{locale:e_})}),(0,l.jsx)(g.A,{children:(0,l.jsxs)("form",{className:Y().modalContent,onSubmit:eH,id:"editPlaylist",children:[(0,l.jsx)(U.w,{cover:eD,setCover:eB,className:Y().cover,defaultImage:s,dimensionClassName:Y().coverDimensions,bgDraggable:"playlist"}),(0,l.jsx)(R.H,{name:"playlistTitle",placeholder:ep("PlaylistTitle",{locale:e_}).toString(),hasValidation:!1,initialValue:c})]})}),(0,l.jsxs)(v.A,{children:[(0,l.jsx)(_.A,{onClick:()=>eA(!1),children:ep("Cancel",{locale:e_})}),(0,l.jsx)(_.A,{type:"submit",form:"editPlaylist",children:"OK"})]})]})]})}},52186:e=>{e.exports={cardContainer:"styles_cardContainer__46lRt",position:"styles_position__M6THl",cardContent:"styles_cardContent__Kc_Sv",pinned:"styles_pinned__o4SCA",cardContentPinnedImageMobile:"styles_cardContentPinnedImageMobile__wYqUs",cardContentCopyrighted:"styles_cardContentCopyrighted__2tlDG",cardContentCopyrightedText:"styles_cardContentCopyrightedText__RcNhu",titlePlaylist:"styles_titlePlaylist__iwONL",red:"styles_red__0jINp",green:"styles_green__Bi3RS",darkGreen:"styles_darkGreen__gsrmC",orange:"styles_orange__zlORs",statisticsContainer:"styles_statisticsContainer__HnHPj",usernameComponent:"styles_usernameComponent__yfUqz",cardContentPinnedImage:"styles_cardContentPinnedImage__V6XzI",downloadContainer:"styles_downloadContainer__HkH9h",downloads:"styles_downloads__B2BYs",totalDownloads:"styles_totalDownloads__co3Nz",downloadsText:"styles_downloadsText___hHKY",expandInfo:"styles_expandInfo__evDfo",infoContainer:"styles_infoContainer__ej3KQ",infoMobile:"styles_infoMobile__LPoQ9",tagsContainer:"styles_tagsContainer__j8_55",editableAlbum:"styles_editableAlbum__54pLt",editButton:"styles_editButton__Bc9lL",notPublish:"styles_notPublish__FPADH",editIsPinned:"styles_editIsPinned__R0DMH",edit:"styles_edit__m8r7Z",tooltipFirstTime:"styles_tooltipFirstTime__VExub",private:"styles_private__Dkue_",detach:"styles_detach__rRtMJ",active:"styles_active__5ujag",scheduledBlock:"styles_scheduledBlock__ykmKP",tooltipBlueFirst:"styles_tooltipBlueFirst__Eqtwt",containerButton:"styles_containerButton__trwku",bottomSpace:"styles_bottomSpace__oe8mP",arrow:"styles_arrow___vDuz",tooltipBlue:"styles_tooltipBlue__JklAi",isPrivate:"styles_isPrivate__LPs01",optionMenu:"styles_optionMenu__nUj_z",deleteButton:"styles_deleteButton__gHTbb",tooltipText:"styles_tooltipText__cgEgu",modalEdit:"styles_modalEdit__FacEH",modalContent:"styles_modalContent__5ZL_k",coverDimensions:"styles_coverDimensions__1c2yn",cover:"styles_cover__ER7tG",modalSuccess:"styles_modalSuccess__nl9wY",description:"styles_description__EFO2B"}}}]);
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.