{"version":3,"sources":["webpack:///./src/views/ImpactBusinessProfile.vue?f7f2","webpack:///./src/views/ImpactBusinessProfile.vue","webpack:///src/views/ImpactBusinessProfile.vue","webpack:///./src/views/ImpactBusinessProfile.vue?bc17","webpack:///./src/views/ImpactBusinessProfile.vue?c7b9"],"names":["render","_vm","this","_c","_self","goodCauseLoading","currentProfileLoading","undefined","currentProfile","status","id","userData","impactBusiness_id","_e","attrs","class","concat","$vuetify","breakpoint","mdAndUp","staticStyle","smAndUp","staticClass","style","smAndDown","_v","_s","calculateTotalContributions","calculateHrsEq","imageUrl","whoWeAre","chosenGoodCause","recentImpactStory","buyerSelected","cCTotal","suppliersUsed","buyersSlogan","_f","Math","round","contributionsGeneratedSlogan","communityHourCalc","communityHoursSlogan","supplierSelected","supplier_cCTotal","on","$event","$router","push","goodCause_id","directives","name","rawName","supplier_enquiryTotal","suppliersSlogan","contributionsGeneratedSloganSupplier","communityHourCalcSupplier","communityHoursSloganSupplier","staticRenderFns","data","customRoutes","coffee","power","communityHours","computed","_objectSpread","mapGetters","user","keywords","goodCauses","_this","goodCause","filter","gc","hours","calculateCommunityHrs","mounted","$store","dispatch","created","$nextTick","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","$route","params","keyword","stop","methods","business","formatter","Intl","NumberFormat","currency","minimumFractionDigits","maximumFractionDigits","totalContributions","format","parseFloat","component"],"mappings":"kHAAA,W,oECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OACvDF,EAAII,kBACJJ,EAAIK,4BACiBC,GAAtBN,EAAIO,gBAC0B,eAA7BP,EAAIO,eAAeC,QAClBR,EAAIO,eAAeE,IAAMT,EAAIU,SAASC,kBAmBizDX,EAAIY,KAlB71DV,EAAG,MAAM,CAACW,MAAM,CAAC,cAAc,GAAG,MAAQ,KAAK,CAACX,EAAG,WAAW,CAACW,MAAM,CAAC,iBAAiB,GAAG,KAAO,KAAK,CAACX,EAAG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4D,EAAAlD,iBACAmD,EAAAO,OAAAC,WAAAT,EAAAlD,mBAEA,MAGAhB,eAAA,SAAAkE,GACA,UAAAA,EAAAO,mBACA,KAAA1B,sBAAAmB,EAAAO,oBACA,IAAAP,EAAA5D,QACA,KAAAyC,sBAAAmB,EAAA5D,SACA,IAAA4D,EAAAlD,iBACA,KAAA+B,sBAAAmB,EAAAlD,kBAEA,OC7f8V,I,wBCQ1V4D,EAAY,eACd,EACAxG,EACA0D,GACA,EACA,KACA,KACA,MAIa,aAAA8C,E","file":"js/chunk-a7e46eb4.fbc3984e.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ImpactBusinessProfile.vue?vue&type=style&index=0&id=1993a984&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (\n    !_vm.goodCauseLoading &&\n    !_vm.currentProfileLoading &&\n    _vm.currentProfile != undefined &&\n    (_vm.currentProfile.status == 'Live Report' ||\n      _vm.currentProfile.id == _vm.userData.impactBusiness_id)\n  )?_c('div',{attrs:{\"fill-height\":\"\",\"fluid\":\"\"}},[_c('v-layout',{attrs:{\"justify-center\":\"\",\"wrap\":\"\"}},[_c('div',{class:`${_vm.$vuetify.breakpoint.mdAndUp ? 'py-5' : 'py-3'}`,staticStyle:{\"width\":\"100%\"}},[(_vm.$vuetify.breakpoint.smAndUp)?_c('v-layout',{staticStyle:{\"max-width\":\"1600px\",\"margin\":\"auto\"},attrs:{\"row\":\"\",\"wrap\":\"\",\"align-center\":\"\",\"justify-center\":\"\"}},[_c('v-flex',{staticClass:\"mb-4\",attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('h1',{staticClass:\"text-xs-left px-4\",style:(`${\n              _vm.$vuetify.breakpoint.smAndDown\n                ? 'font-size: 2rem !important'\n                : ''\n            }`)},[_vm._v(\"\\n            Our Upstream Impact Report\\n          \")])]),_c('v-flex',{staticClass:\"mb-4\",attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('v-layout',{staticClass:\"text-xs-center text-sm-right\",staticStyle:{\"width\":\"100%\"},attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('div',{staticClass:\"pa-3\",staticStyle:{\"display\":\"inline\"}},[_c('h2',{staticStyle:{\"font-size\":\"30px\",\"display\":\"inline\",\"color\":\"#162c47\"}},[_vm._v(\"\\n                  \"+_vm._s(_vm.calculateTotalContributions(_vm.currentProfile))+\"\\n                \")]),_c('span',{staticStyle:{\"display\":\"inline\",\"font-weight\":\"bold\",\"font-size\":\"25px\",\"color\":\"#162c47\",\"text-align\":\"left\"}},[_vm._v(\"generated for Good Causes\")])]),_c('br'),_c('div',{staticClass:\"pa-3\",staticStyle:{\"display\":\"inline\"}},[_c('h2',{staticStyle:{\"font-size\":\"30px\",\"display\":\"inline\",\"color\":\"#162c47\"}},[_vm._v(\"\\n                  \"+_vm._s(_vm.calculateHrsEq(_vm.currentProfile))+\"\\n                \")]),_c('span',{staticStyle:{\"display\":\"inline\",\"font-weight\":\"bold\",\"text-align\":\"left\",\"font-size\":\"25px\",\"color\":\"#162c47\"}},[_vm._v(\"\\n                  eqv. hours of community work\\n                \")])])])],1)],1)],1):_c('v-layout',{staticClass:\"text-xs-center mb-4\",attrs:{\"row\":\"\",\"wrap\":\"\",\"align-center\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('h1',{staticClass:\"text-xs-center px-4\"},[_vm._v(\"Our Upstream Impact Report\")])]),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('h2',{staticClass:\"primary--text\",staticStyle:{\"font-size\":\"30px\"}},[_vm._v(\"\\n            \"+_vm._s(_vm.calculateTotalContributions(_vm.currentProfile))+\"\\n          \")]),_c('span',{staticStyle:{\"font-weight\":\"bold\"}},[_vm._v(\"generated for Good Causes\")])]),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('h2',{staticClass:\"primary--text\",staticStyle:{\"font-size\":\"30px\"}},[_vm._v(\"\\n            \"+_vm._s(_vm.calculateHrsEq(_vm.currentProfile))+\"\\n          \")]),_c('span',{staticStyle:{\"font-weight\":\"bold\"}},[_vm._v(\"\\n            eqv. hours of community work\\n          \")])])],1),_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\",\"align-center\":\"\",\"justify-center\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('v-img',{staticStyle:{\"margin\":\"auto\",\"max-width\":\"90%\"},attrs:{\"src\":_vm.currentProfile.imageUrl,\"width\":\"600px\"}})],1),_c('v-flex',{staticClass:\"whoWeAre\",attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('div',{staticClass:\"textBlock pa-4\"},[_c('h1',[_vm._v(\"Who we are\")]),_c('div',{staticClass:\"body-1\"},[_vm._v(\"\\n              \"+_vm._s(_vm.currentProfile.whoWeAre)+\"\\n            \")])])]),(_vm.currentProfile.chosenGoodCause)?_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-layout',{attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{staticClass:\"recentImpact\",attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('div',{staticClass:\"textBlock pa-4\"},[_c('div',{staticClass:\"textBlockContent\"},[_c('h1',[_vm._v(\"A recent impact story from one of our Good Causes\")]),_c('br'),_c('div',{staticClass:\"body-1\",staticStyle:{\"padding-bottom\":\"20px\"}},[_vm._v(\"\\n                    \"+_vm._s(_vm.currentProfile.recentImpactStory)+\"\\n                  \")])])])]),_c('v-flex',{staticClass:\"pa-4\",attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('h1',{staticClass:\"text-xs-center my-4 primary--text\"},[_vm._v(\"\\n                Our purchases support\\n              \")]),_c('v-img',{staticStyle:{\"margin\":\"auto\",\"max-width\":\"90%\"},attrs:{\"src\":_vm.chosenGoodCause[0].imageUrl,\"width\":\"400px\"}})],1)],1)],1):_vm._e(),(\n            _vm.currentProfile.buyerSelected &&\n            _vm.currentProfile.cCTotal != '' &&\n            _vm.currentProfile.cCTotal != null &&\n            _vm.currentProfile.cCTotal > 0\n          )?_c('v-flex',{staticClass:\"buyerSection bg-supplier-color\",attrs:{\"xs12\":\"\"}},[_c('v-layout',{staticClass:\"contentMaxWidthBuyer pa-4\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[(_vm.$vuetify.breakpoint.mdAndUp)?_c('v-layout',{attrs:{\"align-center\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('h1',[_vm._v(\"Our impact as a Buyer\")])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('v-img',{staticClass:\"ml-auto\",attrs:{\"width\":\"100\",\"height\":\"100\",\"src\":\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Impact+Buyer+Badge-02.svg\"}})],1)],1):_c('v-layout',{attrs:{\"align-center\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-img',{staticClass:\"mx-auto\",attrs:{\"width\":\"200\",\"height\":\"200\",\"src\":\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Impact+Buyer+Badge-02.svg\"}})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('h1',{staticClass:\"ma-5\",staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"\\n                    Our impact as a Buyer\\n                  \")])])],1)],1),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"title impactCardBody\"},[_vm._v(\"\\n                    \"+_vm._s(_vm.currentProfile.suppliersUsed)+\"\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Upstream Suppliers\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.buyersSlogan)+\"\\n                \")])],1)]),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"title impactCardBody\"},[_vm._v(\"\\n                    $\"+_vm._s(_vm._f(\"moneyWithComma\")(Math.round(_vm.currentProfile.cCTotal)))+\"\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Generated Funds\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.contributionsGeneratedSlogan)+\"\\n                \")])],1)]),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"impactCardBody title\"},[_vm._v(\"\\n                    \"+_vm._s(_vm.communityHourCalc)+\" hrs\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Community Work\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.communityHoursSlogan)+\"\\n                \")])],1)])],1)],1):_vm._e(),(\n            _vm.currentProfile.supplierSelected &&\n            _vm.currentProfile.supplier_cCTotal != '' &&\n            _vm.currentProfile.supplier_cCTotal != null &&\n            _vm.currentProfile.supplier_cCTotal > 0\n          )?_c('v-flex',{staticClass:\"supplierSection\",attrs:{\"xs12\":\"\"}},[_c('v-layout',{staticClass:\"contentMaxWidthBuyer pa-4\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[(_vm.$vuetify.breakpoint.mdAndUp)?_c('v-layout',{attrs:{\"align-center\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm10\":\"\"}},[_c('h1',[_vm._v(\"Our impact as a Supplier\")])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm2\":\"\"}},[_c('v-img',{staticClass:\"ml-auto\",attrs:{\"height\":\"100\",\"width\":\"100\",\"src\":\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Approved+Supplier+Badge-01.svg\"},on:{\"click\":function($event){return _vm.$router.push(\n                        '/GoodCauses/' + _vm.currentProfile.goodCause_id\n                      )}}})],1)],1):_c('v-layout',{attrs:{\"align-center\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-img',{directives:[{name:\"ripple\",rawName:\"v-ripple\"}],staticClass:\"mx-auto\",attrs:{\"width\":\"200\",\"height\":\"200\",\"src\":\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Approved+Supplier+Badge-01.svg\"},on:{\"click\":function($event){return _vm.$router.push(\n                        '/GoodCauses/' + _vm.currentProfile.goodCause_id\n                      )}}})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('h1',{staticClass:\"ma-5\",staticStyle:{\"text-align\":\"center\"}},[_vm._v(\"\\n                    Our impact as a Supplier\\n                  \")])])],1)],1),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"title impactCardBody\"},[_vm._v(\"\\n                    \"+_vm._s(_vm.currentProfile.supplier_enquiryTotal)+\"\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Upstream Sales\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.suppliersSlogan)+\"\\n                \")])],1)]),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"title impactCardBody\"},[_vm._v(\"\\n                    $\"+_vm._s(_vm._f(\"moneyWithComma\")(Math.round(_vm.currentProfile.supplier_cCTotal)))+\"\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Generated Funds\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.contributionsGeneratedSloganSupplier)+\"\\n                \")])],1)]),_c('v-flex',{staticClass:\"px-2\",attrs:{\"xs12\":\"\",\"lg4\":\"\"}},[_c('div',{staticClass:\"impactCard\"},[_c('v-card-title',{staticClass:\"impactCardBodyTitle\"},[_c('div',{staticClass:\"impactCardBody title\"},[_vm._v(\"\\n                    \"+_vm._s(_vm.communityHourCalcSupplier)+\" hrs\\n                  \")])]),_c('div',{staticClass:\"impactCardTitle\"},[_vm._v(\"Community Work\")]),_c('div',{staticClass:\"impactCardFooter\"},[_vm._v(\"\\n                  \"+_vm._s(_vm.currentProfile.communityHoursSloganSupplier)+\"\\n                \")])],1)])],1)],1):_vm._e()],1)],1)])],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div\n    v-if=\"\n      !goodCauseLoading &&\n      !currentProfileLoading &&\n      currentProfile != undefined &&\n      (currentProfile.status == 'Live Report' ||\n        currentProfile.id == userData.impactBusiness_id)\n    \"\n    fill-height\n    fluid\n  >\n    <v-layout justify-center wrap>\n      <div\n        :class=\"`${$vuetify.breakpoint.mdAndUp ? 'py-5' : 'py-3'}`\"\n        style=\"width: 100%\"\n      >\n        <!---------------------HEADER DESKTOP ----------------->\n        <v-layout\n          v-if=\"$vuetify.breakpoint.smAndUp\"\n          style=\"max-width: 1600px; margin: auto\"\n          row\n          wrap\n          align-center\n          justify-center\n        >\n          <!-- Title & badge section -->\n          <v-flex xs12 sm6 class=\"mb-4\">\n            <h1\n              class=\"text-xs-left px-4\"\n              :style=\"`${\n                $vuetify.breakpoint.smAndDown\n                  ? 'font-size: 2rem !important'\n                  : ''\n              }`\"\n            >\n              Our Upstream Impact Report\n            </h1>\n            <!-- <div class=\"headline font-weight-thin\" style=\"color: #4cc7e8\">\n              {{ currentProfile.name }}\n            </div> -->\n          </v-flex>\n\n          <v-flex xs12 sm6 class=\"mb-4\">\n            <v-layout\n              row\n              wrap\n              class=\"text-xs-center text-sm-right\"\n              style=\"width: 100%\"\n            >\n              <v-flex xs12>\n                <div style=\"display: inline\" class=\"pa-3\">\n                  <h2 style=\"font-size: 30px; display: inline; color: #162c47\">\n                    {{ calculateTotalContributions(currentProfile) }}\n                  </h2>\n                  <span\n                    style=\"\n                      display: inline;\n                      font-weight: bold;\n                      font-size: 25px;\n                      color: #162c47;\n                      text-align: left;\n                    \"\n                    >generated for Good Causes</span\n                  >\n                </div>\n                <br />\n                <div style=\"display: inline\" class=\"pa-3\">\n                  <h2 style=\"font-size: 30px; display: inline; color: #162c47\">\n                    {{ calculateHrsEq(currentProfile) }}\n                  </h2>\n                  <span\n                    style=\"\n                      display: inline;\n                      font-weight: bold;\n                      text-align: left;\n                      font-size: 25px;\n                      color: #162c47;\n                    \"\n                  >\n                    eqv. hours of community work\n                  </span>\n                </div>\n              </v-flex>\n            </v-layout>\n          </v-flex>\n          <!-- end of title & badge section -->\n        </v-layout>\n        <!--------------HEADER DESKTOP END------ -->\n        <!------HEADER MOBILE--------------------------->\n        <v-layout v-else row wrap align-center class=\"text-xs-center mb-4\">\n          <v-flex xs12>\n            <h1 class=\"text-xs-center px-4\">Our Upstream Impact Report</h1>\n          </v-flex>\n          <v-flex xs12>\n            <h2 class=\"primary--text\" style=\"font-size: 30px\">\n              {{ calculateTotalContributions(currentProfile) }}\n            </h2>\n            <span style=\"font-weight: bold\">generated for Good Causes</span>\n          </v-flex>\n          <v-flex xs12>\n            <h2 class=\"primary--text\" style=\"font-size: 30px\">\n              {{ calculateHrsEq(currentProfile) }}\n            </h2>\n            <span style=\"font-weight: bold\">\n              eqv. hours of community work\n            </span>\n          </v-flex>\n        </v-layout>\n        <!----------------------HEADER MOBILE END--------------------------->\n        <v-layout row wrap align-center justify-center>\n          <!-- Who we are section -->\n          <v-flex xs12 sm6>\n            <v-img\n              :src=\"currentProfile.imageUrl\"\n              width=\"600px\"\n              style=\"margin: auto; max-width: 90%\"\n            />\n          </v-flex>\n          <v-flex xs12 sm6 class=\"whoWeAre\">\n            <div class=\"textBlock pa-4\">\n              <h1>Who we are</h1>\n              <div class=\"body-1\">\n                {{ currentProfile.whoWeAre }}\n              </div>\n            </div>\n            <!-- <div class=\"headline heading\">Why we care</div>\n                <div class=\"body-1\" style=\"padding-bottom: 20px;\">{{ currentProfile.whyWeCare }}</div> -->\n          </v-flex>\n\n          <!-- Impact & GC section -->\n          <v-flex v-if=\"currentProfile.chosenGoodCause\" xs12>\n            <v-layout row wrap>\n              <v-flex xs12 sm6 class=\"recentImpact\">\n                <div class=\"textBlock pa-4\">\n                  <div class=\"textBlockContent\">\n                    <h1>A recent impact story from one of our Good Causes</h1>\n                    <br />\n                    <div class=\"body-1\" style=\"padding-bottom: 20px\">\n                      {{ currentProfile.recentImpactStory }}\n                    </div>\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 sm6 class=\"pa-4\">\n                <h1 class=\"text-xs-center my-4 primary--text\">\n                  Our purchases support\n                </h1>\n                <v-img\n                  :src=\"chosenGoodCause[0].imageUrl\"\n                  width=\"400px\"\n                  style=\"margin: auto; max-width: 90%\"\n                >\n                  <!-- <v-container fill-height fluid>\n                        <v-layout fill-height>\n                          <v-flex xs12 align-end flexbox />\n                        </v-layout>\n                      </v-container> -->\n                </v-img>\n              </v-flex>\n            </v-layout>\n          </v-flex>\n\n          <!-- Buyer section -->\n          <v-flex\n            xs12\n            class=\"buyerSection bg-supplier-color\"\n            v-if=\"\n              currentProfile.buyerSelected &&\n              currentProfile.cCTotal != '' &&\n              currentProfile.cCTotal != null &&\n              currentProfile.cCTotal > 0\n            \"\n          >\n            <v-layout row wrap class=\"contentMaxWidthBuyer pa-4\">\n              <v-flex xs12>\n                <v-layout\n                  v-if=\"$vuetify.breakpoint.mdAndUp\"\n                  align-center\n                  row\n                  wrap\n                >\n                  <v-flex xs12 sm6>\n                    <h1>Our impact as a Buyer</h1>\n                  </v-flex>\n\n                  <v-flex xs12 sm6>\n                    <v-img\n                      class=\"ml-auto\"\n                      width=\"100\"\n                      height=\"100\"\n                      src=\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Impact+Buyer+Badge-02.svg\"\n                    ></v-img>\n                  </v-flex>\n                </v-layout>\n\n                <v-layout v-else align-center row wrap>\n                  <v-flex xs12>\n                    <v-img\n                      class=\"mx-auto\"\n                      width=\"200\"\n                      height=\"200\"\n                      src=\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Impact+Buyer+Badge-02.svg\"\n                    ></v-img>\n                  </v-flex>\n                  <v-flex xs12>\n                    <h1 class=\"ma-5\" style=\"text-align: center\">\n                      Our impact as a Buyer\n                    </h1>\n                  </v-flex>\n                </v-layout>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"title impactCardBody\">\n                      {{ currentProfile.suppliersUsed }}\n                    </div>\n                    <!-- <v-img\n                      class=\"impactCardImage\"\n                      :src=\"\n                        require('../assets/Values/Approved_Supplier-04.png')\n                      \"\n                      contain\n                    /> -->\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Upstream Suppliers</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.buyersSlogan }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"title impactCardBody\">\n                      ${{\n                        Math.round(currentProfile.cCTotal) | moneyWithComma()\n                      }}\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Generated Funds</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.contributionsGeneratedSlogan }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"impactCardBody title\">\n                      {{ communityHourCalc }} hrs\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Community Work</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.communityHoursSlogan }}\n                  </div>\n                </div>\n              </v-flex>\n            </v-layout>\n\n            <!-- This section has been cut out of the design -->\n            <!-- <v-layout row wrap v-if=\"currentProfile.tradiesSelected\">\n              <v-flex xs12 sm4>\n                <div class=\"impactCard\">\n                  <div class=\"impactCardTitle\">We Are A</div>\n                  <v-img\n                    :src=\"require('../assets/Values/UpstreamNZ Badges-04.png')\"\n                    style=\"\n                      cursor: default;\n                      height: 185px;\n                      margin-top: 25px;\n                      margin-bottom: 25px;\n                    \"\n                    contain\n                  />\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.tradieSlogan }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 sm4>\n                <div class=\"impactCard\">\n                  <div class=\"impactCardTitle\">That Diverted</div>\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"impactCardBody title\">\n                      {{ currentProfile.tradieStat1 }}\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.tradieMessage1 }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 sm4>\n                <div class=\"impactCard\">\n                  <div class=\"impactCardTitle\">From Using</div>\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"impactCardBody title\">\n                      {{ currentProfile.tradieStat2 }}\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.tradieMessage2 }}\n                  </div>\n                </div>\n              </v-flex>\n            </v-layout> -->\n          </v-flex>\n\n          <!-- supplier section -->\n          <v-flex\n            xs12\n            class=\"supplierSection\"\n            v-if=\"\n              currentProfile.supplierSelected &&\n              currentProfile.supplier_cCTotal != '' &&\n              currentProfile.supplier_cCTotal != null &&\n              currentProfile.supplier_cCTotal > 0\n            \"\n          >\n            <v-layout row wrap class=\"contentMaxWidthBuyer pa-4\">\n              <v-flex xs12>\n                <v-layout\n                  v-if=\"$vuetify.breakpoint.mdAndUp\"\n                  align-center\n                  row\n                  wrap\n                >\n                  <v-flex xs12 sm10>\n                    <h1>Our impact as a Supplier</h1>\n                  </v-flex>\n\n                  <v-flex xs12 sm2>\n                    <v-img\n                      @click=\"\n                        $router.push(\n                          '/GoodCauses/' + currentProfile.goodCause_id\n                        )\n                      \"\n                      class=\"ml-auto\"\n                      height=\"100\"\n                      width=\"100\"\n                      src=\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Approved+Supplier+Badge-01.svg\"\n                    ></v-img>\n                  </v-flex>\n                </v-layout>\n                <v-layout v-else align-center row wrap>\n                  <v-flex xs12>\n                    <v-img\n                      @click=\"\n                        $router.push(\n                          '/GoodCauses/' + currentProfile.goodCause_id\n                        )\n                      \"\n                      v-ripple\n                      class=\"mx-auto\"\n                      width=\"200\"\n                      height=\"200\"\n                      src=\"https://upstreamnz.s3.ap-southeast-2.amazonaws.com/impactBuyerBadges/Approved+Supplier+Badge-01.svg\"\n                    ></v-img>\n                  </v-flex>\n                  <v-flex xs12>\n                    <h1 class=\"ma-5\" style=\"text-align: center\">\n                      Our impact as a Supplier\n                    </h1>\n                  </v-flex>\n                </v-layout>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"title impactCardBody\">\n                      {{ currentProfile.supplier_enquiryTotal }}\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Upstream Sales</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.suppliersSlogan }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"title impactCardBody\">\n                      <!-- <v-icon style=\"font-size: 55pt; color: #4cc7e8\"\n                        >mdi-charity</v-icon\n                      > -->\n                      ${{\n                        Math.round(currentProfile.supplier_cCTotal)\n                          | moneyWithComma()\n                      }}\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Generated Funds</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.contributionsGeneratedSloganSupplier }}\n                  </div>\n                </div>\n              </v-flex>\n              <v-flex xs12 lg4 class=\"px-2\">\n                <div class=\"impactCard\">\n                  <v-card-title class=\"impactCardBodyTitle\">\n                    <div class=\"impactCardBody title\">\n                      {{ communityHourCalcSupplier }} hrs\n                    </div>\n                  </v-card-title>\n                  <div class=\"impactCardTitle\">Community Work</div>\n                  <div class=\"impactCardFooter\">\n                    {{ currentProfile.communityHoursSloganSupplier }}\n                  </div>\n                </div>\n              </v-flex>\n            </v-layout>\n          </v-flex>\n        </v-layout>\n        <!--<pre>{{ currentProfile }}</pre>-->\n      </div>\n    </v-layout>\n  </div>\n</template>\n\n<script>\nimport { mapGetters } from \"vuex\";\n\nexport default {\n  data: () => ({\n    customRoutes: {\n      coffee: \"inrvq2lcoW1PV30PsdVH\",\n      power: \"z14vz7TiRWXNLRnKBbFD\",\n    },\n    communityHours: 0,\n  }),\n  computed: {\n    ...mapGetters({\n      user: \"user\",\n      userData: \"user/userData\",\n      goodCauseLoading: \"goodCauses/loading\",\n      currentProfileLoading: \"impactBusinesses/loading\",\n      currentProfile: \"impactBusinesses/currentProfile\",\n      keywords: \"impactBusinesses/keywords\",\n\n      goodCauses: \"goodCauses/list\",\n    }),\n    chosenGoodCause: function () {\n      let goodCause = this.goodCauses.filter(\n        (gc) => gc.id == this.currentProfile.goodCause_id\n      );\n      return goodCause;\n    },\n    communityHourCalc: function () {\n      let hours = this.calculateCommunityHrs(this.currentProfile.cCTotal);\n      if (hours > this.communityHours) {\n        return hours;\n      } else {\n        return this.communityHours;\n      }\n    },\n    communityHourCalcSupplier: function () {\n      let hours = this.calculateCommunityHrs(\n        this.currentProfile.supplier_cCTotal\n      );\n      if (hours > this.communityHours) {\n        return hours;\n      } else {\n        return this.communityHours;\n      }\n    },\n  },\n  mounted() {\n    this.$store.dispatch(\"goodCauses/loadAll\");\n  },\n  created() {\n    this.$nextTick(async function () {\n      await this.$store.dispatch(\n        \"impactBusinesses/loadProfileByKeyword\",\n        this.$route.params.keyword\n      );\n    });\n  },\n  methods: {\n    calculateTotalContributions(business) {\n      let formatter = new Intl.NumberFormat(\"en-US\", {\n        style: \"currency\",\n        currency: \"USD\",\n        minimumFractionDigits: 0,\n        maximumFractionDigits: 0,\n      });\n\n      if (business.totalContributions != \"\") {\n        return formatter.format(parseFloat(business.totalContributions));\n      } else if (business.cCTotal != \"\") {\n        return formatter.format(parseFloat(business.cCTotal));\n      } else if (business.supplier_cCTotal != \"\") {\n        return formatter.format(parseFloat(business.supplier_cCTotal));\n      } else {\n        return \"$0\";\n      }\n    },\n    calculateHrsEq(business) {\n      if (business.totalContributions != \"\") {\n        return this.calculateCommunityHrs(business.totalContributions);\n      } else if (business.cCTotal != \"\") {\n        return this.calculateCommunityHrs(business.cCTotal);\n      } else if (business.supplier_cCTotal != \"\") {\n        return this.calculateCommunityHrs(business.supplier_cCTotal);\n      } else {\n        return \"0\";\n      }\n    },\n  },\n};\n</script>\n\n<style>\n.primaryTextColor {\n  color: #4cc7e8;\n}\n\nh1 {\n  color: #4cc7e8;\n  text-align: left;\n}\n\n.heading {\n  color: #4dc8ed;\n}\n\n.application {\n  background-color: white !important;\n}\n\n.sectionHeader {\n  /* border-bottom: 1px solid #4dc8ed; */\n  color: #4dc8ed;\n}\n\n.nl2br {\n  white-space: pre-line;\n}\n\n.bg-supplier-color {\n  background-color: #4cc7e8 !important;\n}\n\n.bg-impactBuyer {\n  background-color: #162c47;\n}\n\n.textBlock {\n  max-width: 600px;\n  margin: auto;\n  min-height: 400px;\n  display: flex;\n  flex-flow: row wrap;\n  align-content: center;\n}\n\n.textBlock h1 {\n  flex: 1 0 100%;\n  margin-bottom: 36px;\n}\n\n.whoWeAre {\n  background-color: #4cc7e8;\n  color: white;\n  display: flex;\n}\n\n.whoWeAre h1 {\n  color: white !important;\n}\n\n.whoWeAre .body-1 {\n  line-height: 1.6 !important;\n}\n\n.recentImpact {\n  background-color: #162c47;\n  color: white;\n  display: flex;\n}\n\n.recentImpact h1 {\n  color: white;\n}\n\n.recentImpact .body-1 {\n  line-height: 1.6 !important;\n}\n\n.buyerSection {\n  color: white;\n}\n\n.buyerSection h1 {\n  color: white !important;\n}\n\n.supplierSection .impactCardBody {\n  color: #4cc7e8;\n}\n\n.supplierSection .impactCardTitle {\n  color: white;\n}\n\n.buyerSection,\n.supplierSection {\n  /* padding: 48px 12% !important; */\n  min-height: 550px;\n  display: flex;\n}\n\n.contentMaxWidthBuyer {\n  max-width: 1200px;\n  margin: auto;\n}\n\n.impactCard {\n  max-width: 350px;\n  margin: auto;\n}\n\n.impactCardBody {\n  font-weight: bold !important;\n  font-family: Gotham !important;\n  font-size: 55pt !important;\n  margin-bottom: 0 !important;\n  text-align: center;\n  width: 100%;\n}\n\n.impactCardBodyTitle {\n  height: 140px;\n}\n\n.impactCardTitle {\n  font-weight: bold !important;\n  font-family: Gotham !important;\n  font-size: 1.6rem !important;\n  color: #4cc7e8;\n  background-color: #162c47;\n  text-align: center;\n  padding: 12px;\n  line-height: 1.2;\n}\n\n.impactCardImageWrapper {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: center;\n  padding: 16px;\n}\n\n.impactCardImage {\n  cursor: default;\n  height: 160px;\n  max-width: 160px;\n  margin-top: 21px;\n  margin-bottom: 21px;\n  display: inline-block;\n}\n\n.impactCardFooter {\n  margin-top: 30px;\n  max-width: 300px;\n}\n\n#silentbox-overlay__description {\n  color: #000;\n  background: rgb(77, 200, 237);\n  padding: 5px;\n  border: 1px solid white;\n  font-size: 14pt !important;\n}\n\n@media only screen and (min-width: 1264px) {\n  .pageContent {\n    max-width: 1200px;\n  }\n}\n\n@media only screen and (max-width: 1264px) {\n  .pageContent {\n    max-width: 1200px;\n  }\n}\n\n@media only screen and (max-width: 420px) {\n  .impactCardBody {\n    font-size: 2rem !important;\n  }\n  .impactCardBodyTitle {\n    height: 90px;\n  }\n}\n</style>\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!./ImpactBusinessProfile.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!./ImpactBusinessProfile.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ImpactBusinessProfile.vue?vue&type=template&id=1993a984\"\nimport script from \"./ImpactBusinessProfile.vue?vue&type=script&lang=js\"\nexport * from \"./ImpactBusinessProfile.vue?vue&type=script&lang=js\"\nimport style0 from \"./ImpactBusinessProfile.vue?vue&type=style&index=0&id=1993a984&prod&lang=css\"\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"],"sourceRoot":""}