1"use strict";(self["webpackChunkmg_member"]=self["webpackChunkmg_member"]||[]).push([[7685,5290,478],{41632:function(t,e,s){s.r(e),s.d(e,{default:function(){return _}});var o=s(64562),i=s(4324),a=s(65808),n=s(54525),r=s(45187),l=s(79500),u=s(82082),c=function(){var t=this,e=t._self._c;return e(u.Z,{attrs:{color:"#002145",bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:a}){return[e(o.Z,t._g(t._b({attrs:{color:"error",icon:"",rounded:"",depressed:"",small:""},on:{click:function(e){return t.toggleUserCourseFavorite()}}},"v-btn",a,!1),s),[e(i.Z,[t._v(t._s(t.is_favorite?"mdi-heart":"mdi-heart-outline"))])],1)]}}])},[e(a.Z,{staticClass:"py-0",attrs:{dark:"",color:"#002145","min-width":"165px","max-width":"165px","allow-overflow":""}},[e(n.Z,{staticClass:"px-0 pl-2"},[e(r.Z,{staticClass:"mx-0 mr-2"},[e(i.Z,{attrs:{color:"error"}},[t._v(" mdi-heart ")])],1),e(l.km,[e(l.V9,[t._v(" "+t._s(t.is_favorite?"Retirer des favoris":"Ajouter en favoris")+" ")])],1)],1)],1)],1)},d=[],g=s(29254),f={name:"SongFavoriteButton",props:{song:{type:Object,required:!0}},data(){return{is_favorite:!1}},mounted(){this.is_favorite=this.song.is_favorite},methods:{toggleUserCourseFavorite(){g.Z.toggleFavoriteUserSong(this.song.id).then((({data:t})=>{this.is_favorite=t.is_favorite})).catch((t=>{this.loading=!1}))}}},h=f,m=s(1001),p=(0,m.Z)(h,c,d,!1,null,null,null),_=p.exports},25922:function(t,e,s){s.r(e),s.d(e,{default:function(){return v}});var o=s(64562),i=s(34145),a=s(54886),n=s(34061),r=s(99223),l=s(9449),u=s(13687),c=function(){var t=this,e=t._self._c;return e("div",[e(o.Z,{staticClass:"my-3",attrs:{depressed:"",rounded:"","x-small":"",color:"primary",loading:t.loading},on:{click:function(e){return t.getData()}}},[t._v(" Détail ")]),e(n.Z,{attrs:{width:"1200"},model:{value:t.openDialog,callback:function(e){t.openDialog=e},expression:"openDialog"}},[e(i.Z,[e(a.EB,{staticClass:"text-h5 grey title lighten-2"},[t._v(' Où trouver "'+t._s(t.song.title)+'" de '+t._s(t.song.author)+" ? ")]),e(l.Z,{scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",[e("tr",[e("th",{staticClass:"text-left"},[t._v(" Cours ")]),e("th",{staticClass:"text-left"},[t._v(" Partie ")]),e("th",{staticClass:"text-left"},[t._v(" Leçon ")]),e("th",{staticClass:"text-left"},[t._v(" Niveau ")]),e("th",{staticClass:"text-left"},[t._v(" Disponibilité ")])])]),e("tbody",t._l(t.courseModules,(function(s){return e("tr",{key:s.uuid},[e("td",[e("div",[t._v(t._s(s.course_title))]),e("div",{staticStyle:{"font-size":"12px"}},[t._v(t._s(s.course_module_title))])]),e("td",[t._v(t._s(s.song_part_title))]),e("td",[t._v(t._s(s.lesson_title))]),e("td",[t._v(t._s(s.song_part_difficulty))]),e("td",[e(o.Z,{staticClass:"my-3",attrs:{depressed:"",rounded:"","x-small":"",color:"primary"},on:{click:function(e){return t.goTo(s.link)}}},[t._v(" "+t._s(s.link_title)+" ")])],1)])})),0)]},proxy:!0}])}),e(r.Z),e(a.h7,[e(u.Z),e(o.Z,{attrs:{color:"primary",text:""},on:{click:function(e){t.openDialog=!1}}},[t._v(" Fermer ")])],1)],1)],1)],1)},d=[],g=s(29254),f=s(67519),h={name:"SongLessonsButton",props:{song:{type:Object,required:!0},songParts:{type:Array,required:!0}},methods:{getData(){this.loading=!0,g.Z.getAvailableCoursesAndProducts(this.song.id).then((t=>{this.courseModules=t,this.loading=!1,this.openDialog=!0})).catch((t=>{this.loading=!1}))},goTo(t){this.$router.push(t)}},data(){return{loading:!1,openDialog:!1,courseModules:[],routeNameShowCourse:"member-course-show",routeNameShowCourseModule:"member-course-module-show",routeNameShowLesson:"member-lesson-show",user:f.Z.me(),panel:0}}},m=h,p=s(1001),_=(0,p.Z)(m,c,d,!1,null,null,null),v=_.exports},85169:function(t,e,s){s.r(e),s.d(e,{default:function(){return C}});var o=s(34145),i=s(54886),a=s(60266),n=s(69256),r=s(50629),l=s(44568),u=s(11713),c=function(){var t=this,e=t._self._c;return e(o.Z,{attrs:{flat:"",outlined:""}},[e(i.ZB,[e(n.Z,{staticClass:"px-0 py-2 container--fluid",attrs:{"grid-list-md":""}},[e("h2",{staticClass:"ml-3 mb-2"},[t._v("La liste de chansons disponibles sur "+t._s(t.$trans.get("brand.name")))]),e(r.Z,{attrs:{headers:t.headers,"footer-props":{"items-per-page-options":[20,50,100,150]},items:t.songs,loading:t.loading,options:t.pagination,"server-items-length":t.totalItems},on:{"update:options":function(e){t.pagination=e}},scopedSlots:t._u([{key:"item.actions",fn:function({item:s}){return[e(l.Z,{attrs:{"offset-y":"",bottom:"",left:""},scopedSlots:t._u([{key:"activator",fn:function({}){return[e(u.Z,{attrs:{"no-gutters":""}},[e(a.Z,{attrs:{cols:"7"}},[s.songParts&&s.songParts.data.length?e("song-lessons-button",{attrs:{song:s,songParts:s.songParts.data}}):t._e()],1),e(a.Z,{staticClass:"pt-3",attrs:{cols:"4"}},[e("song-favorite-button",{attrs:{song:s}})],1)],1)]}}],null,!0)})]}}])})],1)],1)],1)},d=[],g=s(29254),f=s(50391),h=s(79453),m=s(96486),p=s.n(m),_=s(25922),v=s(41632),y={name:"SongsList",metaInfo:{title:"Rechercher une chanson"},components:{SongLessonsButton:_["default"],SongFavoriteButton:v["default"]},data(){return{pagination:h.Z.initPagination(20,1,"title",!0),filters:{search:null,styles:null,difficulty:null},headers:[{text:"Titre",align:"left",sortable:!0,value:"title"},{text:"Artiste",align:"left",sortable:!0,value:"author"},{text:"Style",align:"left",sortable:!0,value:"tagStyle.data.title"},{text:"Difficulté",align:"left",sortable:!0,value:"less_difficulty"},{text:"",align:"left",sortable:!1,value:"actions"}],results:[{title:"La poupée qui fait non",author:"Michel Polnareff",style:"Variété Française",level:2},{title:"On ira tous au paradis",author:"Michel Polnareff",style:"Variété Française",level:2}],totalItems:0,songs:[],tagDifficulty:f.Z.getTagDifficulty(),loading:!1,Helpers:h.Z}},watch:{pagination:{handler(){this.getAllSongs()},deep:!0},filters:{handler(){this.getAllSongs()},deep:!0},"$route.query"(t){this.filters=t},"filters.search"(t){this.$emit("search",t)},"filters.styles"(t){this.$emit("styles",t)},"filters.instruments"(t){this.$emit("instruments",t)}},methods:{getAllSongs:p().debounce((function(){this.loading=!0;let t={...this.filters};g.Z.getAll(this.pagination,t).then((({data:t,totalItems:e})=>{this.songs=t,this.totalItems=e,this.$emit("totalSongs",e),this.loading=!1})).catch((t=>{this.loading=!1}))}),300)}},Z=y,b=s(1001),x=(0,b.Z)(Z,c,d,!1,null,null,null),C=x.exports}}]); 2//# sourceMappingURL=view-songs-SongsList-vue.841c4a8e.js.map
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.