{"version":3,"sources":["webpack:///./src/components/Player/VerifiedDialog.vue?6eab","webpack:///src/components/Player/VerifiedDialog.vue","webpack:///./src/components/Player/VerifiedDialog.vue?cf9f","webpack:///./src/components/Player/VerifiedDialog.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","$event","dialog","_m","staticStyle","attrs","_l","logo","key","model","value","callback","$$v","expression","_v","stopPropagation","verifications","length","_s","org","name","_f","getMetrics","v","selected","dtVerified","verifiedBy","slide","id","theme","style","color1Text","_e","staticRenderFns","props","data","metrics","computed","player","m","unix","orgs","map","filter","logos","methods","vals","open","component","VBtn","VCard","VCardText","VCarousel","VCarouselItem","VDialog","VDivider","VIcon","VSlideGroup","VSlideItem","VSpacer","VToolbar","VToolbarTitle"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAiB,cAAEI,EAAG,MAAM,CAACE,YAAY,uDAAuDC,GAAG,CAAC,MAAQ,SAASC,GAAQR,EAAIS,QAAS,KAAQ,CAACT,EAAIU,GAAG,GAAGN,EAAG,MAAM,CAACO,YAAY,CAAC,MAAQ,SAAS,CAACP,EAAG,aAAa,CAACE,YAAY,cAAcM,MAAM,CAAC,eAAc,EAAM,kBAAkB,GAAG,OAAS,KAAK,IAAM,KAAK,WAAa,GAAG,MAAQ,GAAG,SAAW,SAASZ,EAAIa,GAAIb,EAAS,OAAE,SAASc,GAAM,OAAOV,EAAG,kBAAkB,CAACW,IAAK,GAAKD,EAAMF,MAAM,CAAC,OAAS,OAAO,IAAME,EAAK,QAAU,SAAQ,IAAI,GAAGV,EAAG,WAAW,CAACQ,MAAM,CAAC,WAAa,GAAG,YAAY,QAAQ,WAAa,qBAAqBI,MAAM,CAACC,MAAOjB,EAAU,OAAEkB,SAAS,SAAUC,GAAMnB,EAAIS,OAAOU,GAAKC,WAAW,WAAW,CAAChB,EAAG,SAAS,C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,iBAAQ,MAAR,SACA,CAAQ,KAAR,WAAQ,MAAR,YACA,CAAQ,KAAR,mBAAQ,MAAR,cACA,CAAQ,KAAR,sBAAQ,MAAR,iBACA,CAAQ,KAAR,aAAQ,MAAR,gBAIEC,SAAU,OAAZ,OAAY,CAAZ,kBACA,+BADA,IAEIrB,cAFJ,WAGM,GAAyC,IAArCtB,KAAK4C,OAAOtB,cAAcC,OAAc,OAAO,KACnD,IAAN,6CAEQ,OADAsB,EAAEC,KAAO,IAAjB,oBACeD,KAELE,EAAO,IAAjB,gDACM,OAAOA,EAAKC,KAAI,SAAtB,GACQ,MAAO,CACLvB,IAAKoB,EACLhB,EAAGA,EAAEoB,QAAO,SAAtB,0EAIIF,KAhBJ,WAiBM,OAAO/C,KAAK4C,QAAU5C,KAAK4C,OAAOtB,eAAiBtB,KAAK4C,OAAOtB,cAAcC,OAAS,GAAK,IAAjG,yEAEI2B,MAnBJ,WAoBM,OAAOlD,KAAK+C,MAAQ/C,KAAK+C,KAAKC,KAAI,SAAxC,gCAGEG,QAAS,CACPvB,WADJ,SACA,GACM,OAAOwB,GAAQA,EAAK7B,QAAUvB,KAAK0C,QAAQO,QAAO,SAAxD,oEAEII,KAJJ,WAKMrD,KAAKQ,QAAS,KCjImV,I,6LCOnW8C,EAAY,eACd,EACAxD,EACAyC,GACA,EACA,KACA,KACA,MAIa,aAAAe,EAAiB,QAiBhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,UAAA,OAAUC,YAAA,KAAUC,gBAAA,KAAcC,UAAA,KAAQC,WAAA,KAASC,QAAA,KAAMC,cAAA,KAAYC,aAAA,KAAWC,UAAA,KAAQC,WAAA,KAASC,cAAA","file":"js/chunk-2d0d7bce.020adb30.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.verifications)?_c('div',{staticClass:\"d-flex justify-center align-center text-h6 clickable\",on:{\"click\":function($event){_vm.dialog = true}}},[_vm._m(0),_c('div',{staticStyle:{\"width\":\"95px\"}},[_c('v-carousel',{staticClass:\"elevation-0\",attrs:{\"show-arrows\":false,\"hide-delimiters\":\"\",\"height\":\"40\",\"max\":\"95\",\"continuous\":\"\",\"cycle\":\"\",\"interval\":\"3000\"}},_vm._l((_vm.logos),function(logo){return _c('v-carousel-item',{key:(\"\" + logo),attrs:{\"height\":\"40px\",\"src\":logo,\"contain\":\"\"}})}),1)],1),_c('v-dialog',{attrs:{\"scrollable\":\"\",\"max-width\":\"500px\",\"transition\":\"dialog-transition\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"color1 color1Text--text\"}},[_c('v-toolbar-title',[_vm._v(\"Verification\")]),_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"color2 color2Text--text\",\"fab\":\"\",\"small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.dialog=false}}},[_c('v-icon',[_vm._v(\"fs fa-times\")])],1)],1),(_vm.verifications.length === 1)?_c('v-card-text',{staticClass:\"pa-3\"},[_c('v-card',[_c('v-card-text',[_c('div',[_c('b',[_vm._v(_vm._s(_vm.verifications[0].org.name))])]),_c('v-divider'),_c('div',{staticClass:\"text-subtitle-1\"},[_vm._v(\" Verified: \"+_vm._s(_vm._f(\"formatArray\")(_vm.getMetrics(_vm.verifications[0].v[0].selected)))+\" \")]),_c('div',{staticClass:\"mt-3 text-caption\"},[_vm._v(\"Verified On: \"+_vm._s(_vm._f(\"localDate\")(_vm.verifications[0].v[0].dtVerified)))]),_c('div',{staticClass:\"text-caption\"},[_vm._v(\"Verified By: \"+_vm._s(_vm.verifications[0].v[0].verifiedBy))])],1)],1)],1):_c('v-slide-group',{staticClass:\"pa-3\",attrs:{\"show-arrows\":\"\"},model:{value:(_vm.slide),callback:function ($$v) {_vm.slide=$$v},expression:\"slide\"}},_vm._l((_vm.verifications),function(v){return _c('v-slide-item',{key:v.org.id},[_c('v-card',{staticClass:\"ma-3\",attrs:{\"width\":\"250\",\"min-height\":\"250\",\"color\":(\"\" + (v.org.theme.color1))}},[_c('v-card-text',{style:((\"color: \" + (v.org.theme.color1Text)))},[_c('div',[_c('b',[_vm._v(_vm._s(v.org.name))])]),_c('v-divider',{attrs:{\"color\":v.org.theme.color1Text}}),_c('div',{staticClass:\"text-subtitle-1\"},[_vm._v(\" Verified: \"+_vm._s(_vm._f(\"formatArray\")(_vm.getMetrics(v.v[0].selected)))+\" \")]),_c('div',{staticClass:\"mt-3 text-caption\"},[_vm._v(\"Verified On: \"+_vm._s(_vm._f(\"localDate\")(v.v[0].dtVerified)))]),_c('div',{staticClass:\"text-caption\"},[_vm._v(\"Verified By: \"+_vm._s(v.v[0].verifiedBy))])],1)],1)],1)}),1)],1)],1)],1):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',[_c('i',{staticClass:\"ml-2 fad fa-badge-check success--text\"}),_vm._v(\"Verified By:\")])}]\n\nexport { render, staticRenderFns }","<template>\r\n  <div class=\"d-flex justify-center align-center text-h6 clickable\" @click=\"dialog = true\" v-if=\"verifications\">\r\n    <span><i class=\"ml-2 fad fa-badge-check success--text\"></i>Verified By:</span>\r\n    <div style=\"width:95px\">\r\n      <v-carousel\r\n        :show-arrows=\"false\"\r\n        hide-delimiters\r\n        height=\"40\"\r\n        max=\"95\"\r\n        class=\"elevation-0\"\r\n        continuous cycle\r\n        interval=\"3000\"\r\n      >\r\n        <v-carousel-item\r\n          height=\"40px\"\r\n          v-for=\"(logo) in logos\"\r\n          :key=\"`${logo}`\"\r\n          :src=\"logo\"\r\n          contain\r\n        ></v-carousel-item>\r\n      </v-carousel>\r\n    </div>\r\n\r\n    <v-dialog\r\n      v-model=\"dialog\"\r\n      scrollable\r\n      max-width=\"500px\"\r\n      transition=\"dialog-transition\"\r\n    >\r\n      <v-card>\r\n        <v-toolbar color=\"color1 color1Text--text\">\r\n          <v-toolbar-title>Verification</v-toolbar-title>\r\n          <v-spacer></v-spacer>\r\n          <v-btn color=\"color2 color2Text--text\" fab small @click.stop=\"dialog=false\">\r\n            <v-icon>fs fa-times</v-icon>\r\n          </v-btn>\r\n        </v-toolbar>\r\n        <v-card-text v-if=\"verifications.length === 1\" class=\"pa-3\">\r\n           <v-card>\r\n             <v-card-text>\r\n               <div><b>{{verifications[0].org.name}}</b></div>\r\n               <v-divider ></v-divider>\r\n               <div class=\"text-subtitle-1\">\r\n                 Verified: {{getMetrics(verifications[0].v[0].selected) | formatArray}}\r\n               </div>\r\n               <div class=\"mt-3 text-caption\">Verified On: {{verifications[0].v[0].dtVerified | localDate}}</div>\r\n               <div class=\"text-caption\">Verified By: {{verifications[0].v[0].verifiedBy}}</div>\r\n             </v-card-text>\r\n           </v-card>\r\n        </v-card-text>\r\n        <v-slide-group\r\n          v-else\r\n          v-model=\"slide\"\r\n          show-arrows\r\n          class=\"pa-3\"\r\n        >\r\n          <v-slide-item\r\n            v-for=\"v in verifications\"\r\n            :key=\"v.org.id\"\r\n          >\r\n           <v-card width=\"250\" min-height=\"250\" class=\"ma-3\" :color=\"`${v.org.theme.color1}`\">\r\n             <v-card-text :style=\"`color: ${v.org.theme.color1Text}`\">\r\n               <div><b>{{v.org.name}}</b></div>\r\n               <v-divider :color=\"v.org.theme.color1Text\"></v-divider>\r\n               <div class=\"text-subtitle-1\">\r\n                 Verified: {{getMetrics(v.v[0].selected) | formatArray}}\r\n               </div>\r\n               <div class=\"mt-3 text-caption\">Verified On: {{v.v[0].dtVerified | localDate}}</div>\r\n               <div class=\"text-caption\">Verified By: {{v.v[0].verifiedBy}}</div>\r\n             </v-card-text>\r\n           </v-card>\r\n          </v-slide-item>\r\n        </v-slide-group>\r\n      </v-card>\r\n    </v-dialog>\r\n  </div>\r\n</template>\r\n\r\n<script>\r\nimport uniqBy from 'lodash.uniqby'\r\nimport { firstBy } from 'thenby'\r\nimport { mapGetters } from 'vuex'\r\nimport moment from 'moment'\r\n\r\nexport default {\r\n  props: ['player'],\r\n  data () {\r\n    return {\r\n      dialog: false,\r\n      slide: false,\r\n      metrics: [\r\n        { text: 'Height', value: 'height' },\r\n        { text: 'Dominant Hand', value: 'dominantHand' },\r\n        { text: 'Standing Reach', value: 'reach' },\r\n        { text: 'Wingspan', value: 'wingspan' },\r\n        { text: 'Block Jump Touch', value: 'blockTouch' },\r\n        { text: 'Approach Jump Touch', value: 'approachTouch' },\r\n        { text: 'Star Drill', value: 'starDrill' }\r\n      ]\r\n    }\r\n  },\r\n  computed: {\r\n    ...mapGetters(['subdomain']),\r\n    verifications () {\r\n      if (this.player.verifications.length === 0) return null\r\n      const v = this.player.verifications.map(m => {\r\n        m.unix = moment(m.dtCreated).unix()\r\n        return m\r\n      })\r\n      var orgs = uniqBy(v.map(m => m.onBehalfOf), 'id')\r\n      return orgs.map(m => {\r\n        return {\r\n          org: m,\r\n          v: v.filter(f => f.behalfOf === m.id).sort(firstBy('unix', -1))\r\n        }\r\n      })\r\n    },\r\n    orgs () {\r\n      return this.player && this.player.verifications && this.player.verifications.length > 0 && uniqBy(this.player.verifications.map(m => m.onBehalfOf), 'id')\r\n    },\r\n    logos () {\r\n      return this.orgs && this.orgs.map(m => m.theme.logoUrl)\r\n    }\r\n  },\r\n  methods: {\r\n    getMetrics (vals) {\r\n      return vals && vals.length && this.metrics.filter(f => vals.includes(f.value)).map(m => m.text)\r\n    },\r\n    open () {\r\n      this.dialog = true\r\n    }\r\n  }\r\n}\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifiedDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VerifiedDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VerifiedDialog.vue?vue&type=template&id=2cb64f52&\"\nimport script from \"./VerifiedDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./VerifiedDialog.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCarousel } from 'vuetify/lib/components/VCarousel';\nimport { VCarouselItem } from 'vuetify/lib/components/VCarousel';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSlideGroup } from 'vuetify/lib/components/VSlideGroup';\nimport { VSlideItem } from 'vuetify/lib/components/VSlideGroup';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCard,VCardText,VCarousel,VCarouselItem,VDialog,VDivider,VIcon,VSlideGroup,VSlideItem,VSpacer,VToolbar,VToolbarTitle})\n"],"sourceRoot":""}