1"use strict";(self.webpackChunkpublisher_front=self.webpackChunkpublisher_front||[]).push([[511],{2511:(k,_,p)=>{p.r(_),p.d(_,{SpotifyComponent:()=>w});var a=p(7586),g=p(2200),r=p(813),s=p(2615),t=p(3664),f=p(1230),M=p(9617);const C=o=>({"background-color":o}),l=o=>({"is-playlist":o});function y(o,c){if(1&o&&(t.j41(0,"h2"),t.EFF(1),t.k0s()),2&o){const n=t.XpG();t.R7$(),t.JRh(n.item.context.title)}}function O(o,c){if(1&o&&(t.nrm(0,"div",0),t.nI1(1,"safeHtml")),2&o){const n=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,n.item.context.beforeContent),t.npT)}}function P(o,c){if(1&o&&t.EFF(0),2&o){const n=t.XpG(2);t.SpI(" ",n.convertDate(n.item.context.spotify.releaseDate)," \xb7 ")}}function d(o,c){if(1&o&&(t.j41(0,"span",12),t.EFF(1),t.k0s()),2&o){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.convertMsToMinSec(n.item.context.spotify.durationMs)," ")}}function h(o,c){if(1&o&&(t.j41(0,"li")(1,"div")(2,"button"),t.EFF(3),t.k0s(),t.j41(4,"div")(5,"span"),t.EFF(6),t.k0s(),t.j41(7,"span"),t.EFF(8),t.k0s()()(),t.j41(9,"div"),t.EFF(10),t.k0s()()),2&o){const n=c.$implicit,i=c.$index,e=t.XpG(3);t.R7$(3),t.JRh(i+1),t.R7$(3),t.JRh(n.name),t.R7$(2),t.JRh(n.artistName),t.R7$(2),t.JRh(e.convertMsToMinSec(n.durationMs))}}function m(o,c){if(1&o&&(t.j41(0,"div",15)(1,"div")(2,"ol"),t.Z7z(3,h,11,4,"li",null,t.fX1),t.k0s()()()),2&o){const n=t.XpG(2);t.R7$(3),t.Dyx(n.item.context.spotify.tracks)}}function x(o,c){if(1&o){const n=t.RV6();t.j41(0,"div",4),t.bIt("click",function(){s.eBV(n);const e=t.XpG();return s.Njj(e.switchShowIframe())}),t.j41(1,"div",5),s.qSk(),t.j41(2,"svg",6),t.nrm(3,"path",7),t.k0s(),s.joV(),t.nrm(4,"img",8),t.j41(5,"div",9)(6,"h3",10),t.EFF(7),t.k0s(),t.j41(8,"h4"),t.nVh(9,P,1,1),t.j41(10,"span"),t.EFF(11),t.k0s()(),t.j41(12,"div",11),t.nVh(13,d,2,1,"span",12),s.qSk(),t.j41(14,"svg",13),t.nrm(15,"path",14),t.k0s()()()(),t.nVh(16,m,5,0,"div",15),t.k0s()}if(2&o){const n=t.XpG();t.Y8G("ngStyle",t.eq3(9,C,n.item.context.spotify.backgroundColor?n.item.context.spotify.backgroundColor:"#282828"))("ngClass",t.eq3(11,l,"playlist"===n.item.context.spotify.type)),t.R7$(4),t.Y8G("src",t.mNQ(n.item.context.spotify.coverUrl),t.B4B),t.R7$(3),t.JRh(n.item.context.spotify.title),t.R7$(2),t.vxM(n.item.context.spotify.releaseDate?9:-1),t.R7$(2),t.JRh(n.item.context.spotify.author),t.R7$(2),t.vxM("playlist"!==n.item.context.spotify.type?13:-1),t.R7$(3),t.vxM("playlist"===n.item.context.spotify.type?16:-1)}}function u(o,c){if(1&o&&t.nrm(0,"iframe",2),2&o){const n=t.XpG();t.Y8G("height",t.mNQ(n.item.context.spotify.tracks?"380":"232"))("src",n.trustedUrl,t.f$h)}}function v(o,c){if(1&o&&(t.nrm(0,"div",3),t.nI1(1,"safeHtml")),2&o){const n=t.XpG();t.Y8G("innerHTML",t.bMT(1,1,n.item.context.afterContent),t.npT)}}let w=(()=>{class o{constructor(n,i,e){this.item=n,this.sanitizer=i,this.globalVariablesService=e,this.showIframe=!1,this.today=new Date}switchShowIframe(){this.showIframe=!0}convertMsToMinSec(n){return a.utc(n).format("m:ss")}convertDate(n){a.locale(this.globalVariablesService.getLang().substring(0,2));const i=a(n).format("MMMM YYYY");return parseInt(i.split(" ")[1])<this.today.getFullYear()?a(n).format("MMMM YYYY"):a(n).format("D MMMM")}ngOnInit(){this.trustedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.item.context.url)}static{this.\u0275fac=function(i){return new(i||o)(t.rXU("moduleData"),t.rXU(f.up),t.rXU(M._))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-spotify"]],decls:5,vars:5,consts:[[3,"innerHTML"],[1,"app-spotify",3,"ngStyle","ngClass"],["width","100%",3,"src","height"],[1,"after-content",3,"innerHTML"],[1,"app-spotify",3,"click","ngStyle","ngClass"],[1,"container-spotify"],["role","img","height","32","width","32","aria-hidden","true","viewBox","0 0 24 24",1,"spotify-logo"],["d","M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm5.045 15.866a.686.686 0 0 1-.943.228c-2.583-1.579-5.834-1.935-9.663-1.06a.686.686 0 0 1-.306-1.337c4.19-.958 7.785-.546 10.684 1.226a.686.686 0 0 1 .228.943zm1.346-2.995a.858.858 0 0 1-1.18.282c-2.956-1.817-7.464-2.344-10.961-1.282a.856.856 0 0 1-1.11-.904.858.858 0 0 1 .611-.737c3.996-1.212 8.962-.625 12.357 1.462a.857.857 0 0 1 .283 1.179zm.116-3.119c-3.546-2.106-9.395-2.3-12.78-1.272a1.029 1.029 0 0 1-.597-1.969c3.886-1.18 10.345-.952 14.427 1.471a1.029 1.029 0 0 1-1.05 1.77z"],["alt","",1,"cover",3,"src"],[1,"spotify-content"],[1,"ellipsis"],[1,"play-and-duration"],[1,"duration"],["height","24","width","24","viewBox","0 0 24 24",1,"play"],["d","M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm8.75-4.567a.5.5 0 0 0-.75.433v8.268a.5.5 0 0 0 .75.433l7.161-4.134a.5.5 0 0 0 0-.866L9.75 7.433z"],[1,"tracks"]],template:function(i,e){1&i&&(t.nVh(0,y,2,1,"h2"),t.nVh(1,O,2,3,"div",0),t.nVh(2,x,17,13,"div",1),t.nVh(3,u,1,3,"iframe",2),t.nVh(4,v,2,3,"div",3)),2&i&&(t.vxM(e.item.context.title?0:-1),t.R7$(),t.vxM(e.item.context.beforeContent?1:-1),t.R7$(),t.vxM(e.item.context.spotify.type&&!e.showIframe?2:-1),t.R7$(),t.vxM(e.showIframe||!e.item.context.spotify.type?3:-1),t.R7$(),t.vxM(e.item.context.afterContent?4:-1))},dependencies:[g.B3,g.YU,r.$],styles:[".app-spotify[_ngcontent-%COMP%]{container-type:inline-size;container-name:spotify;border-radius:10px;height:232px;overflow:hidden;margin:10px 0}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;font-size:1.2rem;font-weight:600;color:#fff;flex-wrap:wrap;align-items:center;gap:16px;padding:15px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-logo[_ngcontent-%COMP%]{fill:#fff;position:absolute;right:24px;top:24px;width:24px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{border-radius:8px;height:200px;
1width:200px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%]{min-width:0;flex:1}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:21px;font-weight:600;color:#fff;margin:0}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]:after{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:#fff;opacity:.7;font-size:14px;font-weight:400}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:after{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]:hover, .app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%]{position:absolute;bottom:18px;right:18px;display:flex;align-items:center;gap:10px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{opacity:.7}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{fill:#fff;width:32px;height:32px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%]{overflow-y:scroll;background-color:#0000001a;height:190px;margin-bottom:15px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0003;border-radius:5px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{list-style-type:upper-roman;padding:0;margin:0;font-size:13.3px;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;overflow-y:auto;color:#fff}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0003}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{display:flex;align-items:center}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child button[_ngcontent-%COMP%]{border:none;background-color:transparent;color:#ffffff4d}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%]{margin-left:8px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child{font-size:14px}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:nth-child(2){display:block;margin-top:3px;font-size:10px;font-weight:400;opacity:.6;overflow:hidden;text-overflow:ellipsis}.app-spotify[_ngcontent-%COMP%] .tracks[_ngcontent-%COMP%] div[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child{font-size:14px}.app-spotify.is-playlist[_ngcontent-%COMP%]{height:380px}.app-spotify.is-playlist[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%]{padding:20px}.app-spotify.is-playlist[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{height:150px;width:150px}.app-spotify.is-playlist[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{width:48px;height:48px}@container spotify (max-width: 340px){.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%]{flex-direction:column}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-logo[_ngcontent-%COMP%]{right:16px!important;top:16px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:160px!important;height:160px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%]{width:100%}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px!important;padding-right:30px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%]{right:16px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{width:32px!important;height:32px!important}.app-spotify[_ngcontent-%COMP%]:not(.is-playlist) .container-spotify[_ngcontent-%COMP%]{height:100%}.app-spotify[_ngcontent-%COMP%]:not(.is-playlist) .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%]{min-width:auto;flex:unset!important}.tracks[_ngcontent-%COMP%]{height:150px!important}}@media (max-width: 400px){.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%]{flex-direction:column}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-logo[_ngcontent-%COMP%]{right:16px!important;top:16px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:160px!important;height:160px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%]{width:100%}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:14px!important;padding-right:30px}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%]{right:16px!important}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{display:none}.app-spotify[_ngcontent-%COMP%] .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%] .play-and-duration[_ngcontent-%COMP%] .play[_ngcontent-%COMP%]{width:32px!important;height:32px!important}.app-spotify[_ngcontent-%COMP%]:not(.is-playlist) .container-spotify[_ngcontent-%COMP%]{height:100%}.app-spotify[_ngcontent-%COMP%]:not(.is-playlist) .container-spotify[_ngcontent-%COMP%] .spotify-content[_ngcontent-%COMP%]{min-width:auto;flex:unset!important}.tracks[_ngcontent-%COMP%]{height:150px!important}}iframe[_ngcontent-%COMP%]{margin:10px 0}.after-content[_ngcontent-%COMP%]{margin-bottom:15px}"]})}}return 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.