{"version":3,"sources":["webpack:///./src/pages/Shared/amenities/Main/index.vue?a59c","webpack:///./src/pages/Management/amenities/Adder/index.vue?fb6d","webpack:///./src/pages/Management/amenities/Adder/keys/computed.js","webpack:///./src/pages/Management/amenities/Adder/keys/data.js","webpack:///./src/pages/Management/amenities/Adder/keys/methods.js","webpack:///src/pages/Management/amenities/Adder/index.vue","webpack:///./src/pages/Management/amenities/Adder/index.vue?3c9e","webpack:///./src/pages/Management/amenities/Adder/index.vue","webpack:///./src/pages/Management/amenities/Updater/index.vue?8383","webpack:///./src/pages/Management/amenities/Updater/keys/computed.js","webpack:///./src/pages/Management/amenities/Updater/keys/data.js","webpack:///./src/pages/Management/amenities/Updater/keys/methods.js","webpack:///src/pages/Management/amenities/Updater/index.vue","webpack:///./src/pages/Management/amenities/Updater/index.vue?ead3","webpack:///./src/pages/Management/amenities/Updater/index.vue","webpack:///./src/pages/Shared/amenities/ReservationsList/index.vue?d582","webpack:///./src/pages/Shared/amenities/ReservationsList/keys/data.js","webpack:///./src/pages/Shared/amenities/ReservationsList/keys/methods.js","webpack:///src/pages/Shared/amenities/ReservationsList/index.vue","webpack:///./src/pages/Shared/amenities/ReservationsList/index.vue?5195","webpack:///./src/pages/Shared/amenities/ReservationsList/index.vue","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/index.vue?fc4c","webpack:///./src/utilities/amenities/getFutureReservationRequests.js","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/keys/computed.js","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/keys/data.js","webpack:///./src/services/Amenities/Amenity/List.js","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/keys/methods.js","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/keys/watch.js","webpack:///src/pages/Shared/amenities/ReservationRequestsList/index.vue","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/index.vue?0ef0","webpack:///./src/pages/Shared/amenities/ReservationRequestsList/index.vue","webpack:///./src/pages/Management/amenities/DeletionModal/index.vue?1938","webpack:///src/pages/Management/amenities/DeletionModal/index.vue","webpack:///./src/pages/Management/amenities/DeletionModal/index.vue?cb92","webpack:///./src/pages/Management/amenities/DeletionModal/index.vue","webpack:///./src/pages/Shared/amenities/Main/keys/beforeDestroy.js","webpack:///./src/pages/Shared/amenities/Main/keys/computed.js","webpack:///./src/pages/Shared/amenities/Main/keys/data.js","webpack:///./src/services/Amenities/Amenity/Delete.js","webpack:///./src/utilities/amenities/calculate/allEventTotals.js","webpack:///./src/pages/Shared/amenities/Main/keys/methods.js","webpack:///./src/pages/Shared/amenities/Main/keys/mounted.js","webpack:///./src/pages/Shared/amenities/Main/keys/watch.js","webpack:///src/pages/Shared/amenities/Main/index.vue","webpack:///./src/pages/Shared/amenities/Main/index.vue?51fb","webpack:///./src/pages/Shared/amenities/Main/index.vue","webpack:///./src/utilities/get/number.js","webpack:///./node_modules/lodash/_compareMultiple.js","webpack:///./src/assets/icons/downarrow.svg","webpack:///./node_modules/lodash/_baseEach.js","webpack:///./node_modules/lodash/_baseOrderBy.js","webpack:///./node_modules/lodash/orderBy.js","webpack:///./src/assets/icons/uparrow.svg","webpack:///./node_modules/lodash/_createBaseEach.js","webpack:///./node_modules/lodash/_baseMap.js","webpack:///./node_modules/lodash/_compareAscending.js","webpack:///./node_modules/lodash/_baseSortBy.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","style","paddingBottom","attrs","$t","Object","assign","display","breakpoint","flexDirection","authUserType","on","openAddModal","_v","_e","marginLeft","marginTop","futureRRs","length","$event","openReservationRequestsModal","amenities","list","_s","undefined","margin","staticClass","sortDirection","preventDefault","processSort","apply","arguments","_l","amenity","index","key","marginBottom","padding","justifyContent","name","alignItems","reservationDurationLimitInMinutes","borderRight","Math","round","_get","description","portal","textAlign","showReservations","reservations","getArray","your","amenityName","getNumber","showReservationRequests","totals","showAllAmenityReservationRequests","params","amenityid","amenityID","amenityownerid","ownerID","amenitylabel","ownerName","id","authUser","userType","openUpdateModal","visibility","eraseAmenity","ref","toggleUpdater","selectedAmenity","model","value","callback","$$v","loading","expression","staticRenderFns","toggle","scopedSlots","_u","fn","proxy","add","formData","$set","minHeight","hasTimeLimit","opacity","transition","paddingTop","timeLimit","h","domProps","m","requiresApproval","computed","mapState","state","win","data","isOpen","hours","minutes","publicNote","getTimeLimit","total","methods","hoaID","amenityStore","dispatch","json","amenityReservations","amenityReservableTimes","canReserve","timeBlocking","successful","message","console","error","Promise","resolve","setTimeout","open","log","components","Modal","ValidInput","props","Boolean","update","refresh","paramToggle","paramAmenity","debug","JSON","stringify","getPayload","payload","internalNote","refundableDeposit","nonRefundableDeposit","usesReservableTime","createdDate","notifyError","notifyMessage","mounted","showing","cancel","r","i","startDate","endDate","reservation","identityInformation","confirmCancel","Array","isArray","showingRequests","_f","cancellation","chargeAmount","nonRefundableAmount","convenienceFee","reservationIsApproved","requests","map","moment","format","convenienceFeeAmount","convenienceFeeFromPercent","amount","percent","percentage","percentAmount","amenityReservationID","notifyProblem","deleteAmenityReservation","amenityReservationStore","done","detail","formatter","Intl","NumberFormat","minimumFractionDigits","notifymessage","commit","modal","maxHeight","overflow","amenityNames","option","selected","amenityFilter","owner","confirmDeny","confirmApprove","getFutureReservationRequests","a","filter","__amenityDetails","push","x","forEach","RR","includes","filteredAmenities","toUpperCase","indexOf","listAmenities","kms","get","result","approveAmenityReservation","chargedAmount","isBeingRejectedByManager","watch","_modal","maxWidth","nameInput","deleteAmenity","onConfirm","beforeDestroy","unsubAmenityStore","mapGetters","all","pendingReservations","delete","forceDelete","calcAllEventTotals","amenityData","now","parseReservations","dates","future","count","past","thisDate","isPast","isBefore","isApproved","overlaysStore","component","Adder","$refs","updater","rrModal","getFutureReservationRequestsCount","resList","deletionModal","determineReservations","reservationOwnerID","currentOwnerId","ownerReservations","b","calcYourTotals","calcOwnerEventTotals","calcAllTotals","_orderBy","showLoading","currentHoaId","subscribe","mutation","mType","type","reload","$emit","Updater","AmenityDeletionModal","PageContent","ReservationsList","ReservationRequestsList","i18n","messages","en","c","variable","NaN","compareAscending","compareMultiple","object","other","orders","objCriteria","criteria","othCriteria","ordersLength","order","module","exports","baseForOwn","createBaseEach","baseEach","arrayMap","baseGet","baseIteratee","baseMap","baseSortBy","baseUnary","identity","baseOrderBy","collection","iteratees","iteratee","orderBy","guard","isArrayLike","eachFunc","fromRight","iterable","isSymbol","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","array","comparer","sort"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAGC,cAAe,SAAWC,MAAM,CAAC,MAAQR,EAAIS,GAAG,mBAAmB,sBAAsB,KAAK,CAACL,EAAG,UAAU,CAACE,MAAOI,OAAOC,OAAO,GAAI,CAACC,QAAS,QACjP,YAAnBZ,EAAIa,WACD,GACA,CACEC,cAAe,YACX,CAAuB,YAArBd,EAAIe,aAA4BX,EAAG,WAAW,CAACI,MAAM,CAAC,6BAA6B,GAAG,KAAO,aAAa,QAAU,IAAIQ,GAAG,CAAC,MAAQhB,EAAIiB,eAAe,CAACjB,EAAIkB,GAAG,iBAAiBlB,EAAImB,KAA2B,YAArBnB,EAAIe,aAA4BX,EAAG,WAAW,CAACE,MAAOI,OAAOC,OAAO,GAAwB,YAAnBX,EAAIa,WAC7Q,CACEO,WAAY,QAEd,CACEC,UAAW,SACRb,MAAM,CAAC,KAAO,aAAa,QAAU,GAAG,SAAoC,IAAzBR,EAAIsB,UAAUC,QAAcP,GAAG,CAAC,MAAQ,SAASQ,GAAQ,OAAOxB,EAAIyB,6BAA6B,CAAEC,UAAW1B,EAAI2B,UAAW,CAAC3B,EAAIkB,GAAGlB,EAAI4B,GAAG5B,EAAIsB,UAAUC,QAAQ,2BAA2BvB,EAAImB,MAAM,QAAiBU,IAAb7B,EAAI2B,MAAsB3B,EAAI2B,KAA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BCrBjB,IAAIc,EAAW,EAAQ,QAUvB,SAAShC,EAAiB9M,EAAOiN,GAC/B,GAAIjN,IAAUiN,EAAO,CACnB,IAAI8B,OAAyBlS,IAAVmD,EACfgP,EAAsB,OAAVhP,EACZiP,EAAiBjP,IAAUA,EAC3BkP,EAAcJ,EAAS9O,GAEvBmP,OAAyBtS,IAAVoQ,EACfmC,EAAsB,OAAVnC,EACZoC,EAAiBpC,IAAUA,EAC3BqC,EAAcR,EAAS7B,GAE3B,IAAMmC,IAAcE,IAAgBJ,GAAelP,EAAQiN,GACtDiC,GAAeC,GAAgBE,IAAmBD,IAAcE,GAChEN,GAAaG,GAAgBE,IAC5BN,GAAgBM,IACjBJ,EACH,OAAO,EAET,IAAMD,IAAcE,IAAgBI,GAAetP,EAAQiN,GACtDqC,GAAeP,GAAgBE,IAAmBD,IAAcE,GAChEE,GAAaL,GAAgBE,IAC5BE,GAAgBF,IACjBI,EACH,OAAQ,EAGZ,OAAO,EAGT7B,EAAOC,QAAUX,G,mBC9BjB,SAASmB,EAAWsB,EAAOC,GACzB,IAAIjT,EAASgT,EAAMhT,OAEnBgT,EAAME,KAAKD,GACX,MAAOjT,IACLgT,EAAMhT,GAAUgT,EAAMhT,GAAQyD,MAEhC,OAAOuP,EAGT/B,EAAOC,QAAUQ","file":"js/chunk-501b2632.23a4b07c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContent',{style:({ paddingBottom: '300px' }),attrs:{\"title\":_vm.$t('amenities.title'),\"amenities-main-page\":\"\"}},[_c('section',{style:(Object.assign({}, {display: 'flex'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n flexDirection: 'column'\n })))},[(_vm.authUserType === 'Account')?_c('b-button',{attrs:{\"amenity-adder-modal-opener\":\"\",\"type\":\"is-primary\",\"rounded\":\"\"},on:{\"click\":_vm.openAddModal}},[_vm._v(\"Add Amenity\")]):_vm._e(),(_vm.authUserType === 'Account')?_c('b-button',{style:(Object.assign({}, (_vm.breakpoint === 'desktop'\n ? {\n marginLeft: '12px'\n }\n : {\n marginTop: '12px'\n }))),attrs:{\"type\":\"is-primary\",\"rounded\":\"\",\"disabled\":_vm.futureRRs.length === 0},on:{\"click\":function($event){return _vm.openReservationRequestsModal({ amenities: _vm.list })}}},[_vm._v(_vm._s(_vm.futureRRs.length)+\" Reservation Requests\")]):_vm._e()],1),(_vm.list !== undefined || _vm.list)?_c('section',{style:({ margin: '20px 0' }),attrs:{\"tests-id\":\"amenities-main-page\"}},[_c('div',{staticClass:\"is-12 level-right\"},[_c('span',[_vm._v(\"Sort\")]),(_vm.sortDirection === 'asc')?_c('span',[_c('img',{attrs:{\"src\":require(\"@/assets/icons/downarrow.svg\")},on:{\"click\":function($event){$event.preventDefault();return _vm.processSort.apply(null, arguments)}}})]):_c('span',[_c('img',{attrs:{\"src\":require(\"@/assets/icons/uparrow.svg\")},on:{\"click\":function($event){$event.preventDefault();return _vm.processSort.apply(null, arguments)}}})])]),_vm._l((_vm.list),function(amenity,index){return _c('div',{key:index,staticClass:\"card\",style:({ marginBottom: '12px', padding: '12px' }),attrs:{\"amenity-card\":\"\"}},[_c('div',{style:({ display: 'flex', justifyContent: 'space-between' })},[_c('h4',{style:({ margin: 0 })},[_vm._v(_vm._s(amenity.name))]),_c('div',{style:({ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline' })},[(\n typeof amenity.reservationDurationLimitInMinutes === 'number' &&\n amenity.reservationDurationLimitInMinutes > 0\n )?_c('b-taglist',{style:({ margin: 0 }),attrs:{\"attached\":\"\"}},[_c('b-tag',{style:({ borderRight: '1px solid #DDD' }),attrs:{\"type\":\"is-light\"}},[_vm._v(\"Reservation Time Limit\")]),_c('b-tag',{attrs:{\"type\":\"is-light\"}},[_vm._v(_vm._s(Math.round(amenity.reservationDurationLimitInMinutes / 60) + ' hour(s)'))])],1):_vm._e(),(_vm._get(amenity, 'requiresApproval', null) === true)?_c('b-taglist',{style:({ marginLeft: '12px' }),attrs:{\"attached\":\"\"}},[_c('b-tag',{style:({ borderRight: '1px solid #DDD' }),attrs:{\"type\":\"is-light\"}},[_vm._v(\"Reservations Require Approval\")])],1):_vm._e()],1)]),_c('p',{style:({ padding: '12px 0' })},[_vm._v(_vm._s(amenity.description))]),_c('div',{style:(Object.assign({}, {display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'end'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n flexDirection: 'column',\n alignItems: 'unset'\n })))},[(_vm.portal === 1)?_c('div',{staticClass:\"card\",style:(Object.assign({}, {padding: '12px',\n justifyContent: 'space-between'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n marginBottom: '12px'\n }))),attrs:{\"home-owner-reservations-total\":\"\"}},[_c('div',{style:({ textAlign: 'center', paddingBottom: '8px' })},[_vm._v(\" Your Current/Future Events \")]),_c('div',[_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",attrs:{\"size\":\"is-small\"},on:{\"click\":function($event){_vm.showReservations({\n reservations: _vm.getArray(\n _vm.your,\n [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'list'],\n []\n ),\n amenityName: _vm._get(amenity, 'name', '')\n })}}},[_vm._v(_vm._s(_vm._get( _vm.your, [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'count'], '__' ))+\" \"+_vm._s(_vm._get(amenity, 'requiresApproval', '') >= 1 ? 'Approved ' : '')+\"Reservation\"+_vm._s(_vm.getNumber( _vm.your, [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'count'], '__' ) === 1 ? '' : 's')+\" \")]),(_vm._get(amenity, 'requiresApproval', null) === true)?_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({ marginLeft: '12px' }),attrs:{\"size\":\"is-small\"},on:{\"click\":function($event){_vm.showReservationRequests({\n reservations: _vm.getArray(\n _vm.your,\n [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'list'],\n []\n ),\n amenityName: _vm._get(amenity, 'name', '')\n })}}},[_vm._v(_vm._s(_vm._get(_vm.your, [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'count'], '__'))+\" Pending Reservation Request\"+_vm._s(_vm.getNumber( _vm.your, [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'count'], '__' ) === 1 ? '' : 's')+\" \")]):_vm._e()],1)]):_vm._e(),(_vm.portal === 2)?_c('div',{staticClass:\"card\",style:(Object.assign({}, {padding: '12px',\n justifyContent: 'space-between'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n marginBottom: '12px'\n }))),attrs:{\"totals-buttons\":\"\"}},[_c('div',{style:({ textAlign: 'center', paddingBottom: '8px' })},[_vm._v(\"Current/Future Events\")]),_c('div',[_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",attrs:{\"size\":\"is-small\"},on:{\"click\":function($event){_vm.showReservations({\n reservations: _vm.getArray(\n _vm.totals,\n [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'list'],\n []\n ),\n amenityName: _vm._get(amenity, 'name', '')\n })}}},[_vm._v(_vm._s(_vm._get( _vm.totals, [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'count'], '__' ))+\" \"+_vm._s(_vm._get(amenity, 'requiresApproval', '') >= 1 ? 'Approved ' : '')+\"Reservation\"+_vm._s(_vm.getNumber( _vm.totals, [_vm._get(amenity, 'amenityID', ''), 'future', 'reservations', 'count'], '__' ) === 1 ? '' : 's')+\" \")]),(_vm._get(amenity, 'requiresApproval', null) === true)?_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({ marginLeft: '12px' }),attrs:{\"size\":\"is-small\"},on:{\"click\":function($event){_vm.showAllAmenityReservationRequests({\n reservations: _vm.getArray(\n _vm.totals,\n [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'list'],\n []\n ),\n amenityName: _vm._get(amenity, 'name', '')\n })}}},[_vm._v(_vm._s(_vm._get( _vm.totals, [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'count'], '__' ))+\" Pending Reservation Request\"+_vm._s(_vm.getNumber( _vm.totals, [_vm._get(amenity, 'amenityID', ''), 'future', 'requests', 'count'], '__' ) === 1 ? '' : 's')+\" \")]):_vm._e()],1)]):_vm._e(),_c('span',[_c('router-link',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({\n margin: '6px'\n }),attrs:{\"to\":(\"/amenity/\" + (amenity.amenityID))}},[_vm._v(\"Calendar\")]),_c('router-link',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({\n margin: '6px'\n }),attrs:{\"to\":{\n name: 'newconversation',\n params: {\n amenityid: amenity.amenityID,\n amenityownerid: _vm.ownerID,\n amenitylabel: (\"Add Homeowner - \" + (_vm.ownerName || ''))\n }\n }}},[_vm._v(\"Ask a Question\")]),_c('router-link',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({\n margin: '6px'\n }),attrs:{\"to\":{\n name: 'amenityconversations',\n params: {\n id: amenity.amenityID\n }\n }}},[_vm._v(\"Conversations\")]),(_vm.authUser.userType != 'HomeOwner')?_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({\n margin: '6px'\n }),attrs:{\"amenity-updater-modal-opener\":\"\"},on:{\"click\":function($event){return _vm.openUpdateModal(amenity)}}},[_vm._v(\"Edit\")]):_vm._e(),_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",style:({\n visibility: _vm.authUserType === 'Account' ? '' : 'hidden',\n margin: '6px'\n }),on:{\"click\":function($event){return _vm.eraseAmenity({ name: amenity.name, amenityID: amenity.amenityID })}}},[_vm._v(\"Delete\")])],1)])])})],2):_vm._e(),_c('section',[_c('div',[_vm._v(\" No Amenties Listed \")])]),_c('Adder',{ref:\"adder\"}),_c('Updater',{ref:\"updater\",attrs:{\"toggle\":_vm.toggleUpdater,\"amenity\":_vm.selectedAmenity}}),_c('ReservationRequestsList',{ref:\"rrModal\"}),_c('ReservationsList',{ref:\"resList\"}),_c('AmenityDeletionModal',{ref:\"deletionModal\"}),_c('b-loading',{attrs:{\"is-full-page\":false},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:\"loading\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"amenities-adder\":\"\",\"toggle\":_vm.toggle,\"loading\":_vm.loading},on:{\"update:toggle\":function($event){_vm.toggle=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Create Amenity\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'end' })},[_c('b-button',{staticClass:\"is-primary\",attrs:{\"amenity-adder-button\":\"\"},on:{\"click\":_vm.add}},[_vm._v(\"Add\")])],1)]},proxy:true}])},[_c('valid-input',{attrs:{\"amenity-name-input\":\"\",\"label\":\"Name\",\"name\":\"Name\",\"placeholder\":\"Name\",\"spellcheck\":\"true\"},model:{value:(_vm.formData.name),callback:function ($$v) {_vm.$set(_vm.formData, \"name\", $$v)},expression:\"formData.name\"}}),_c('br'),_c('valid-input',{attrs:{\"amenity-description-textarea\":\"\",\"type\":\"textarea\",\"label\":\"Description\",\"name\":\"Description\",\"placeholder\":\"Description\",\"spellcheck\":\"true\"},model:{value:(_vm.formData.description),callback:function ($$v) {_vm.$set(_vm.formData, \"description\", $$v)},expression:\"formData.description\"}}),_c('br'),_c('div',{style:(Object.assign({}, {display: 'flex',\n alignItems: 'center',\n minHeight: '50px'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n flexDirection: 'column',\n alignItems: 'flex-start'\n })))},[_c('b-checkbox',{attrs:{\"amenity-time-limit-checkbox\":\"\"},model:{value:(_vm.hasTimeLimit),callback:function ($$v) {_vm.hasTimeLimit=$$v},expression:\"hasTimeLimit\"}},[_vm._v(\"Has Time Limit\")]),_c('div',{style:(Object.assign({}, {display: 'flex',\n marginLeft: '20px',\n opacity: _vm.hasTimeLimit ? 1 : 0,\n transition: 'opacity .3s'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n paddingTop: '12px'\n })))},[_c('b-field',{attrs:{\"label\":\"Hours\"}},[_c('b-select',{attrs:{\"amenity-time-limit-hours-select\":\"\",\"placeholder\":\"Hours\"},model:{value:(_vm.timeLimit.hours),callback:function ($$v) {_vm.$set(_vm.timeLimit, \"hours\", $$v)},expression:\"timeLimit.hours\"}},_vm._l((_vm.hours),function(h){return _c('option',{key:h,domProps:{\"value\":h}},[_vm._v(\" \"+_vm._s(h)+\" \")])}),0)],1),_c('b-field',{attrs:{\"label\":\"Minutes\"}},[_c('b-select',{attrs:{\"amenity-time-limit-minutes-select\":\"\",\"placeholder\":\"Minutes\"},model:{value:(_vm.timeLimit.minutes),callback:function ($$v) {_vm.$set(_vm.timeLimit, \"minutes\", $$v)},expression:\"timeLimit.minutes\"}},_vm._l((_vm.minutes),function(m){return _c('option',{key:m,domProps:{\"value\":m}},[_vm._v(\" \"+_vm._s(m)+\" \")])}),0)],1)],1)],1),_c('br'),_c('div',{style:({ display: 'flex', alignItems: 'center', minHeight: '50px' })},[_c('b-field',[_c('b-checkbox',{attrs:{\"amenity-approval-required-checkbox\":\"\"},model:{value:(_vm.requiresApproval),callback:function ($$v) {_vm.requiresApproval=$$v},expression:\"requiresApproval\"}},[_vm._v(\"Requires Approval\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapState } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapState({\r\n breakpoint: state => state.win.breakpoint\r\n })\r\n}\r\n","export function data() {\r\n return {\r\n isOpen: false,\r\n loading: false,\r\n //\r\n hasTimeLimit: true,\r\n timeLimit: {\r\n hours: 0,\r\n minutes: 0\r\n },\r\n //\r\n requiresApproval: true,\r\n //\r\n hours: [\r\n 0,\r\n 1,\r\n 2,\r\n 3,\r\n 4,\r\n 5,\r\n 6,\r\n 7,\r\n 8,\r\n 9,\r\n 10,\r\n 11,\r\n 12,\r\n 13,\r\n 14,\r\n 15,\r\n 16,\r\n 17,\r\n 18,\r\n 19,\r\n 20,\r\n 21,\r\n 22,\r\n 23,\r\n 24\r\n ],\r\n\r\n minutes: [\r\n 0,\r\n 1,\r\n 2,\r\n 3,\r\n 4,\r\n 5,\r\n 6,\r\n 7,\r\n 8,\r\n 9,\r\n 10,\r\n 11,\r\n 12,\r\n 13,\r\n 14,\r\n 15,\r\n 16,\r\n 17,\r\n 18,\r\n 19,\r\n 20,\r\n 21,\r\n 22,\r\n 23,\r\n 24,\r\n 25,\r\n 26,\r\n 27,\r\n 28,\r\n 29,\r\n 30,\r\n 31,\r\n 32,\r\n 33,\r\n 34,\r\n 35,\r\n 36,\r\n 37,\r\n 38,\r\n 39,\r\n 40,\r\n 41,\r\n 42,\r\n 43,\r\n 44,\r\n 45,\r\n 46,\r\n 47,\r\n 48,\r\n 49,\r\n 50,\r\n 51,\r\n 52,\r\n 53,\r\n 54,\r\n 55,\r\n 56,\r\n 57,\r\n 58,\r\n 59\r\n ],\r\n\r\n formData: {\r\n name: '',\r\n description: '',\r\n publicNote: ''\r\n }\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\nimport { amenityStore } from '@/services/Amenities/store'\r\n\r\nfunction getTimeLimit({ hours, minutes }) {\r\n if (typeof hours !== 'number' || hours < 0 || hours > 24) {\r\n return 0\r\n }\r\n\r\n if (typeof minutes !== 'number' || minutes < 0 || minutes > 60) {\r\n return 0\r\n }\r\n\r\n const total = hours * 60 + minutes\r\n\r\n if (total === 0) {\r\n return null\r\n }\r\n\r\n return total\r\n}\r\n\r\nexport const methods = {\r\n async add() {\r\n this.loading = true\r\n\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const timeLimit = getTimeLimit({\r\n hours: this.timeLimit.hours,\r\n minutes: this.timeLimit.minutes\r\n })\r\n\r\n const { successful, message } = await amenityStore.dispatch('addAmenity', {\r\n json: {\r\n hoaID,\r\n name: this.formData.name,\r\n description: this.formData.description,\r\n\r\n amenityReservations: [],\r\n amenityReservableTimes: [],\r\n\r\n canReserve: true,\r\n publicNote: '_',\r\n timeBlocking: '_',\r\n\r\n requiresApproval: this.requiresApproval,\r\n\r\n ...(typeof timeLimit === 'number'\r\n ? {\r\n reservationDurationLimitInMinutes: timeLimit\r\n }\r\n : {})\r\n }\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n this.loading = false\r\n return\r\n }\r\n\r\n await new Promise(resolve => {\r\n setTimeout(() => {\r\n this.loading = false\r\n this.isOpen = false\r\n this.toggle = false\r\n resolve()\r\n }, 1000)\r\n })\r\n },\r\n open() {\r\n console.log('???')\r\n\r\n this.isOpen = true\r\n this.loading = false\r\n }\r\n}\r\n","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=64fc275f&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"amenities-updater\":\"\",\"toggle\":_vm.toggle,\"loading\":_vm.loading},on:{\"update:toggle\":function($event){_vm.toggle=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Edit Amenity\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'end' })},[_c('b-button',{staticClass:\"is-primary\",attrs:{\"amenity-updater-button\":\"\"},on:{\"click\":_vm.update}},[_vm._v(\"Update\")])],1)]},proxy:true}])},[_c('valid-input',{attrs:{\"amenity-name-input\":\"\",\"label\":\"Name\",\"name\":\"Name\",\"placeholder\":\"Name\",\"spellcheck\":\"true\"},model:{value:(_vm.formData.name),callback:function ($$v) {_vm.$set(_vm.formData, \"name\", $$v)},expression:\"formData.name\"}}),_c('br'),_c('valid-input',{attrs:{\"amenity-description-textarea\":\"\",\"type\":\"textarea\",\"label\":\"Description\",\"name\":\"Description\",\"placeholder\":\"Description\",\"spellcheck\":\"true\"},model:{value:(_vm.formData.description),callback:function ($$v) {_vm.$set(_vm.formData, \"description\", $$v)},expression:\"formData.description\"}}),_c('br'),_c('div',{style:(Object.assign({}, {display: 'flex',\n alignItems: 'center',\n minHeight: '50px'},\n (_vm.breakpoint === 'desktop'\n ? {}\n : {\n flexDirection: 'column',\n alignItems: 'flex-start'\n })))}),_c('br'),_c('div',{style:({ display: 'flex', alignItems: 'center', minHeight: '50px' })},[_c('b-field',[_c('b-checkbox',{attrs:{\"amenity-approval-required-checkbox\":\"\"},model:{value:(_vm.requiresApproval),callback:function ($$v) {_vm.requiresApproval=$$v},expression:\"requiresApproval\"}},[_vm._v(\"Requires Approval\")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { mapState } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapState({\r\n breakpoint: state => state.win.breakpoint\r\n })\r\n}\r\n","export function data() {\r\n return {\r\n isOpen: false,\r\n loading: false,\r\n hasTimeLimit: true,\r\n timeLimit: {\r\n hours: 0,\r\n minutes: 0\r\n },\r\n requiresApproval: true,\r\n hours: [\r\n 0,\r\n 1,\r\n 2,\r\n 3,\r\n 4,\r\n 5,\r\n 6,\r\n 7,\r\n 8,\r\n 9,\r\n 10,\r\n 11,\r\n 12,\r\n 13,\r\n 14,\r\n 15,\r\n 16,\r\n 17,\r\n 18,\r\n 19,\r\n 20,\r\n 21,\r\n 22,\r\n 23,\r\n 24\r\n ],\r\n\r\n minutes: [\r\n 0,\r\n 1,\r\n 2,\r\n 3,\r\n 4,\r\n 5,\r\n 6,\r\n 7,\r\n 8,\r\n 9,\r\n 10,\r\n 11,\r\n 12,\r\n 13,\r\n 14,\r\n 15,\r\n 16,\r\n 17,\r\n 18,\r\n 19,\r\n 20,\r\n 21,\r\n 22,\r\n 23,\r\n 24,\r\n 25,\r\n 26,\r\n 27,\r\n 28,\r\n 29,\r\n 30,\r\n 31,\r\n 32,\r\n 33,\r\n 34,\r\n 35,\r\n 36,\r\n 37,\r\n 38,\r\n 39,\r\n 40,\r\n 41,\r\n 42,\r\n 43,\r\n 44,\r\n 45,\r\n 46,\r\n 47,\r\n 48,\r\n 49,\r\n 50,\r\n 51,\r\n 52,\r\n 53,\r\n 54,\r\n 55,\r\n 56,\r\n 57,\r\n 58,\r\n 59\r\n ],\r\n formData: {\r\n name: '',\r\n description: '',\r\n publicNote: ''\r\n }\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\nimport { amenityStore } from '@/services/Amenities/store'\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\n\r\nexport const methods = {\r\n async refresh(paramToggle, paramAmenity) {\r\n if (paramAmenity !== undefined && paramAmenity) {\r\n this.toggle = paramToggle\r\n this.amenity = paramAmenity\r\n this.isOpen = true\r\n }\r\n\r\n console.debug(paramToggle + ', in update modal refresh param...' + JSON.stringify(paramAmenity))\r\n\r\n if (this.amenity !== undefined && this.amenity) {\r\n this.formData.name = this.amenity.name\r\n this.formData.description = this.amenity.description\r\n this.requiresApproval = this.amenity.requiresApproval\r\n }\r\n },\r\n\r\n getPayload() {\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const payload = {\r\n amenityID: this.amenity.amenityID,\r\n hoaID,\r\n name: this.formData.name,\r\n description: this.formData.description,\r\n\r\n amenityReservations: [],\r\n amenityReservableTimes: [],\r\n\r\n canReserve: this.amenity.canReserve,\r\n publicNote: this.amenity.publicNote,\r\n internalNote: this.amenity.internalNote,\r\n\r\n refundableDeposit: this.amenity.refundableDeposit,\r\n nonRefundableDeposit: this.amenity.nonRefundableDeposit,\r\n usesReservableTime: this.amenity.usesReservableTime,\r\n createdDate: this.amenity.createdDate,\r\n\r\n timeBlocking: this.amenity.timeBlocking,\r\n\r\n requiresApproval: this.requiresApproval,\r\n reservationDurationLimitInMinutes: this.amenity.reservationDurationLimitInMinutes\r\n }\r\n\r\n return payload\r\n },\r\n\r\n async update() {\r\n this.loading = true\r\n\r\n if (this.amenity === undefined || !this.amenity) {\r\n notifyError('There was a problem loading the existing amenity.')\r\n return\r\n }\r\n\r\n // await amenityStore.dispatch('updateAmenity', {\r\n // payload: this.getPayload(),\r\n // done: async () => {\r\n // await new Promise(resolve => {\r\n // setTimeout(() => {\r\n // this.loading = false\r\n // this.isOpen = false\r\n // this.toggle = false\r\n // resolve()\r\n // }, 1000)\r\n // })\r\n // }\r\n // })\r\n\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n const { successful, message } = await amenityStore.dispatch('updateAmenity', {\r\n json: {\r\n amenityID: this.amenity.amenityID,\r\n hoaID,\r\n name: this.formData.name,\r\n description: this.formData.description,\r\n\r\n amenityReservations: [],\r\n amenityReservableTimes: [],\r\n\r\n canReserve: this.amenity.canReserve,\r\n publicNote: this.amenity.publicNote,\r\n internalNote: this.amenity.internalNote,\r\n\r\n refundableDeposit: this.amenity.refundableDeposit,\r\n nonRefundableDeposit: this.amenity.nonRefundableDeposit,\r\n usesReservableTime: this.amenity.usesReservableTime,\r\n createdDate: this.amenity.createdDate,\r\n\r\n timeBlocking: this.amenity.timeBlocking,\r\n\r\n requiresApproval: this.requiresApproval,\r\n reservationDurationLimitInMinutes: this.amenity.reservationDurationLimitInMinutes\r\n }\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n notifyError('There was a problem updating the amenity.')\r\n this.loading = false\r\n return\r\n }\r\n\r\n notifyMessage('The amenity was successfully updated.')\r\n\r\n await new Promise(resolve => {\r\n setTimeout(() => {\r\n this.loading = false\r\n this.isOpen = false\r\n this.toggle = false\r\n resolve()\r\n }, 1000)\r\n })\r\n },\r\n open() {\r\n this.isOpen = true\r\n this.loading = false\r\n }\r\n}\r\n","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4044905e&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"toggle\":_vm.isOpen,\"loading\":_vm.loading,\"amenities-reservations-list\":\"\"},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([(_vm.showingRequests)?{key:\"header\",fn:function(){return [_vm._v(\"Pending Reservation Requests List\")]},proxy:true}:{key:\"header\",fn:function(){return [_vm._v(\"Reservations List\")]},proxy:true},{key:\"footer\",fn:function(){return [(_vm.showing === 2)?_c('div',{style:({ display: 'flex', justifyContent: 'end' })},[_c('b-button',{attrs:{\"type\":\"is-danger\",\"rounded\":\"\"},on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel Reservation\")])],1):_vm._e()]},proxy:true}],null,true)},[(_vm.showing === 1)?_c('div',[_vm._l((_vm.reservations),function(r,i){return _c('div',{key:i,staticClass:\"card\",style:({\n padding: '8px',\n marginBottom: '8px',\n display: 'flex',\n justifyContent: 'space-between'\n })},[_c('div',[_c('div',[_vm._v(\"From: \"+_vm._s(r.startDate))]),_c('div',[_vm._v(\"To: \"+_vm._s(r.endDate))]),_c('div',[_vm._v(\"For: \"+_vm._s(r.reservation.identityInformation.name))])]),_c('b-button',{attrs:{\"type\":\"is-danger\",\"rounded\":\"\"},on:{\"click\":function($event){return _vm.confirmCancel(r)}}},[_vm._v(\"Cancel Reservation\")])],1)}),((!Array.isArray(_vm.reservations) || _vm.reservations.length === 0) && _vm.showingRequests)?_c('div',[_vm._v(\" None \")]):_vm._e(),((!Array.isArray(_vm.reservations) || _vm.reservations.length === 0) && !_vm.showingRequests)?_c('div',[_vm._v(\" None \")]):_vm._e()],2):_vm._e(),(_vm.showing === 2)?_c('div',[_c('p',[_vm._v(\"Are you sure you would like to delete the reservation from:\")]),(!_vm.showingRequests)?_c('div',[_c('p',[_vm._v(\" Refundable Amount: \"+_vm._s(_vm._f(\"currency\")((\"\" + (_vm.cancellation.reservation.reservation.chargeAmount || 0))))+\" \")]),_c('p',[_vm._v(\" Service Fee Amount (Non-Refundable): \"+_vm._s(_vm._f(\"currency\")((\"\" + (_vm.cancellation.reservation.reservation.nonRefundableAmount || 0))))+\" \")]),_c('p',[_vm._v(\" Convenience Fee Amount (Non-Refundable): \"+_vm._s(_vm._f(\"currency\")((\"\" + (_vm.convenienceFee || 0))))+\" \")])]):_vm._e(),_c('br'),_c('p',[_vm._v(_vm._s(_vm.cancellation.reservation.startDate)+\" to \"+_vm._s(_vm.cancellation.reservation.endDate)+\"?\")]),_c('br'),_c('br')]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function data() {\r\n return {\r\n isOpen: false,\r\n loading: false,\r\n reservations: [],\r\n showing: 1,\r\n cancellation: {},\r\n convenienceFee: 0,\r\n showingRequests: false\r\n }\r\n}\r\n","import moment from 'moment'\r\nimport { deleteAmenityReservation } from '@/services/Amenities/AmenityReservation/Delete'\r\nimport _get from 'lodash/get'\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\nimport { amenityStore } from '@/services/Amenities/store'\r\nimport { amenityReservationStore } from '@/services/Amenities/AmenityReservation/store'\r\nimport { reservationIsApproved } from '@/utilities/amenities/reservationIsApproved'\r\n\r\nexport const methods = {\r\n reservationIsApproved,\r\n open({ reservations, requests = false }) {\r\n this.isOpen = true\r\n this.showing = 1\r\n this.showingRequests = requests\r\n\r\n this.reservations = []\r\n this.reservations = reservations.map(r => {\r\n return {\r\n startDate: moment(r.startDate).format('LLLL'),\r\n endDate: moment(r.endDate).format('LLLL'),\r\n reservation: r\r\n }\r\n })\r\n },\r\n\r\n confirmCancel(reservation) {\r\n this.showing = 2\r\n this.cancellation = {\r\n reservation\r\n }\r\n\r\n if (\r\n this.cancellation.reservation.reservation.convenienceFeeAmount !== undefined &&\r\n this.cancellation.reservation.reservation.convenienceFeeAmount\r\n ) {\r\n this.convenienceFee = this.convenienceFeeFromPercent(\r\n this.cancellation.reservation.reservation.chargeAmount +\r\n this.cancellation.reservation.reservation.nonRefundableAmount,\r\n this.cancellation.reservation.reservation.convenienceFeeAmount\r\n )\r\n }\r\n },\r\n\r\n convenienceFeeFromPercent(amount, percent) {\r\n if (amount && percent) {\r\n try {\r\n const percentage = percent * 0.01\r\n const percentAmount = amount * percentage\r\n return percentAmount\r\n } catch (error) {\r\n console.debug('error in convenienceFeeFromPercent=' + error)\r\n return 0\r\n }\r\n }\r\n },\r\n\r\n async cancel() {\r\n this.loading = true\r\n\r\n const { reservation } = this.cancellation\r\n const amenityReservationID = _get(reservation, ['reservation', 'amenityReservationID'], null)\r\n\r\n if (typeof amenityReservationID !== 'number') {\r\n notifyProblem(\r\n `A problem occurred finding the reservation, and it could not be cancelled successfully`\r\n )\r\n this.loading = false\r\n return\r\n }\r\n\r\n const { successful, message } = await deleteAmenityReservation({\r\n amenityReservationID\r\n })\r\n\r\n if (!successful) {\r\n notifyProblem(message)\r\n this.loading = false\r\n return\r\n } else {\r\n if (this.reservationIsApproved({ reservation: reservation.reservation })) {\r\n const payload = {\r\n amenityReservationID\r\n }\r\n\r\n let chargeAmount = 0\r\n let nonRefundableAmount = 0\r\n let convenienceFeeAmount = 0\r\n\r\n if (\r\n this.cancellation.reservation.reservation !== undefined &&\r\n this.cancellation.reservation.reservation &&\r\n this.cancellation.reservation.reservation.chargeAmount\r\n ) {\r\n chargeAmount = this.cancellation.reservation.reservation.chargeAmount\r\n }\r\n\r\n if (\r\n this.cancellation.reservation.reservation.convenienceFeeAmount !== undefined &&\r\n this.cancellation.reservation.reservation.convenienceFeeAmount\r\n ) {\r\n convenienceFeeAmount = this.convenienceFeeFromPercent(\r\n this.cancellation.reservation.reservation.chargeAmount +\r\n this.cancellation.reservation.reservation.nonRefundableAmount,\r\n this.cancellation.reservation.reservation.convenienceFeeAmount\r\n )\r\n }\r\n\r\n if (\r\n this.cancellation.reservation.reservation.nonRefundableAmount !== undefined &&\r\n this.cancellation.reservation.reservation.nonRefundableAmount\r\n ) {\r\n nonRefundableAmount = this.cancellation.reservation.reservation.nonRefundableAmount\r\n\r\n if (\r\n this.cancellation.reservation.reservation.convenienceFeeAmount !== undefined &&\r\n this.cancellation.reservation.reservation.convenienceFeeAmount\r\n ) {\r\n nonRefundableAmount = nonRefundableAmount + convenienceFeeAmount || 0\r\n }\r\n }\r\n\r\n amenityReservationStore.dispatch('cancelWithRefund', {\r\n payload,\r\n done: detail => {\r\n if (detail) {\r\n console.debug('refunded cancellation= ' + JSON.stringify(detail))\r\n\r\n if (chargeAmount > 0) {\r\n var formatter = new Intl.NumberFormat('en-US', {\r\n style: 'decimal',\r\n minimumFractionDigits: 2\r\n })\r\n\r\n let notifymessage =\r\n `This reservation was successfully cancelled with a refund of, $` +\r\n formatter.format(chargeAmount) +\r\n `. `\r\n if (nonRefundableAmount && nonRefundableAmount > 0) {\r\n notifymessage =\r\n notifymessage +\r\n `There is a non-refundable amount for, $` +\r\n formatter.format(nonRefundableAmount) +\r\n `.`\r\n }\r\n\r\n notifyMessage(notifymessage)\r\n }\r\n } else {\r\n notifyMessage('This reservation has been successfully cancelled with a refund.')\r\n }\r\n }\r\n })\r\n } else {\r\n notifyMessage('This reservation has been successfully cancelled.')\r\n }\r\n }\r\n\r\n await amenityStore.commit('updateMain')\r\n\r\n this.loading = false\r\n this.isOpen = false\r\n }\r\n}\r\n","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3f7a4531&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"toggle\":_vm.isOpen,\"loading\":_vm.loading,\"styles\":{\n modal: {\n minHeight: '70vh',\n maxHeight: '70vh'\n }\n },\"amenities-reservation-requests-list\":\"\"},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Reservation Requests List\")]},proxy:true},{key:\"header2\",fn:function(){return [_c('b-field',{staticClass:\"card\",style:({ padding: '20px', overflow: 'visible' }),attrs:{\"label\":\"Amenity Name\"}},[_c('b-autocomplete',{attrs:{\"amenity-name-autocomplete\":\"\",\"data\":_vm.amenityNames,\"field\":\"value\",\"open-on-focus\":true,\"clearable\":true},on:{\"select\":function (option) { return (_vm.selected = option); }},model:{value:(_vm.amenityFilter),callback:function ($$v) {_vm.amenityFilter=$$v},expression:\"amenityFilter\"}})],1)]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'end' })})]},proxy:true}])},[_c('section',_vm._l((_vm.filteredAmenities),function(r,i){return _c('div',{key:i,staticClass:\"card\",style:({\n padding: '8px',\n marginBottom: '8px',\n display: 'flex',\n justifyContent: 'space-between'\n })},[_c('div',[_c('div',[_vm._v(\"Amenity: \"+_vm._s(r.amenityName))]),_c('div',[_vm._v(\"Amenity ID: \"+_vm._s(r.amenityID))]),_c('div',[_vm._v(\"From: \"+_vm._s(r.startDate))]),_c('div',[_vm._v(\"To: \"+_vm._s(r.endDate))]),_c('div',[_vm._v(\"For: \"+_vm._s(r.owner))])]),_c('div',[_c('b-button',{style:({ marginLeft: '24px' }),attrs:{\"type\":\"is-primary\",\"rounded\":\"\",\"outlined\":\"\"},on:{\"click\":function($event){return _vm.confirmDeny(r)}}},[_vm._v(\"Deny\")]),_c('b-button',{style:({ marginLeft: '24px' }),attrs:{\"type\":\"is-primary\",\"rounded\":\"\",\"outlined\":\"\"},on:{\"click\":function($event){return _vm.confirmApprove(r)}}},[_vm._v(\"Approve\")])],1)])}),0)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { reservationIsApproved } from '@/utilities/amenities/reservationIsApproved'\r\n\r\nimport _get from 'lodash/get'\r\n\r\n/*\r\n\timport { getFutureReservationRequests } from \"@/utilities/amenities/getFutureReservationRequests\"\r\n\r\n\tconst { futureRRs, successful } = getFutureReservationRequests ({\r\n\t\tamenities: []\r\n\t})\r\n*/\r\n\r\n/*\r\n\treturns an array of reservations\r\n\t\tadds \"__amenityDetails\" key to reservations\r\n*/\r\n\r\nexport function getFutureReservationRequests({ amenities }) {\r\n const futureRRs = []\r\n\r\n try {\r\n if (!Array.isArray(amenities)) {\r\n console.error(`getFutureReservationRequests necessitates that \"amenities\" is an array.`, {\r\n amenities: amenities === undefined || !amenities ? [] : amenities\r\n })\r\n\r\n return {\r\n successful: false,\r\n futureRRs: []\r\n }\r\n }\r\n\r\n for (let a = 0; a < amenities.length; a++) {\r\n const amenity = amenities[a]\r\n\r\n const requiresApproval = _get(amenity, 'requiresApproval', null)\r\n if (requiresApproval !== true) {\r\n continue\r\n }\r\n\r\n const amenityReservations = _get(amenity, 'amenityReservations', [])\r\n if (!Array.isArray(amenityReservations)) {\r\n continue\r\n }\r\n\r\n const reservations = amenityReservations\r\n .filter(reservation => {\r\n if (reservationIsApproved({ reservation })) {\r\n return false\r\n }\r\n\r\n return true\r\n })\r\n .map(reservation => {\r\n reservation.__amenityDetails = {\r\n name: _get(amenity, 'name')\r\n }\r\n\r\n return reservation\r\n })\r\n\r\n futureRRs.push(...reservations)\r\n }\r\n\r\n return {\r\n successful: true,\r\n futureRRs\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return {\r\n successful: false,\r\n futureRRs: []\r\n }\r\n}\r\n","import moment from 'moment'\r\nimport _get from 'lodash/get'\r\n//\r\nimport { getFutureReservationRequests } from '@/utilities/amenities/getFutureReservationRequests'\r\n//\r\nexport const computed = {\r\n amenityNames() {\r\n const amenities = this.amenities\r\n\r\n const { futureRRs, successful } = getFutureReservationRequests({\r\n amenities\r\n })\r\n if (!successful) {\r\n console.error('A problem occurred while determining future reservation requests.')\r\n }\r\n\r\n const list = []\r\n futureRRs.forEach(RR => {\r\n const name = _get(RR, ['__amenityDetails', 'name'], '')\r\n\r\n if (!list.includes(name)) {\r\n list.push(name)\r\n }\r\n })\r\n\r\n return list\r\n },\r\n filteredAmenities() {\r\n const amenities = this.amenities\r\n const amenityFilter = this.amenityFilter\r\n\r\n console.debug('filteredAmenities()...' + JSON.stringify(this.amenities))\r\n\r\n let { futureRRs, successful } = getFutureReservationRequests({\r\n amenities\r\n })\r\n if (!successful) {\r\n console.debug('A problem occurred while determining future reservation requests.')\r\n futureRRs = futureRRs === undefined || !futureRRs ? [] : futureRRs\r\n }\r\n\r\n return futureRRs\r\n .filter(r => {\r\n const amenityName = _get(r, ['__amenityDetails', 'name'], '')\r\n\r\n try {\r\n if (typeof amenityFilter !== 'string') {\r\n return true\r\n }\r\n\r\n if (amenityFilter.length === 0) {\r\n return true\r\n }\r\n\r\n if (amenityName.toUpperCase().indexOf(amenityFilter.toUpperCase()) >= 0) {\r\n return true\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return false\r\n })\r\n .map(r => {\r\n return {\r\n amenityID: r.amenityID,\r\n amenityName: _get(r, ['__amenityDetails', 'name'], ''),\r\n amenityReservationID: _get(r, 'amenityReservationID', null),\r\n startDate: moment(r.startDate).format('LLLL'),\r\n endDate: moment(r.endDate).format('LLLL'),\r\n owner: _get(r, ['identityInformation', 'name'], ''),\r\n reservation: r\r\n }\r\n })\r\n }\r\n}\r\n","export function data() {\r\n return {\r\n isOpen: false,\r\n loading: false,\r\n amenities: null,\r\n reservations: [],\r\n amenityFilter: '',\r\n convenienceFee: 0\r\n }\r\n}\r\n","/*\r\n\timport { listAmenities } from '@/services/Amenities/Amenity/List';\r\n\r\n const { list, successful, message } = await listAmenities ({\r\n params: {\r\n\t\t\thoaID\r\n }\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport _get from 'lodash/get'\r\nimport kms from '@/services/kms'\r\n\r\nexport async function listAmenities({ params }) {\r\n let message = 'The amenities list could not be retrieved.'\r\n\r\n try {\r\n const result = await kms.get(`/Amenities/Amenity/List`, {\r\n params\r\n })\r\n\r\n let list = _get(result, 'results', [])\r\n if (!Array.isArray(list)) {\r\n list = []\r\n }\r\n\r\n return {\r\n successful: true,\r\n message,\r\n list\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n list: []\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\nimport { approveAmenityReservation } from '@/services/Amenities/AmenityReservation/ApproveReservation'\r\nimport { listAmenities } from '@/services/Amenities/Amenity/List'\r\nimport { deleteAmenityReservation } from '@/services/Amenities/AmenityReservation/Delete'\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\nimport { amenityStore } from '@/services/Amenities/store'\r\n\r\nexport const methods = {\r\n open({ amenities, amenityName }) {\r\n this.isOpen = true\r\n this.showing = 1\r\n\r\n if (typeof amenityName === 'string') {\r\n this.amenityFilter = amenityName\r\n }\r\n\r\n this.amenities = amenities\r\n },\r\n\r\n async refresh() {\r\n const hoaID = _get(this, ['$store', 'getters', 'user/hoaIDInteger'], null)\r\n\r\n const { list, successful, message } = await listAmenities({\r\n params: {\r\n hoaID\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n this.amenities = list\r\n },\r\n\r\n convenienceFeeFromPercent(amount, percent) {\r\n if (amount && percent) {\r\n try {\r\n const percentage = percent * 0.01\r\n const percentAmount = amount * percentage\r\n return percentAmount\r\n } catch (error) {\r\n console.debug('error in convenienceFeeFromPercent=' + error)\r\n return 0\r\n }\r\n }\r\n },\r\n\r\n async confirmApprove(reservation) {\r\n this.loading = true\r\n\r\n const { successful, message } = await approveAmenityReservation({\r\n amenityReservationID: reservation.amenityReservationID\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n } else {\r\n console.debug('reservation=' + JSON.stringify(reservation.reservation.chargeAmount))\r\n\r\n if (\r\n reservation !== undefined &&\r\n reservation.reservation !== undefined &&\r\n reservation &&\r\n reservation.reservation\r\n ) {\r\n //Will also need to compute this on every refund\r\n const chargedAmount =\r\n reservation.reservation.chargeAmount +\r\n reservation.reservation.nonRefundableAmount +\r\n this.convenienceFeeFromPercent(\r\n reservation.reservation.chargeAmount + reservation.reservation.nonRefundableAmount,\r\n reservation.reservation.convenienceFeeAmount || 0\r\n )\r\n\r\n var formatter = new Intl.NumberFormat('en-US', {\r\n style: 'decimal',\r\n minimumFractionDigits: 2\r\n })\r\n\r\n notifyMessage(\r\n `The home owner's credit card was charged, $` +\r\n `${formatter.format(\r\n chargedAmount || 0\r\n )}. The home owner 'Billing Account Activity' section will show when the payment is processed.`\r\n )\r\n }\r\n }\r\n\r\n await amenityStore.commit('updateMain')\r\n\r\n notifyMessage(`The reservation has been approved`)\r\n\r\n await this.refresh()\r\n\r\n await new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve()\r\n }, 1000)\r\n })\r\n\r\n this.loading = false\r\n\r\n // this.isOpen = false;\r\n },\r\n\r\n async confirmDeny(reservation) {\r\n this.loading = true\r\n\r\n const { successful, message } = await deleteAmenityReservation({\r\n amenityReservationID: reservation.amenityReservationID,\r\n params: {\r\n isBeingRejectedByManager: true\r\n }\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n return\r\n }\r\n\r\n await amenityStore.commit('updateMain')\r\n notifyMessage(`The reservation request has been denied.`)\r\n\r\n await this.refresh()\r\n\r\n await new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve()\r\n }, 1000)\r\n })\r\n\r\n this.loading = false\r\n }\r\n}\r\n","export const watch = {}\r\n","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=324872c0&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Modal',{attrs:{\"amenities-deletion-modal\":\"\",\"toggle\":_vm.isOpen,\"loading\":_vm.loading,\"styles\":{ _modal: { maxWidth: '1100px' } }},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',[_vm._v(\"Amenity Deletion\")])]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ display: 'flex', justifyContent: 'end' })},[_c('b-input',{attrs:{\"amenity-name-input\":\"\"},model:{value:(_vm.nameInput),callback:function ($$v) {_vm.nameInput=$$v},expression:\"nameInput\"}}),_c('b-button',{style:({ marginLeft: '12px' }),attrs:{\"confirm-delete-button\":\"\",\"type\":\"is-danger\",\"disabled\":typeof _vm.amenityName === 'string' && _vm.amenityName.length >= 1 && _vm.amenityName === _vm.nameInput\n ? false\n : true},on:{\"click\":_vm.deleteAmenity}},[_vm._v(\"Delete\")])],1)]},proxy:true}])},[_c('p',[_vm._v(_vm._s(_vm.message))]),_c('p',{style:({ marginTop: '12px' })},[_vm._v(\" To proceed, please write the name of the amenity in the input box next to the delete button and then press the delete button. \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=aaa1a5ba&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","export function beforeDestroy() {\r\n this.unsubAmenityStore()\r\n}\r\n","import { mapGetters } from 'vuex'\r\nimport { mapState } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapGetters('user', ['authUser', 'currentHoaId', 'currentOwnerId']),\r\n ...mapState({\r\n breakpoint: state => state.win.breakpoint\r\n }),\r\n portal() {\r\n if (this.authUserType === 'HomeOwner') {\r\n return 1\r\n }\r\n if (this.authUserType === 'Account') {\r\n return 2\r\n }\r\n\r\n return null\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\n\r\nexport function data() {\r\n const authUserType = _get(this, ['$store', 'getters', 'user/authUserType'], null)\r\n\r\n return {\r\n authUserType,\r\n loading: true,\r\n list: [],\r\n reservations: {},\r\n futureRRs: [],\r\n ownerID: 0,\r\n ownerName: '',\r\n sortDirection: 'asc',\r\n all: {\r\n pendingReservations: {},\r\n reservations: {}\r\n },\r\n\r\n totals: {},\r\n your: {},\r\n toggleUpdater: false,\r\n selectedAmenity: {}\r\n }\r\n}\r\n","/*\r\n\timport { deleteAmenity } from '@/services/Amenities/Amenity/Delete';\r\n\r\n const { successful, message } = await deleteAmenity ({\r\n amenityID,\r\n\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function deleteAmenity({ amenityID }) {\r\n let message = 'A problem occurred and the amenity could not be deleted.'\r\n\r\n try {\r\n await kms.delete(`/Amenities/Amenity/${amenityID}?forceDelete=true`, {\r\n params: {\r\n forceDelete: true\r\n }\r\n })\r\n\r\n return {\r\n successful: true,\r\n message\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message\r\n }\r\n}\r\n","/*\r\n\timport { calcAllEventTotals } from '@/utilities/amenities/calculate/allEventTotals'\r\n\r\n\tconst { totals } = calcAllEventTotals ({\r\n\t\tamenityData\r\n\t})\r\n*/\r\n\r\nimport _get from 'lodash/get'\r\nimport moment from 'moment'\r\nimport { parseReservations } from '@/utilities/amenities/parseReservations'\r\nimport { reservationIsApproved } from '@/utilities/amenities/reservationIsApproved'\r\n\r\nexport function calcAllEventTotals({ amenityData }) {\r\n const amenityReservations = _get(amenityData, ['amenityReservations'], [])\r\n const requiresApproval = _get(amenityData, ['requiresApproval'], null)\r\n\r\n const now = moment()\r\n\r\n // filters by ownerID\r\n const { reservations: dates } = parseReservations({\r\n amenityReservations\r\n })\r\n\r\n const total = {\r\n future: {\r\n reservations: {\r\n count: 0,\r\n list: []\r\n },\r\n requests: {\r\n count: 0,\r\n list: []\r\n }\r\n },\r\n past: {\r\n reservations: {\r\n count: 0,\r\n list: []\r\n },\r\n requests: {\r\n count: 0,\r\n list: []\r\n }\r\n }\r\n }\r\n\r\n /*\r\n\t\tcalculate \r\n\t*/\r\n for (let key in dates) {\r\n const thisDate = moment(key)\r\n const isPast = thisDate.isBefore(now)\r\n const reservations = dates[key]\r\n\r\n for (let a = 0; a < reservations.length; a++) {\r\n const r = _get(reservations, [a, 2], null)\r\n\r\n const reservation = _get(reservations, [a, 2], null)\r\n const isApproved = reservationIsApproved({\r\n reservation\r\n })\r\n\r\n if (isPast) {\r\n if (requiresApproval === true) {\r\n if (isApproved) {\r\n total.past.reservations.count += 1\r\n total.past.reservations.list.push(r)\r\n } else {\r\n total.past.requests.count += 1\r\n total.past.requests.list.push(r)\r\n }\r\n } else {\r\n total.past.reservations.count += 1\r\n total.past.reservations.list.push(r)\r\n }\r\n } else {\r\n if (requiresApproval === true) {\r\n if (isApproved) {\r\n total.future.reservations.count += 1\r\n total.future.reservations.list.push(r)\r\n } else {\r\n total.future.requests.count += 1\r\n total.future.requests.list.push(r)\r\n }\r\n } else {\r\n total.future.reservations.count += 1\r\n total.future.reservations.list.push(r)\r\n }\r\n }\r\n }\r\n }\r\n\r\n return {\r\n totals: total\r\n }\r\n}\r\n","import _get from 'lodash/get'\r\nimport { getNumber } from '@/utilities/get/number'\r\nimport { listAmenities } from '@/services/Amenities/Amenity/List'\r\nimport { deleteAmenity } from '@/services/Amenities/Amenity/Delete'\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\nimport { getFutureReservationRequests } from '@/utilities/amenities/getFutureReservationRequests'\r\nimport { calcOwnerEventTotals } from '@/utilities/amenities/calculate/ownerEventTotals'\r\nimport { getArray } from '@/utilities/get/Array'\r\nimport { calcAllEventTotals } from '@/utilities/amenities/calculate/allEventTotals'\r\nimport Adder from '@/pages/Management/amenities/Adder'\r\nimport _orderBy from 'lodash/orderBy'\r\nimport { overlaysStore } from '@/components/Overlays/store'\r\n\r\nexport const methods = {\r\n _get,\r\n getNumber,\r\n getArray,\r\n\r\n async openAddModal() {\r\n await overlaysStore.dispatch('show', {\r\n component: Adder,\r\n props: {\r\n toggle: true\r\n }\r\n })\r\n },\r\n\r\n async openUpdateModal(amenity) {\r\n // await overlaysStore.dispatch('show', {\r\n // component: Updater,\r\n // props: {\r\n // toggle: true,\r\n // amenity: amenity\r\n // }\r\n // })\r\n\r\n this.toggleUpdater = true\r\n this.selectedAmenity = amenity\r\n\r\n this.$refs.updater.refresh(true, amenity)\r\n },\r\n\r\n async openReservationRequestsModal({ amenities }) {\r\n this.$refs.rrModal.open({ amenities })\r\n },\r\n\r\n getFutureReservationRequestsCount({ amenities }) {\r\n const { futureRRs, successful } = getFutureReservationRequests({\r\n amenities\r\n })\r\n if (!successful) {\r\n console.error(`There was an error while getting future reservation requests.`)\r\n }\r\n\r\n this.futureRRs = futureRRs\r\n },\r\n\r\n async showReservations({ reservations, amenityName }) {\r\n this.$refs.resList.open({\r\n reservations,\r\n amenityName\r\n })\r\n },\r\n async showReservationRequests({ reservations, amenityName }) {\r\n this.$refs.resList.open({\r\n reservations,\r\n requests: true,\r\n amenityName\r\n })\r\n },\r\n\r\n /*\r\n\r\n\t*/\r\n async showAllAmenityReservationRequests({ amenityName }) {\r\n this.$refs.rrModal.open({\r\n amenities: this.list,\r\n amenityName\r\n })\r\n },\r\n\r\n async eraseAmenity({ name, amenityID }) {\r\n const component = this\r\n\r\n this.$refs.deletionModal.open({\r\n message: `Are you sure you want to delete '${name}'?`,\r\n amenityName: name,\r\n async onConfirm() {\r\n try {\r\n this.loading = true\r\n\r\n const { successful, message } = await deleteAmenity({\r\n amenityID\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n this.loading = false\r\n return\r\n }\r\n\r\n await component.refresh()\r\n\r\n notifyMessage(`${name} has been deleted successfully.`)\r\n component.loading = false\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n }\r\n })\r\n },\r\n async determineReservations({ amenities }) {\r\n const reservationOwnerID = this.currentOwnerId\r\n this.ownerID = reservationOwnerID\r\n this.ownerName = _get(this, ['$store', 'getters', 'user/authUser', 'name'], null)\r\n\r\n for (let a = 0; a < amenities.length; a++) {\r\n const amenity = amenities[a]\r\n const id = _get(amenity, 'amenityID', null)\r\n if (typeof id !== 'number' || id < 1) {\r\n console.error(`The id of an amentity is not valid.`)\r\n console.error(amenity)\r\n continue\r\n }\r\n if (!Array.isArray(this.list[a].ownerReservations)) {\r\n this.list[a].ownerReservations = []\r\n }\r\n\r\n const reservations = _get(amenity, 'amenityReservations', '')\r\n\r\n for (let b = 0; b < reservations.length; b++) {\r\n const reservation = _get(reservations, b, {})\r\n const ownerID = _get(reservation, 'reservationOwnerID', null)\r\n\r\n if (reservationOwnerID === ownerID && typeof ownerID === 'number' && ownerID >= 1) {\r\n this.list[a].ownerReservations.push(reservation)\r\n }\r\n }\r\n }\r\n },\r\n\r\n //\r\n // \tCalculates future and current reservations\r\n //\r\n calcYourTotals({ amenities }) {\r\n const ownerID = this.currentOwnerId\r\n\r\n for (let a = 0; a < amenities.length; a++) {\r\n const amenity = amenities[a]\r\n const amenityID = _get(amenity, ['amenityID'], null)\r\n\r\n const { totals: your } = calcOwnerEventTotals({\r\n amenityData: amenity,\r\n ownerID\r\n })\r\n\r\n this.your[amenityID] = your\r\n }\r\n },\r\n\r\n calcAllTotals({ amenities }) {\r\n for (let a = 0; a < amenities.length; a++) {\r\n const amenity = amenities[a]\r\n const amenityID = _get(amenity, ['amenityID'], null)\r\n\r\n const { totals } = calcAllEventTotals({\r\n amenityData: amenity\r\n })\r\n\r\n this.totals[amenityID] = totals\r\n }\r\n },\r\n\r\n processSort() {\r\n if (this.list !== undefined && this.list) {\r\n if (this.sortDirection === 'asc') {\r\n this.sortDirection = 'desc'\r\n this.list = _orderBy(this.list, 'createdDate', 'desc')\r\n } else {\r\n this.sortDirection = 'asc'\r\n this.list = _orderBy(this.list, 'createdDate', 'asc')\r\n }\r\n }\r\n },\r\n\r\n async refresh({ showLoading = false } = {}) {\r\n if (showLoading) {\r\n this.loading = true\r\n }\r\n\r\n const hoaID = this.currentHoaId\r\n const { list, successful, message } = await listAmenities({\r\n params: {\r\n hoaID\r\n }\r\n })\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n this.list = list\r\n this.getFutureReservationRequestsCount({\r\n amenities: list\r\n })\r\n\r\n this.calcYourTotals({\r\n amenities: list\r\n })\r\n this.calcAllTotals({\r\n amenities: list\r\n })\r\n\r\n if (this.authUserType === 'HomeOwner') {\r\n this.determineReservations({\r\n amenities: list\r\n })\r\n }\r\n\r\n if (showLoading) {\r\n this.loading = false\r\n }\r\n }\r\n}\r\n","import { amenityStore } from '@/services/Amenities/store'\r\n\r\nexport function mounted() {\r\n this.refresh({\r\n showLoading: true\r\n })\r\n\r\n this.unsubAmenityStore = amenityStore.subscribe(mutation => {\r\n const mType = mutation.type\r\n\r\n if (['amenityAdded', 'amenityUpdated', 'updateMain'].includes(mType)) {\r\n this.refresh({\r\n showLoading: true\r\n })\r\n }\r\n })\r\n}\r\n","export const watch = {\r\n currentHoaId(hoaID) {\r\n console.debug(hoaID)\r\n this.refresh()\r\n },\r\n\r\n toggleUpdater() {\r\n if (this.toggleUpdater == false) {\r\n this.reload()\r\n this.toggleUpdater = false\r\n if (this.Modal && this.Modal != undefined) {\r\n this.Modal.$emit('update:toggle', (this.toggle = false))\r\n }\r\n }\r\n }\r\n}\r\n","\r\n\r\n\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3b4e5306&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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","/*\r\n import { getNumber } from '@/utilities/get/number'\r\n\r\n const num = getNumber ()\r\n */\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport function getNumber(a, b, c) {\r\n try {\r\n const variable = _get(a, b, c)\r\n if (typeof variable === 'number') {\r\n return variable\r\n }\r\n } catch (x) {\r\n console.error(x)\r\n }\r\n\r\n return NaN\r\n}\r\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","module.exports = __webpack_public_path__ + \"img/downarrow.cee5462a.svg\";","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var baseOrderBy = require('./_baseOrderBy'),\n isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","module.exports = __webpack_public_path__ + \"img/uparrow.e5410b75.svg\";","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n"],"sourceRoot":""}