{"version":3,"sources":["webpack:///./src/views/Manage/FirstRun.vue","webpack:///src/views/Manage/FirstRun.vue","webpack:///./src/views/Manage/FirstRun.vue?6d5c","webpack:///./src/views/Manage/FirstRun.vue?779c","webpack:///./src/views/Manage/FirstRun.vue?96dc"],"names":["render","_vm","this","_c","_self","staticClass","class","setActiveMenu","stepZeroCompleted","on","$event","isSavingData","goToStep","currentStep","attrs","_e","_v","_s","$t","stepOneCompleted","stepTwoCompleted","stepThreeCompleted","stepFourCompleted","allowPricing","stepFiveCompleted","stepSixCompleted","ref","val","disableNext","nextIsLoading","buttonsHidden","disablePrevious","previousStep","nextStep","staticRenderFns","name","components","Start","BasicInformation","LocationDescription","LocationPhotos","LocationSpaces","LocationPricing","Finish","MenuFooter","data","locationId","Number","$route","params","computed","_objectSpread","mapState","mapGetters","output","k","locationAllowPrices","mounted","getLocationData","created","locationState","FirstRun","$router","push","methods","mapMutations","stepIndex","previousStepCompleted","self","locationProvider","then","response","status","setLocation","catch","error","finally","stepDestination","$refs","BasicInformationComponent","saveAndNext","DescriptionComponent","PhotosComponent","next","component"],"mappings":"mHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,kEAAkE,CAACF,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACF,EAAG,KAAK,CAACE,YAAY,aAAaC,MAAML,EAAIM,cAAc,EAAGN,EAAIO,mBAAmBC,GAAG,CAAC,MAAQ,SAASC,IAAQT,EAAIO,mBAAsBP,EAAIU,cAAeV,EAAIW,SAAS,MAAW,CAACT,EAAG,OAAO,CAACE,YAAY,iBAAiB,CAAsB,IAApBJ,EAAIY,YAAmBV,EAAG,oBAAoB,CAACW,MAAM,CAAC,KAAO,CAAC,KAAM,YAAYb,EAAIc,KAA0B,IAApBd,EAAIY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AAJ,eAAA,EACA,SAAAhB,aACA,KAAAL,mBAAA,EACA,KAAAK,eACA,SAAAA,YACA,KAAAiE,MAAAC,0BAAAC,cACA,SAAAnE,YACA,KAAAiE,MAAAG,qBAAAD,cACA,SAAAnE,YACA,KAAAiE,MAAAI,gBAAAC,OACA,SAAAtE,aACA,KAAAS,mBAAA,EACA,KAAAT,YAAA,KAAAA,aAAA,KAAAU,aAAA,MACA,SAAAV,cACA,KAAAW,mBAAA,EACA,KAAAC,kBAAA,EACA,KAAAI,eAAA,EACA,KAAAhB,mBCrZgW,I,wBCQ5VuE,EAAY,eACd,EACApF,EACAkC,GACA,EACA,KACA,WACA,MAIa,aAAAkD,E,2CCnBf,W","file":"js/firstrun.js?id=4a57f53b4611bd1d91ed","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-wrapper\"},[_c('div',{staticClass:\"menu-wrapper\"},[_c('div',{staticClass:\"main-menu has-shadow has-padding-top has-background-grey-light\"},[_c('ul',{staticClass:\"menu\"},[_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(0, _vm.stepZeroCompleted),on:{\"click\":function($event){_vm.stepZeroCompleted && !_vm.isSavingData ? _vm.goToStep(0) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 0)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 0)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Start')))])]),_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(1, _vm.stepOneCompleted),on:{\"click\":function($event){_vm.stepZeroCompleted && !_vm.isSavingData ? _vm.goToStep(1) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 1)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 1)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Basic-information')))])]),_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(2, _vm.stepTwoCompleted),on:{\"click\":function($event){_vm.stepOneCompleted && !_vm.isSavingData ? _vm.goToStep(2) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 2)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 2)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Description')))])]),_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(3, _vm.stepThreeCompleted),on:{\"click\":function($event){_vm.stepTwoCompleted && !_vm.isSavingData ? _vm.goToStep(3) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 3)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 3)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Photos')))])]),_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(4, _vm.stepFourCompleted),on:{\"click\":function($event){_vm.stepThreeCompleted && !_vm.isSavingData ? _vm.goToStep(4) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 4)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 4)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Spaces')))])]),(_vm.allowPricing)?_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(5, _vm.stepFiveCompleted),on:{\"click\":function($event){_vm.stepFourCompleted && !_vm.isSavingData ? _vm.goToStep(5) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 5)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 5)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_Pricing')))])]):_vm._e(),_c('li',{staticClass:\"title is-5\",class:_vm.setActiveMenu(6, _vm.stepSixCompleted),on:{\"click\":function($event){_vm.stepFiveCompleted && !_vm.isSavingData ? _vm.goToStep(6) : {}}}},[_c('span',{staticClass:\"icon is-small\"},[(_vm.currentStep !== 6)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'check']}}):_vm._e(),(_vm.currentStep === 6)?_c('font-awesome-icon',{attrs:{\"icon\":['fa', 'arrow-right']}}):_vm._e()],1),_c('span',[_vm._v(_vm._s(_vm.$t('Components.FirstRun.FirstRun.Sidebar_End')))])])]),_c('MenuFooter',{staticClass:\"menu-footer\"})],1)]),_c('div',{staticClass:\"page-wrapper\"},[_c('div',{staticClass:\"has-padding page-first-run\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[(_vm.currentStep === 0)?_c('Start'):_vm._e(),(_vm.currentStep === 1)?_c('BasicInformation',{ref:\"BasicInformationComponent\",on:{\"disable-next\":(val) => {\n              _vm.disableNext = val;\n            },\"next-step\":function($event){_vm.currentStep++},\"completed\":function($event){_vm.stepOneCompleted = true},\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"saving-data\":function($event){_vm.isSavingData = true},\"not-saving-data\":function($event){_vm.isSavingData = false},\"show-buttons\":function($event){_vm.buttonsHidden = false}}}):_vm._e(),(_vm.currentStep === 2)?_c('LocationDescription',{ref:\"DescriptionComponent\",on:{\"disable-next\":function($event){_vm.disableNext = true},\"enable-next\":function($event){_vm.disableNext = false},\"next-step\":function($event){_vm.currentStep++},\"completed\":function($event){_vm.stepTwoCompleted = true},\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"saving-data\":function($event){_vm.isSavingData = true},\"not-saving-data\":function($event){_vm.isSavingData = false},\"show-buttons\":function($event){_vm.buttonsHidden = false}}}):_vm._e(),(_vm.currentStep === 3)?_c('LocationPhotos',{ref:\"PhotosComponent\",on:{\"disable-next\":function($event){_vm.disableNext = true},\"enable-next\":function($event){_vm.disableNext = false},\"enable-previous\":function($event){_vm.disablePrevious = false},\"next-step\":function($event){_vm.currentStep++},\"completed\":function($event){_vm.stepThreeCompleted = true},\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"saving-data\":function($event){_vm.isSavingData = true},\"not-saving-data\":function($event){_vm.isSavingData = false},\"show-buttons\":function($event){_vm.buttonsHidden = false}}}):_vm._e(),(_vm.currentStep === 4)?_c('LocationSpaces',{on:{\"enable-previous\":function($event){_vm.disablePrevious = false},\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"previous-step\":function($event){_vm.currentStep--},\"hide-buttons\":function($event){_vm.buttonsHidden = true},\"show-buttons\":function($event){_vm.buttonsHidden = false},\"saving-data\":function($event){_vm.isSavingData = true},\"not-saving-data\":function($event){_vm.isSavingData = false}}}):_vm._e(),(_vm.currentStep === 5)?_c('LocationPricing',{on:{\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"show-buttons\":function($event){_vm.buttonsHidden = false},\"completed\":function($event){_vm.stepFiveCompleted = true}}}):_vm._e(),(_vm.currentStep === 6)?_c('Finish',{on:{\"next-not-loading\":function($event){_vm.nextIsLoading = false},\"show-buttons\":function($event){_vm.buttonsHidden = false},\"updateNextButtonState\":(val) => (_vm.nextIsLoading = val)}}):_vm._e()],1),_c('div',{staticClass:\"has-padding-top-x2 has-padding-bottom-x2 buttons is-centered\",class:[\n          { 'is-hidden': _vm.buttonsHidden },\n          _vm.currentStep !== 6 ? 'is-centered' : '',\n        ]},[(_vm.currentStep !== 0)?_c('button',{staticClass:\"button is-medium is-ghost\",attrs:{\"disabled\":_vm.disablePrevious || _vm.nextIsLoading},on:{\"click\":_vm.previousStep}},[_vm._v(\" \"+_vm._s(_vm.$t('Form.Control.Previous-step'))+\" \")]):_vm._e(),(_vm.currentStep !== 0 && _vm.currentStep !== 6)?_c('button',{staticClass:\"button is-medium is-success\",class:{ 'is-loading': _vm.nextIsLoading },attrs:{\"disabled\":_vm.disableNext},on:{\"click\":_vm.nextStep}},[_vm._v(\" \"+_vm._s(_vm.$t('Form.Control.Next-step'))+\" \")]):_vm._e(),(_vm.currentStep === 0)?_c('button',{staticClass:\"button is-medium is-success\",on:{\"click\":_vm.nextStep}},[_vm._v(\" \"+_vm._s(_vm.$t('Form.Control.Get-started'))+\" \")]):_vm._e()])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"main-wrapper\">\n    <!-- Sidebar -->\n\n    <div class=\"menu-wrapper\">\n      <div\n        class=\"main-menu has-shadow has-padding-top has-background-grey-light\"\n      >\n        <ul class=\"menu\">\n          <!-- Step 0, start -->\n          <li\n            @click=\"stepZeroCompleted && !isSavingData ? goToStep(0) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(0, stepZeroCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 0\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 0\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{ $t('Components.FirstRun.FirstRun.Sidebar_Start') }}</span>\n          </li>\n          <!-- Step 1, basic info -->\n          <li\n            @click=\"stepZeroCompleted && !isSavingData ? goToStep(1) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(1, stepOneCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 1\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 1\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{\n              $t('Components.FirstRun.FirstRun.Sidebar_Basic-information')\n            }}</span>\n          </li>\n          <!-- Step 2, description -->\n          <li\n            @click=\"stepOneCompleted && !isSavingData ? goToStep(2) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(2, stepTwoCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 2\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 2\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{\n              $t('Components.FirstRun.FirstRun.Sidebar_Description')\n            }}</span>\n          </li>\n          <!-- Step 3, photos -->\n          <li\n            @click=\"stepTwoCompleted && !isSavingData ? goToStep(3) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(3, stepThreeCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 3\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 3\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{ $t('Components.FirstRun.FirstRun.Sidebar_Photos') }}</span>\n          </li>\n          <!-- Step 4 spaces -->\n          <li\n            @click=\"stepThreeCompleted && !isSavingData ? goToStep(4) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(4, stepFourCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 4\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 4\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{ $t('Components.FirstRun.FirstRun.Sidebar_Spaces') }}</span>\n          </li>\n          <!-- Step 5, pricing -->\n          <li\n            v-if=\"allowPricing\"\n            @click=\"stepFourCompleted && !isSavingData ? goToStep(5) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(5, stepFiveCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 5\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 5\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{\n              $t('Components.FirstRun.FirstRun.Sidebar_Pricing')\n            }}</span>\n          </li>\n          <!-- Step 6, end -->\n          <li\n            @click=\"stepFiveCompleted && !isSavingData ? goToStep(6) : {}\"\n            class=\"title is-5\"\n            :class=\"setActiveMenu(6, stepSixCompleted)\"\n          >\n            <span class=\"icon is-small\">\n              <font-awesome-icon\n                v-if=\"currentStep !== 6\"\n                :icon=\"['fa', 'check']\"\n              />\n              <font-awesome-icon\n                v-if=\"currentStep === 6\"\n                :icon=\"['fa', 'arrow-right']\"\n              />\n            </span>\n            <span>{{ $t('Components.FirstRun.FirstRun.Sidebar_End') }}</span>\n          </li>\n        </ul>\n        <MenuFooter class=\"menu-footer\" />\n      </div>\n    </div>\n\n    <div class=\"page-wrapper\">\n      <!-- Page -->\n      <div class=\"has-padding page-first-run\">\n        <!-- Steps -->\n        <transition name=\"fade\" mode=\"out-in\">\n          <!-- Start -->\n          <Start v-if=\"currentStep === 0\" />\n          <!-- Basic Information -->\n          <BasicInformation\n            ref=\"BasicInformationComponent\"\n            @disable-next=\"\n              (val) => {\n                disableNext = val;\n              }\n            \"\n            @next-step=\"currentStep++\"\n            @completed=\"stepOneCompleted = true\"\n            @next-not-loading=\"nextIsLoading = false\"\n            @saving-data=\"isSavingData = true\"\n            @not-saving-data=\"isSavingData = false\"\n            @show-buttons=\"buttonsHidden = false\"\n            v-if=\"currentStep === 1\"\n          />\n          <!-- Description -->\n          <LocationDescription\n            ref=\"DescriptionComponent\"\n            @disable-next=\"disableNext = true\"\n            @enable-next=\"disableNext = false\"\n            @next-step=\"currentStep++\"\n            @completed=\"stepTwoCompleted = true\"\n            @next-not-loading=\"nextIsLoading = false\"\n            @saving-data=\"isSavingData = true\"\n            @not-saving-data=\"isSavingData = false\"\n            @show-buttons=\"buttonsHidden = false\"\n            v-if=\"currentStep === 2\"\n          />\n          <!-- Impression Photos -->\n          <LocationPhotos\n            ref=\"PhotosComponent\"\n            @disable-next=\"disableNext = true\"\n            @enable-next=\"disableNext = false\"\n            @enable-previous=\"disablePrevious = false\"\n            @next-step=\"currentStep++\"\n            @completed=\"stepThreeCompleted = true\"\n            @next-not-loading=\"nextIsLoading = false\"\n            @saving-data=\"isSavingData = true\"\n            @not-saving-data=\"isSavingData = false\"\n            @show-buttons=\"buttonsHidden = false\"\n            v-if=\"currentStep === 3\"\n          />\n          <!-- Spaces -->\n          <LocationSpaces\n            @enable-previous=\"disablePrevious = false\"\n            @next-not-loading=\"nextIsLoading = false\"\n            @previous-step=\"currentStep--\"\n            @hide-buttons=\"buttonsHidden = true\"\n            @show-buttons=\"buttonsHidden = false\"\n            @saving-data=\"isSavingData = true\"\n            @not-saving-data=\"isSavingData = false\"\n            v-if=\"currentStep === 4\"\n          />\n          <!-- (Base) Pricing -->\n          <LocationPricing\n            @next-not-loading=\"nextIsLoading = false\"\n            @show-buttons=\"buttonsHidden = false\"\n            @completed=\"stepFiveCompleted = true\"\n            v-if=\"currentStep === 5\"\n          />\n          <!-- End -->\n          <Finish\n            @next-not-loading=\"nextIsLoading = false\"\n            @show-buttons=\"buttonsHidden = false\"\n            v-if=\"currentStep === 6\"\n            @updateNextButtonState=\"(val) => (nextIsLoading = val)\"\n          />\n        </transition>\n        <!-- Previous/Next Buttons Bottom -->\n        <div\n          class=\"has-padding-top-x2 has-padding-bottom-x2 buttons is-centered\"\n          :class=\"[\n            { 'is-hidden': buttonsHidden },\n            currentStep !== 6 ? 'is-centered' : '',\n          ]\"\n        >\n          <button\n            @click=\"previousStep\"\n            v-if=\"currentStep !== 0\"\n            class=\"button is-medium is-ghost\"\n            :disabled=\"disablePrevious || nextIsLoading\"\n          >\n            {{ $t('Form.Control.Previous-step') }}\n          </button>\n          <button\n            @click=\"nextStep\"\n            v-if=\"currentStep !== 0 && currentStep !== 6\"\n            class=\"button is-medium is-success\"\n            :class=\"{ 'is-loading': nextIsLoading }\"\n            :disabled=\"disableNext\"\n          >\n            {{ $t('Form.Control.Next-step') }}\n          </button>\n          <button\n            @click=\"nextStep\"\n            v-if=\"currentStep === 0\"\n            class=\"button is-medium is-success\"\n          >\n            {{ $t('Form.Control.Get-started') }}\n          </button>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { mapState, mapGetters, mapMutations } from 'vuex';\nimport locationProvider from '@/providers/location';\n\nexport default {\n  name: 'first-run',\n  components: {\n    Start: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/Start'\n      ),\n    BasicInformation: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/BasicInformation'\n      ),\n    LocationDescription: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/LocationDescription'\n      ),\n    LocationPhotos: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/LocationPhotos'\n      ),\n    LocationSpaces: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/LocationSpaces'\n      ),\n    LocationPricing: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/LocationPricing'\n      ),\n    Finish: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/FirstRun/Steps/Finish'\n      ),\n    MenuFooter: () =>\n      import(\n        /* webpackChunkName: \"manage-firstrun\" */ '@/components/UI/MenuFooter'\n      ),\n  },\n  data() {\n    return {\n      locationId: Number(this.$route.params.locationId),\n      currentStep: 0,\n      disableNext: false,\n      disablePrevious: false,\n      stepZeroCompleted: false,\n      stepOneCompleted: false,\n      stepTwoCompleted: false,\n      stepThreeCompleted: false,\n      stepFourCompleted: false,\n      stepFiveCompleted: false,\n      stepSixCompleted: false,\n      nextIsLoading: false,\n      buttonsHidden: false,\n      isSavingData: false,\n    };\n  },\n  computed: {\n    ...mapState('locationStore', ['locationState']),\n    ...mapGetters('locationStore', ['locationAllowPrices']),\n\n    allowPricing() {\n      let output = false;\n      for (let k in this.locationAllowPrices) {\n        if (this.locationAllowPrices[k]) {\n          output = true;\n          break;\n        }\n      }\n      return output;\n    },\n  },\n  mounted() {\n    this.getLocationData();\n  },\n  created() {\n    if (!this.locationState.FirstRun) {\n      this.$router.push({ name: 'manage-home' });\n    }\n  },\n  methods: {\n    ...mapMutations('locationStore', ['setLocation']),\n\n    setActiveMenu(stepIndex, previousStepCompleted) {\n      return [\n        {\n          'is-active': this.currentStep === stepIndex,\n          'has-text-success':\n            this.currentStep > stepIndex || previousStepCompleted,\n          'has-text-grey is-unclickable': !previousStepCompleted,\n        },\n      ];\n    },\n\n    getLocationData() {\n      let self = this;\n      locationProvider.methods\n        .getLocationData(this.locationId)\n        .then((response) => {\n          if (response.status === 200) {\n            self.setLocation(response.data);\n          }\n        })\n        .catch((error) => {\n          //console.log(error)\n        })\n        .finally(() => {});\n    },\n\n    goToStep(stepDestination) {\n      this.nextIsLoading = true;\n      this.currentStep = stepDestination;\n      this.buttonsHidden = false;\n    },\n\n    previousStep() {\n      this.currentStep =\n        this.currentStep -\n        (this.currentStep === 6 && !this.allowPricing ? 2 : 1);\n      this.nextIsLoading = true;\n      if (this.currentStep === 0) {\n        this.disableNext = false;\n      }\n    },\n\n    nextStep() {\n      this.nextIsLoading = true;\n      if (this.currentStep === 0) {\n        this.stepZeroCompleted = true;\n        this.currentStep++;\n      } else if (this.currentStep === 1) {\n        this.$refs.BasicInformationComponent.saveAndNext();\n      } else if (this.currentStep === 2) {\n        this.$refs.DescriptionComponent.saveAndNext();\n      } else if (this.currentStep === 3) {\n        this.$refs.PhotosComponent.next();\n      } else if (this.currentStep === 4) {\n        this.stepFourCompleted = true;\n        this.currentStep = this.currentStep + (this.allowPricing ? 1 : 2);\n      } else if (this.currentStep === 5) {\n        this.stepFiveCompleted = true;\n        this.stepSixCompleted = true;\n        this.nextIsLoading = false;\n        this.currentStep++;\n      }\n    },\n    // completeFirstRun() {\n    //   this.nextIsLoading = true\n    //   this.$refs.FinishComponent.completeFirstRun()\n    // },\n  },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.menu-wrapper {\n  display: flex;\n  width: auto;\n  transition: 0.75s;\n  animation-duration: 0.5s;\n  overflow: hidden;\n  @media screen and (max-width: 1120px) {\n    overflow: hidden;\n    width: 0;\n    opacity: 0;\n  }\n\n  .main-menu {\n    display: flex;\n    flex-direction: column;\n    width: 240px;\n    .menu {\n      width: 100%;\n      flex-grow: 1;\n      overflow-x: hidden;\n      overflow-y: auto;\n    }\n  }\n}\n\nul {\n  // width: 200px;\n  li {\n    margin-bottom: 0 !important;\n    line-height: 50px;\n    display: flex;\n    align-items: center;\n    &.is-active {\n      color: $white !important;\n      background-color: $blue !important;\n    }\n    &.divider {\n      justify-content: center;\n    }\n\n    span {\n      &:first-child {\n        padding-left: 20px;\n        padding-right: 20px;\n      }\n    }\n  }\n}\n\n.buttons {\n  .button {\n    width: 200px;\n  }\n}\n\n// make page fullwidth\n.page-first-run {\n  width: 100%;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FirstRun.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FirstRun.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./FirstRun.vue?vue&type=template&id=c96677f2&scoped=true\"\nimport script from \"./FirstRun.vue?vue&type=script&lang=js\"\nexport * from \"./FirstRun.vue?vue&type=script&lang=js\"\nimport style0 from \"./FirstRun.vue?vue&type=style&index=0&id=c96677f2&prod&lang=scss&scoped=true\"\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  \"c96677f2\",\n  null\n  \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FirstRun.vue?vue&type=style&index=0&id=c96677f2&prod&lang=scss&scoped=true\""],"sourceRoot":""}