text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["demo"],{1799:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("base-header",{staticClass:"pb-6 pb-8 pt-8",attrs:{type:"gradient-info"}},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12"},[r("h2",{staticClass:"text-white mb-0"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-9 d-flex align-items-center nowrap"},[r("strong",{staticClass:"mr-1"},[t._v(t._s(t.objectInfo.totalCount))]),r("div",{staticClass:"mr-1"},[t._v("objects in")]),r("div",{staticClass:"overflow-ellipses begin no-hover"},[r("strong",[t._v(t._s(t.dirOrBucket))])])])])])])])]),r("div",{staticClass:"container mt--7"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header border-0"},[r("div",{staticClass:"row"},[r("h3",{staticClass:"col-lg-8 mb-0 d-flex align-items-center nowrap"},[r("bucket-repo-list-nav-tabs",{staticClass:"mr-2"}),r("div",{staticClass:"overflow-ellipses begin no-hover mr-1"},[t._v(t._s(t.includeAllBuckets&&t.allBuckets.length>0?"All":t.dirOrBucket)+" objects")])],1),r("div",{staticClass:"col-lg-4 d-flex align-items-center justify-content-end nowrap"},[r("base-button",{attrs:{id:"refresh-file-list",type:"default",size:"sm"},on:{click:function(e){return t.changePage()}}},[r("i",{staticClass:"fa fa-refresh"}),r("b-tooltip",{attrs:{target:"#refresh-file-list"}},[t._v("Refresh object list")])],1),r("base-button",{attrs:{type:"secondary",size:"sm"},on:{click:function(e){return t.syncBucket()}}},[t._v("Sync Entire Bucket")]),r("file-uploader",{attrs:{dir:t.currentDirPath,"remove-after-upload":!0,"btn-only":!0,"btn-size":"sm","btn-text":"Add File","btn-variant":"warning"},on:{added:t.fileUploaded}})],1)])]),t.dirOrBucket?r("div",{staticClass:"card-header border-top py-2"},[r("object-path-breadcrumbs",{attrs:{"current-directory-id":t.directoryId,path:t.dirOrBucket}})],1):t._e(),r("div",{staticClass:"card-header py-2"},[r("file-list-filters",{on:{update:function(e){return t.changePage(1)}}})],1),t.objectInfo.numberPages>1?r("div",{staticClass:"card-body py-2 d-flex justify-content-end"},[r("base-pagination",{staticClass:"mb-0",attrs:{total:t.objectInfo.totalCount,value:t.objectInfo.currentPage,perPage:t.objectInfo.perPage},on:{input:t.changePage}})],1):t._e(),r("div",{staticClass:"table-responsive mb-0"},[r("table",{staticClass:"table tablesorter align-items-center table-flush"},[t._m(0),t.directories.length>0&&!t.searchQuery?r("tbody",{staticClass:"list"},t._l(t.directories,(function(e){return r("tr",[r("td",{staticClass:"py-2",attrs:{colspan:"100%"}},[r("div",{staticClass:"d-flex align-items-center"},[r("router-link",{attrs:{to:"/directory/"+e.id}},[r("div",{staticClass:"d-flex align-items-center"},[e.back?t._e():r("span",{staticClass:"avatar avatar-vsm bg-white mr-4"},[r("img",{attrs:{id:"dir-bucket-icon-"+e.id,src:t.$store.state.getBucket(e.bucket_id).img_icon_path}}),r("b-tooltip",{attrs:{target:"dir-bucket-icon-"+e.id}},[t._v(t._s(t.$store.state.getBucket(e.bucket_id).name))])],1),e.back?r("i",{staticClass:"fa fa-2x fa-level-up mr-3"}):r("i",{staticClass:"fa fa-2x fa-folder mr-2"}),r("div",[r("div",{attrs:{to:"/directory/"+e.id}},[t._v(t._s(t.truncateString(e.name||e.full_path,80)))]),e.name?r("div",{staticClass:"text-light",staticStyle:{"font-size":"0.6rem"}},[t._v(t._s(t.$store.state.getBucket(e.bucket_id).name)+"/"+t._s(t.truncateString(e.full_path,160)))]):t._e()])])])],1)])])})),0):t._e(),r("file-list-tbody",{attrs:{"total-count":t.objectInfo.totalCount,data:t.objectInfo.data},on:{download:t.downloadObject,delete:t.promptDeleteObject}})],1)]),r("div",{staticClass:"card-footer py-2 d-flex justify-content-end"},[r("base-pagination",{staticClass:"mb-0",attrs:{total:t.objectInfo.totalCount,value:t.objectInfo.currentPage,perPage:t.objectInfo.perPage},on:{input:t.changePage}})],1)])])])]),r("confirmation-modal",{attrs:{show:t.showDeleteObjectModal,header:"Are you sure?",text:t.deleteObjectModalText,variant:"danger"},on:{close:function(e){t.showDeleteObjectModal=!1},confirm:function(e){return t.deleteObject(t.objectToDelete.id)}}})],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("thead",{staticClass:"thead-light"},[r("tr",[r("th",[t._v("Object")]),r("th",[t._v("Size")]),r("th",[t._v("Last Modified")]),r("th")])])}],n=r("a34a"),i=r.n(n),o=r("2f62"),c=r("000a"),l=r("f3b5"),u=r("7bee"),d=r("62e8"),p=r("6fe0"),f=r("edb4");function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){m(n,s,a,i,o,"next",t)}function o(t){m(n,s,a,i,o,"throw",t)}i(void 0)}))}}var w={props:{directoryId:{type:String,default:null}},watch:{directoryId:function(){var t=this;return g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.changePage(1);case 2:case"end":return e.stop()}}),e)})))()}},data:function(){var t=this;return{showDeleteObjectModal:!1,objectToDelete:{},objectListUpdate:Object(f["b"])(g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getObjectList();case 2:case"end":return e.stop()}}),e)}))),300,!0)}},computed:v(v({},Object(o["b"])({allBuckets:function(t){return t.session.buckets},currentDir:function(t){return t.objects.currentDirectory},currentDirPath:function(t){return t.objects.currentDirectory&&t.objects.currentDirectory.full_path},currentParentDirId:function(t){return t.objects.currentDirectory&&t.objects.currentDirectory.parent_directory_id},currentBucket:function(t){return t.session.current_bucket||{}},includeAllBuckets:function(t){return t.objects.includeAllBuckets},objectInfo:function(t){return t.objects.currentList},searchQuery:function(t){return t.objects.currentListFilters.searchQuery},username:function(t){return t.session.user&&t.session.user.username},directories:function(t){return null!=this.directoryId?[].concat(t.objects.directories):t.objects.directories}})),{},{currentBucketId:function(){return this.includeAllBuckets?null:this.currentBucket.id},deleteObjectModalText:function(){return"\n        Are you sure you want to delete <strong>".concat(this.objectToDelete.full_path,'</strong>?\n        This deletes the object in the target bucket, although all versions of\n        this object are still accessible in your bucket in its version git repo.\n        \n        <div class="card border mt-3 small">\n          <div class="card-body bg-white p-3">\n            <code class="text-default">git clone ').concat(location.origin,"/git/").concat(this.username,"/").concat(this.objectToDelete.id,"\n          </div>\n        </code></div>")},dirOrBucket:function(){var t=this.currentBucket.name;return this.includeAllBuckets&&this.allBuckets.length>1&&(t=""),this.currentDir?"".concat(t,"/").concat(this.currentDir.full_path):"".concat(t)}}),methods:{getFormattedDate:u["a"].getFormattedDate,humanFileSize:l["a"].humanFileSize,truncateString:l["a"].truncateString,isImage:f["d"],downloadObject:function(t){c["a"].downloadUri("/file/download/".concat(t))},promptDeleteObject:function(t){this.objectToDelete=t,this.showDeleteObjectModal=!0},fileUploaded:function(){var t=this;return g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.objectListUpdate();case 2:case"end":return e.stop()}}),e)})))()},deleteObject:function(t){var e=this;return g(i.a.mark((function r(){return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,p["a"].deleteObject(t);case 3:return e.showDeleteObjectModal=!1,r.next=6,e.objectListUpdate();case 6:r.next=11;break;case 8:r.prev=8,r.t0=r["catch"](0),e.$notify({type:"danger",message:r.t0.message});case 11:case"end":return r.stop()}}),r,null,[[0,8]])})))()},changePage:function(){var t=arguments,e=this;return g(i.a.mark((function r(){var s;return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=t.length>0&&void 0!==t[0]?t[0]:e.objectInfo.currentPage,e.$store.commit("SET_BUCKET_OBJECT_LIST_PAGE",s),r.next=4,e.objectListUpdate();case 4:case"end":return r.stop()}}),r)})))()},changePerPage:function(t){var e=this;return g(i.a.mark((function r(){return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.commit("SET_BUCKET_OBJECT_LIST_PER_PAGE",t),e.$store.commit("SET_BUCKET_OBJECT_LIST_PAGE",1),r.next=4,e.objectListUpdate();case 4:case"end":return r.stop()}}),r)})))()},getObjectList:function(){var t=this;return g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("SOCKET_getObjectsList",{bucketId:t.currentBucketId,directoryId:t.directoryId});case 2:case"end":return e.stop()}}),e)})))()},syncBucket:function(){var t=this;return g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d["a"].syncCurrentBucket();case 3:t.$notify("Began syncing bucket! Any new objects should show up shortly."),e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](0),t.$notify({type:"danger",message:e.t0.message});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))()}},created:function(){var t=this;return g(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.objectListUpdate();case 2:case"end":return e.stop()}}),e)})))()}},y=w,C=r("2877"),_=Object(C["a"])(y,s,a,!1,null,null,null);e["default"]=_.exports},"3a73":function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("base-header",{staticClass:"header pb-8 pt-8 d-flex align-items-center"},[r("span",{staticClass:"mask bg-gradient-yellow opacity-8"}),r("div",{staticClass:"container-fluid"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-7 col-md-10"},[r("h1",{staticClass:"display-2 text-white"},[t._v("Hello "+t._s(t.userName))])])])])]),r("div",{staticClass:"container-fluid mt--7"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-xl-6 offset-lg-3 order-xl-1"},[r("card",{attrs:{shadow:"",type:"secondary"}},[r("div",{staticClass:"bg-white border-0",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"row align-items-center"},[r("div",{staticClass:"col-8"},[r("h3",{staticClass:"mb-0"},[t._v("My account")])])])]),[r("form",{on:{submit:function(t){t.preventDefault()}}},[r("h6",{staticClass:"heading-small text-muted mb-4"},[t._v("User information")]),r("div",{staticClass:"pl-lg-4"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-6"},[r("base-input",{attrs:{alternative:"",label:"Username",placeholder:"Username","input-classes":"form-control-alternative"},model:{value:t.userName,callback:function(e){t.userName=e},expression:"userName"}})],1),r("div",{staticClass:"col-lg-6"},[r("base-input",{attrs:{alternative:"",label:"Email address",placeholder:"support@chest.store","input-classes":"form-control-alternative"},model:{value:t.userEmail,callback:function(e){t.userEmail=e},expression:"userEmail"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-6"},[r("base-input",{attrs:{alternative:"",label:"First name",placeholder:"First name","input-classes":"form-control-alternative"},model:{value:t.userFirstName,callback:function(e){t.userFirstName=e},expression:"userFirstName"}})],1),r("div",{staticClass:"col-lg-6"},[r("base-input",{attrs:{alternative:"",label:"Last name",placeholder:"Last name","input-classes":"form-control-alternative"},model:{value:t.userLastName,callback:function(e){t.userLastName=e},expression:"userLastName"}})],1)]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-12 d-flex justify-content-center"},[r("base-button",{attrs:{type:"success"},on:{click:t.updateSelf}},[t._v("Save Profile")])],1)])]),r("hr",{staticClass:"my-4"}),r("h6",{staticClass:"heading-small text-muted mb-4"},[t._v("Your Buckets")]),r("div",{staticClass:"row pl-lg-4"},[r("div",{staticClass:"col-lg-12"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header py-2 d-flex align-items-center"},[r("h4",{staticClass:"mb-0"},[t._v("Buckets")]),r("div",{staticClass:"ml-auto"},[r("base-button",{attrs:{size:"sm",type:"success"},on:{click:function(e){t.showAddProviderModal=!0}}},[t._v("Add Provider or Bucket")])],1)]),r("div",{staticClass:"table-responsive mb-0"},[r("base-table",{staticClass:"table align-items-center table-flush",attrs:{"thead-classes":"thead-light","tbody-classes":"list","no-data-placeholder":"No buckets available...",data:t.allBuckets},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[r("td",{staticClass:"py-1"},[r("div",{staticClass:"d-flex align-items-center"},[t.getProviderType(s.type)?r("span",{staticClass:"avatar avatar-sm rounded-circle bg-white mr-2"},[r("img",{staticClass:"img-fluid img-thumbnail",attrs:{src:t.getProviderType(s.type).img_icon_path}})]):t._e(),r("div",[r("div",{staticClass:"d-flex align-items-center small text-light"},[r("div",[t._v(t._s(s.name))])]),r("div",[r("strong",[t._v(t._s(s.bucket_uid))])])]),r("div",{staticClass:"ml-auto text-light"},[r("div",{staticClass:"ml-2"},[t._v(t._s(t.getProviderType(s.type).text))])])])])]}}])},[r("template",{slot:"columns"},[r("th",{staticClass:"py-1"},[t._v("Buckets")])])],2)],1)])])]),r("hr",{staticClass:"my-4"}),r("h6",{staticClass:"heading-small text-muted mb-2"},[t._v("API Key")]),r("div",{staticClass:"pl-lg-4"},[r("div",{staticClass:"small mb-4"},[t._v("This can be configured and used in the "),r("a",{attrs:{href:"https://github.com/cheststore/cli",target:"_blank",rel:"noopener noreferrer"}},[t._v("CLI")]),t._v(" in addition to when making API requests to chest.store.")]),r("div",[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12 text-center"},[r("strong",[t._v(t._s(t.userApiKey))])])])])])])]],2)],1)])]),r("add-provider-modal",{attrs:{show:t.showAddProviderModal},on:{close:function(e){t.showAddProviderModal=!1},created:t.providerAdded}})],1)},a=[],n=r("a34a"),i=r.n(n),o=r("2f62"),c=r("e0f2");function l(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){l(n,s,a,i,o,"next",t)}function o(t){l(n,s,a,i,o,"throw",t)}i(void 0)}))}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h={name:"user-settings",computed:p(p({},Object(o["b"])({allBuckets:function(t){return Object.values(t.session.buckets||{})},providerTypes:function(t){return t.providerTypes},userApiKey:function(t){return(t.userApiKeys[0]||{}).key}})),{},{userEmail:{get:function(){return this.$store.state.session.user&&this.$store.state.session.user.email_address||""},set:function(t){this.$store.commit("SET_USER_KEY",{key:"email_address",value:t})}},userFirstName:{get:function(){return this.$store.state.session.user&&this.$store.state.session.user.first_name||""},set:function(t){this.$store.commit("SET_USER_KEY",{key:"first_name",value:t})}},userLastName:{get:function(){return this.$store.state.session.user&&this.$store.state.session.user.last_name||""},set:function(t){this.$store.commit("SET_USER_KEY",{key:"last_name",value:t})}},userName:{get:function(){return this.$store.state.session.user&&this.$store.state.session.user.username||""},set:function(t){this.$store.commit("SET_USER_KEY",{key:"username",value:t})}}}),data:function(){return{newProviderType:null,showAddProviderModal:!1}},methods:{getProviderType:function(t){return this.providerTypes.find((function(e){return e.value===t}))||{}},providerAdded:function(){var t=this;return u(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.showAddProviderModal=!1,e.next=3,t.$store.dispatch("getUserSession",!0);case 3:case"end":return e.stop()}}),e)})))()},updateSelf:function(){var t=this;return u(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].selfUpdate({username:t.userName,email_address:t.userEmail,first_name:t.first_name,last_name:t.last_name});case 2:t.$notify("Successfully updated your profile!");case 3:case"end":return e.stop()}}),e)})))()}}},v=h,b=r("2877"),m=Object(b["a"])(v,s,a,!1,null,null,null);e["default"]=m.exports},"54d3":function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("base-header",{staticClass:"pb-6 pb-8 pt-8",attrs:{type:"gradient-success"}},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12"},[r("h2",{staticClass:"text-white mb-0"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-9 d-flex align-items-center nowrap"},[r("strong",{staticClass:"mr-1"},[t._v(t._s(t.gitrepoInfo.totalCount))]),r("div",{staticClass:"mr-1"},[t._v("git repos in")]),r("div",{staticClass:"overflow-ellipses begin no-hover"},[r("strong",[t._v(t._s(t.dirOrBucket))])])])])])])])]),r("div",{staticClass:"container mt--7"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header border-0"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-8"},[r("h3",{staticClass:"mb-0 d-flex align-items-center nowrap"},[r("bucket-repo-list-nav-tabs",{staticClass:"mr-2"}),r("div",{staticClass:"overflow-ellipses begin no-hover mr-1"},[t._v(t._s(t.includeAllBuckets?"All":t.dirOrBucket))]),r("div",[t._v("git repositories")])],1)])])]),r("div",{staticClass:"card-header py-2 border-top"},[r("file-list-filters",{attrs:{search:!1},on:{update:function(e){return t.changePage(1)}}})],1),t.gitrepoInfo.numberPages>1?r("div",{staticClass:"card-body py-2 d-flex justify-content-end"},[r("base-pagination",{staticClass:"mb-0",attrs:{total:t.gitrepoInfo.totalCount,value:t.gitrepoInfo.currentPage,perPage:t.gitrepoInfo.perPage},on:{input:t.changePage}})],1):t._e(),r("div",{staticClass:"table-responsive mb-0"},[r("table",{staticClass:"table tablesorter align-items-center table-flush"},[t._m(0),r("tbody",{staticClass:"list",staticStyle:{"border-width":"1px"}},[0===t.gitrepoInfo.totalCount?r("tr",[r("td",{attrs:{colspan:"100%"}},[t._v("No repos in "+t._s(t.truncateString(t.dirOrBucket,80)))])]):t._l(t.gitrepoInfo.data,(function(e,s){return r("tr",[r("th",{attrs:{scope:"row"}},[r("div",{staticClass:"d-flex align-items-center"},[r("router-link",{attrs:{to:"/repo/"+e.id}},[r("div",{staticClass:"d-flex align-items-center"},[r("i",{staticClass:"fab fa-git-alt fa-2x mr-2"}),r("div",[r("div",[t._v(t._s(t.truncateString(e.repo,80)))])])])])],1)]),r("th",{attrs:{scope:"row"}},[t._v(t._s(t.getFormattedDate(e.updated_at)))])])}))],2)])]),r("div",{staticClass:"card-footer py-2 d-flex justify-content-end"},[r("base-pagination",{staticClass:"mb-0",attrs:{total:t.gitrepoInfo.totalCount,value:t.gitrepoInfo.currentPage,perPage:t.gitrepoInfo.perPage},on:{input:t.changePage}})],1)])])])])],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("thead",{staticClass:"thead-light"},[r("tr",[r("th",[t._v("Repo")]),r("th",[t._v("Last Push")])])])}],n=r("a34a"),i=r.n(n),o=r("2f62"),c=r("f3b5"),l=r("7bee"),u=r("edb4");function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){h(n,s,a,i,o,"next",t)}function o(t){h(n,s,a,i,o,"throw",t)}i(void 0)}))}}var b={data:function(){var t=this;return{repoListUpdate:Object(u["b"])(v(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getRepoList();case 2:case"end":return e.stop()}}),e)}))),300,!0)}},computed:p(p({},Object(o["b"])({currentDir:function(t){return t.objects.currentDirectory},currentBucket:function(t){return t.session.current_bucket},includeAllBuckets:function(t){return t.objects.includeAllBuckets},gitrepoInfo:function(t){return t.gitrepos.currentList}})),{},{currentBucketId:function(){return this.includeAllBuckets?null:this.currentBucket.id},dirOrBucket:function(){var t=this.currentBucket.name;return this.includeAllBuckets&&(t=""),this.currentDir&&this.currentDir.full_path?"".concat(t,"/").concat(this.currentDir.full_path):"".concat(t,"/")}}),methods:{getFormattedDate:l["a"].getFormattedDate,truncateString:c["a"].truncateString,fileUploaded:function(){var t=this;return v(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.repoListUpdate();case 2:case"end":return e.stop()}}),e)})))()},changePage:function(t){var e=this;return v(i.a.mark((function r(){return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.commit("SET_BUCKET_GITREPO_LIST_PAGE",t),r.next=3,e.repoListUpdate();case 3:case"end":return r.stop()}}),r)})))()},changePerPage:function(t){var e=this;return v(i.a.mark((function r(){return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e.$store.commit("SET_BUCKET_GITREPO_LIST_PER_PAGE",t),e.$store.commit("SET_BUCKET_GITREPO_LIST_PAGE",1),r.next=4,e.repoListUpdate();case 4:case"end":return r.stop()}}),r)})))()},getRepoList:function(){var t=this;return v(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getGitRepoList",{bucketId:t.currentBucketId});case 2:case"end":return e.stop()}}),e)})))()}},created:function(){var t=this;return v(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.repoListUpdate();case 2:case"end":return e.stop()}}),e)})))()}},m=b,g=r("2877"),w=Object(g["a"])(m,s,a,!1,null,null,null);e["default"]=w.exports},a55b:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row justify-content-center"},[r("div",{staticClass:"col-lg-5 col-md-7"},[r("div",{staticClass:"card bg-secondary shadow border-0"},[r("div",{class:(t.errorMessage?["py-lg-3"]:["py-lg-5"]).concat(["card-body","px-lg-5"])},[t.errorMessage?r("base-alert",{staticClass:"my-4",attrs:{type:"danger"}},[t._v(t._s(t.errorMessage))]):t._e(),r("form",{attrs:{role:"form",action:t.getFormAction,method:"post"}},[r("base-input",{staticClass:"input-group-alternative",attrs:{id:"username",name:"username",placeholder:"Username","addon-left-icon":"ni ni-hat-3"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),r("base-input",{staticClass:"input-group-alternative mb-3",attrs:{id:"password",name:"password",placeholder:"Password",type:"password","addon-left-icon":"ni ni-lock-circle-open"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t.createAccount?r("base-input",{staticClass:"input-group-alternative mb-3",attrs:{id:"cpassword",name:"cpassword",placeholder:"Confirm Password",type:"password","addon-left-icon":"ni ni-lock-circle-open"},model:{value:t.cpassword,callback:function(e){t.cpassword=e},expression:"cpassword"}}):t._e(),r("div",{staticClass:"text-center"},[r("base-button",{staticClass:"my-4",attrs:{"native-type":"submit",type:"primary"}},[t._v(t._s(t.createAccount?"Create account":"Login"))])],1)],1)],1)]),r("div",{staticClass:"row mt-3"},[r("div",{staticClass:"col-6"}),r("div",{staticClass:"col-6 text-right"},[r("router-link",{staticClass:"text-primary",attrs:{to:t.createAccount?"/account/login":"/account/register"}},[r("small",[t._v(t._s(t.createAccount?"Login into your account":"Register a new account"))])])],1)])]),r("forgot-password-modal",{attrs:{id:"forgot-password-modal",show:t.showForgot},on:{close:function(e){t.showForgot=!1}}})],1)},a=[],n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("modal",{attrs:{show:t.showModal},on:{"update:show":function(e){t.showModal=e},close:function(e){return t.$emit("close")}}},[r("template",{slot:"header"},[r("h5",{staticClass:"modal-title"},[t._v("Forgot Password")])]),r("div",[t.forgot.error&&!t.forgot.success?r("base-alert",{attrs:{type:"danger"}},[t._v(t._s(t.forgot.error))]):t._e(),t.forgot.success?r("base-alert",{attrs:{type:"success"}},[t._v(t._s(t.forgot.success))]):t._e(),r("base-input",{attrs:{alternative:!0,placeholder:"Email Address","addon-left-icon":"ni ni-email-83"},model:{value:t.forgot.email,callback:function(e){t.$set(t.forgot,"email",e)},expression:"forgot.email"}})],1),r("template",{slot:"footer"},[r("base-button",{attrs:{type:"secondary"},on:{click:function(e){return t.$emit("close")}}},[t._v("Cancel")]),r("base-button",{attrs:{type:"primary"},on:{click:t.forgotPassword}},[t._v("Create Temp Password")])],1)],2)},i=[],o=r("a34a"),c=r.n(o),l=r("edb4"),u=r("e0f2");function d(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){d(n,s,a,i,o,"next",t)}function o(t){d(n,s,a,i,o,"throw",t)}i(void 0)}))}}var f={props:{show:{type:Boolean}},watch:{show:function(t){this.showModal=t}},data:function(){return{showModal:!1,forgot:{email:null,error:null,success:null}}},methods:{forgotPassword:function(t){var e=this;return p(c.a.mark((function r(){return c.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(r.prev=0,t.preventDefault(),u["a"].isValidEmail(e.forgot.email)){r.next=4;break}return r.abrupt("return",e.forgot.error="Please enter a valid e-mail address to send a temporary password to.");case 4:return e.forgot.success=null,e.forgot.error=null,r.next=8,u["a"].forgotPassword(e.forgot.email);case 8:return e.forgot.success="Success! Check your email shortly for your temporary password to login.",r.next=11,Object(l["e"])(1500);case 11:e.showModal=!1,e.forgot.error=e.forgot.success=null,r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](0),e.forgot.error=r.t0.message;case 18:case"end":return r.stop()}}),r,null,[[0,15]])})))()}}},h=f,v=r("2877"),b=Object(v["a"])(h,n,i,!1,null,null,null),m=b.exports,g={generic:"\n    There was an error authenticating you. Please make sure\n    you enter a valie username and password and try again.",disabled:"\n    Your account has been disabled. If you think this is a mistake\n    contact customer support to re-enable your account.\n  ",incorrectpassword:"\n    The password you typed is incorrect. Please try again or reset your\n    password.\n  ",incorrectpasswordtoomanytries:"\n    You've tried to login with an incorrect password too many times.\n    Please wait 5 minutes to try again.\n  ",invalidpassword:"\n    Your password must contain at least 5 characters and have at least 3 of the\n    4 following character classes: lower case letters, upper case letters,\n    numbers, and special characters.\n  ",invalidemail:"\n    Your username must be a valid e-mail address.\n  ",invalidverifcode:"\n    We don't recognize the verification code provided. Please click\n    the link from your e-mail again, or contact support if the\n    problem persists.\n  ",nousername:"\n    We didn't find the username associated with your account.\n  ",nopassword:"\n    You have not set a password yet. Please login using the method you used\n    previously (i.e. Google, O365) and set a new password.\n  ",nouser:"\n    We didn't find a user record with the provided e-mail address. Make sure you\n    typed it in correctly or create a new user to continue.\n  "},w={props:{type:{type:String,default:"login"},error:{type:String,default:null}},data:function(){return{showForgot:!1,username:null,password:null,cpassword:null}},computed:{createAccount:function(){return"register"===this.type},getFormAction:function(){return this.createAccount?"/api/1.0/auth/create/user":"/auth/local"},errorMessage:function(){return this.error&&"[object Object]"===g[this.error].toString()?g[this.error].error:g[this.error]}},components:{ForgotPasswordModal:m}},y=w,C=Object(v["a"])(y,s,a,!1,null,null,null);e["default"]=C.exports},ab12:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("base-header",{staticClass:"header pb-7 pt-7",attrs:{type:"gradient-info"}},[r("div",{staticClass:"container"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-12 mb-4 mt-4"},[r("div",{staticClass:"d-flex align-items-center"},[r("div",[r("span",{staticClass:"avatar bg-white p-1 mr-2"},[r("img",{attrs:{src:t.$store.state.getBucket(t.file.bucket_id).img_icon_path}})])]),r("div",{staticClass:"row w-100"},[r("div",{staticClass:"col-lg-9 nowrap"},[r("div",{staticClass:"text-white overflow-ellipses begin no-hover"},[t._v(t._s(t.directoryPath?t.currentBucket.name+"/"+t.directoryPath:t.currentBucket.name))]),r("div",{staticClass:"display-4 text-white"},[t._v(t._s(t.file.name))])])])])])]),r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-9"},[r("file-detail-stats",{attrs:{"size-bytes":t.file.size_bytes,"total-versions":t.versionInfo.total,"last-modified":t.file.last_modified}})],1),r("div",{staticClass:"col-lg-3"},[r("router-link",{staticClass:"mb-2 btn btn-sm btn-secondary w-100 d-flex align-items-center justify-content-center",attrs:{to:t.currentDir?"/directory/"+t.currentDir.id:"/"}},[r("i",{staticClass:"ni ni-bold-left mr-2"}),t._v(" Back to Object Explorer")]),r("file-uploader",{staticClass:"mb-2",attrs:{dir:t.currentDir&&t.currentDir.full_path,"object-id":t.objectId,"remove-after-upload":!0,"btn-only":!0,"btn-size":"sm","btn-text":"Upload New Version","btn-class":"w-100","btn-icon":"ni ni-cloud-upload-96","btn-variant":"default"},on:{added:function(e){return t.init()}}}),r("div",{staticClass:"d-flex align-items-center mb-2"},[r("file-link-icon",{staticClass:"mr-2",attrs:{"entity-table":"cloud_objects","entity-id":t.objectId}}),r("base-button",{staticClass:"d-flex align-items-center justify-content-center w-100",attrs:{type:"info",size:"sm"},on:{click:function(e){return t.downloadObject()}}},[r("i",{staticClass:"ni ni-cloud-download-95 mr-2"}),t._v(" Download Object")])],1)],1)])])]),r("div",{staticClass:"container mt--7"},[r("div",{staticClass:"row"},[t.isLoadingLocal?r("loader",{staticClass:"col-12"}):r("div",{staticClass:"col-12"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-lg-9 mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header"},[r("h4",{staticClass:"m-0"},[t._v(t._s(t.file.name))])]),r("div",{staticClass:"card-header py-2"},[r("object-path-breadcrumbs",{attrs:{"current-directory-id":t.file.directory_id,path:t.currentBucket.name+"/"+t.file.full_path}})],1),r("div",{staticClass:"card-body py-2 small d-flex justify-content-center bg-secondary border"},[r("pre",{staticClass:"m-0"},[r("code",[t._v("git clone "+t._s(t.cloneUrl))])])]),r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("preview-object",{staticClass:"col",attrs:{"object-id":t.file.id,"object-path":t.file.full_path}})],1)])])]),r("div",{staticClass:"col-lg-3 mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header py-2"},[r("h4",{staticClass:"mb-0"},[t._v("Version History")])]),t.versionInfo.initialized?r("div",{staticClass:"card-body p-0"},[r("base-alert",{staticClass:"mb-0 p-1 rounded-0",staticStyle:{"font-size":"11px"},attrs:{type:"success"}},[r("div",{staticClass:"d-flex align-items-center"},[r("i",{staticClass:"mr-2 ni ni-check-bold",staticStyle:{"font-size":"24px"}}),r("div",[t._v("There was no version history yet so we just initialized the first version for this object!")])])])],1):t._e(),r("div",{staticClass:"table-responsive mb-0"},[r("base-table",{staticClass:"table align-items-center table-flush",attrs:{"thead-classes":"thead-light","tbody-classes":"list","no-data-placeholder":"No version history available...",data:t.versionInfo.all},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[r("td",{staticClass:"py-1"},[r("div",{staticClass:"d-flex align-items-center small"},[r("div",[t._v(t._s(s.author_email))]),r("div",{staticClass:"ml-auto text-gray"},[t._v(t._s(t.getFormattedDate(s.date,"YYYY-MM-DD")))])]),r("div",[r("strong",{attrs:{id:"obj-version-"+t._uid+"-"+s.hash}},[t._v(t._s(s.author_name))]),r("b-tooltip",{attrs:{target:"obj-version-"+t._uid+"-"+s.hash,placement:"bottom",boundary:"viewport"}},[t._v(t._s(s.hash))])],1)])]}}])},[r("template",{slot:"columns"},[r("th",{staticClass:"py-1"},[t._v("Versions")])])],2)],1)])])])])],1)])],1)},a=[],n=r("a34a"),i=r.n(n),o=r("2f62"),c=r("000a"),l=r("7bee");function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){f(n,s,a,i,o,"next",t)}function o(t){f(n,s,a,i,o,"throw",t)}i(void 0)}))}}var v={props:{objectId:{type:[Number,String],required:!0}},watch:{objectId:function(t){var e=this;return h(i.a.mark((function r(){return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.init(t);case 2:case"end":return r.stop()}}),r)})))()}},data:function(){return{isLoadingLocal:!0}},computed:d(d({},Object(o["b"])({currentBucket:function(t){return t.session.current_bucket},currentDir:function(t){return t.objects.currentDirectory},file:function(t){return t.objects.currentObject},versionInfo:function(t){return t.objects.currentObjectHistory},username:function(t){return t.session.user.username}})),{},{cloneUrl:function(){return"".concat(location.origin,"/git/").concat(this.username,"/").concat(this.objectId)},directoryPath:function(){if(this.file&&this.file.full_path){var t=this.file.full_path.split("/");return t.slice(0,t.length-1).join("/")}}}),methods:{getFormattedDate:l["a"].getFormattedDate,downloadObject:function(){c["a"].downloadUri("/file/download/".concat(this.objectId))},getObject:function(){var t=arguments,e=this;return h(i.a.mark((function r(){var s;return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=t.length>0&&void 0!==t[0]?t[0]:e.objectId,r.prev=1,e.isLoadingLocal=!0,e.$store.commit("SET_BUCKET_OBJECT",{id:s}),r.next=6,e.$store.dispatch("getCurrentObject");case 6:r.next=11;break;case 8:r.prev=8,r.t0=r["catch"](1),e.$notify({type:"danger",message:r.t0.message});case 11:return r.prev=11,e.isLoadingLocal=!1,r.next=15,e.getVersionHistory();case 15:return r.finish(11);case 16:case"end":return r.stop()}}),r,null,[[1,8,11,16]])})))()},getVersionHistory:function(){var t=this;return h(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("getCurrentObjHistory");case 2:case"end":return e.stop()}}),e)})))()},init:function(){var t=arguments,e=this;return h(i.a.mark((function r(){var s;return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=t.length>0&&void 0!==t[0]?t[0]:e.objectId,r.next=3,e.getObject(s);case 3:case"end":return r.stop()}}),r)})))()}},created:function(){var t=this;return h(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.init();case 2:case"end":return e.stop()}}),e)})))()}},b=v,m=r("2877"),g=Object(m["a"])(b,s,a,!1,null,null,null);e["default"]=g.exports},ae37:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("base-header",{staticClass:"pb-6 pb-8 pt-8",attrs:{type:"gradient-success"}}),t.isLoadingLocal?r("loader"):r("div",{staticClass:"container mt--7"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header border-0 d-block d-lg-flex align-items-center"},[r("bucket-repo-list-nav-tabs",{staticClass:"mr-2"}),r("h3",{staticClass:"mb-0"},[t._v(t._s(t.repo.repo))]),r("div",{staticClass:"ml-auto"},[r("base-button",{staticClass:"d-flex align-items-center",attrs:{type:"default",size:"sm"},on:{click:function(e){return t.$router.push("/repos")}}},[r("i",{staticClass:"fab fa-git-alt mr-2"}),t._v(" Back to all git repos")])],1)],1),t.pathMatch?r("div",{staticClass:"card-body py-3 border-top"},[r("git-path-breadcrumbs",{attrs:{"repo-id":t.id,"repo-name":t.repo.repo,path:t.pathMatch}})],1):t._e(),r("div",{staticClass:"table-responsive mb-0"},[r("table",{staticClass:"table tablesorter align-items-center table-flush"},[r("thead",{staticClass:"thead-light"},[r("tr",[r("th",[t._v("File")]),r("th",[t._v("Size")]),r("th",[t._v("Last Modified")]),r("th")])]),r("file-list-tbody",{attrs:{"table-type":"git","total-count":t.fileList.length,data:t.fileList,"row-link":t.fileLink}})],1)])])])])])],1)},a=[],n=r("a34a"),i=r.n(n),o=r("2f62");function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){d(n,s,a,i,o,"next",t)}function o(t){d(n,s,a,i,o,"throw",t)}i(void 0)}))}}var f={props:{id:{type:String,required:!0},pathMatch:{type:String,default:null}},watch:{id:function(){var t=this;return p(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getRepoAndDirList();case 2:case"end":return e.stop()}}),e)})))()},pathMatch:function(){var t=this;return p(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getRepoAndDirList();case 2:case"end":return e.stop()}}),e)})))()}},data:function(){return{isLoadingLocal:!0}},computed:l(l({},Object(o["b"])({repo:function(t){return t.gitrepos.currentRepo},fileList:function(t){var e=this;return(t.gitrepos.currentRepo.files||[]).map((function(t){return{id:null,file_type:t.file.fileType,bucket_id:e.repo.bucket_id,name:t.file.name,full_path:e.pathMatch?"".concat(e.pathMatch,"/").concat(t.file.name):"".concat(t.file.name),last_modified:t.file.stat.mtime||null,size_bytes:t.file.stat.size||0}}))}})),{},{fileLink:function(){var t=this;return function(e){var r=t.pathMatch?"/".concat(t.pathMatch):"";return"directory"===e.file_type?"/repo/".concat(t.id).concat(r,"/").concat(e.name):"/repo/".concat(t.id,"/file/").concat(r,"/").concat(e.name)}}}),methods:{getRepoAndDirList:function(){var t=this;return p(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$store.dispatch("getCurrentGitRepoDir",{id:t.id,path:t.pathMatch});case 3:return e.prev=3,t.isLoadingLocal=!1,e.finish(3);case 6:case"end":return e.stop()}}),e,null,[[0,,3,6]])})))()}},created:function(){var t=this;return p(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getRepoAndDirList();case 2:case"end":return e.stop()}}),e)})))()}},h=f,v=r("2877"),b=Object(v["a"])(h,s,a,!1,null,null,null);e["default"]=b.exports},c8d6:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.isLoadingLocal?r("loader",{staticClass:"col-12"}):r("div",[r("base-header",{staticClass:"header pb-7 pt-7",attrs:{type:"gradient-success"}},[r("div",{staticClass:"container"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col"},[r("file-detail-stats",{attrs:{"size-bytes":t.file.file.stat.size,"last-modified":t.file.file.stat.mtime}})],1)])])]),r("div",{staticClass:"container mt--7"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-12"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col mb-4"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-header"},[r("div",{staticClass:"row small-gutters"},[r("div",{staticClass:"col-lg-7"},[r("h4",{staticClass:"m-0 d-flex align-items-center"},[r("bucket-repo-list-nav-tabs",{staticClass:"mr-2"}),r("git-path-breadcrumbs",{attrs:{"repo-id":t.id,"repo-name":t.repo.repo,path:t.pathMatch}})],1)]),r("div",{staticClass:"col-lg-5"},[r("div",{staticClass:"d-flex align-items-center justify-content-end nowrap"},[r("base-button",{staticClass:"d-flex align-items-center mr-2",attrs:{type:"default",size:"sm"},on:{click:function(e){return t.$router.push("/repos")}}},[r("i",{staticClass:"fab fa-git-alt mr-2"}),t._v(" Back to all git repos")]),r("file-link-icon",{staticClass:"mr-2",attrs:{"entity-table":"git_repos","entity-id":t.id,path:t.pathMatch}}),r("base-button",{staticClass:"d-flex align-items-center justify-content-center",attrs:{type:"info",size:"sm"},on:{click:function(e){return t.downloadFile()}}},[r("i",{staticClass:"ni ni-cloud-download-95 mr-2"}),t._v(" Download File")])],1)])])]),r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("preview-object",{staticClass:"col",attrs:{"is-git-file":!0,"object-id":t.id,"object-path":t.pathMatch,"override-download-path":t.downloadFilePath}})],1)])])])])])])])],1)],1)},a=[],n=r("a34a"),i=r.n(n),o=r("2f62"),c=r("000a");function l(t,e,r,s,a,n,i){try{var o=t[n](i),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(s,a)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(s,a){var n=t.apply(e,r);function i(t){l(n,s,a,i,o,"next",t)}function o(t){l(n,s,a,i,o,"throw",t)}i(void 0)}))}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h={props:{id:{type:String,required:!0},pathMatch:{type:String,default:null}},data:function(){return{isLoadingLocal:!0}},computed:p(p({},Object(o["b"])({file:function(t){return t.gitrepos.currentFile},repo:function(t){return t.gitrepos.currentRepo},username:function(t){return t.session.user.username}})),{},{cloneUrl:function(){return"".concat(location.origin,"/git/").concat(this.username,"/").concat(this.id)},downloadFilePath:function(){var t=this;return function(e){return"/api/1.0/gitrepos/file/download?id=".concat(t.id,"&path=").concat(encodeURIComponent(e))}}}),methods:{downloadFile:function(){var t=this.pathMatch.split("/");c["a"].downloadUri(this.downloadFilePath(this.pathMatch),t[t.length-1])},getGitFile:function(){var t=arguments,e=this;return u(i.a.mark((function r(){var s;return i.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=t.length>0&&void 0!==t[0]?t[0]:e.id,r.prev=1,e.isLoadingLocal=!0,r.next=5,e.$store.dispatch("getCurrentGitRepoFile",{id:s,path:e.pathMatch});case 5:r.next=10;break;case 7:r.prev=7,r.t0=r["catch"](1),e.$notify({type:"danger",message:r.t0.message});case 10:return r.prev=10,e.isLoadingLocal=!1,r.finish(10);case 13:case"end":return r.stop()}}),r,null,[[1,7,10,13]])})))()}},created:function(){var t=this;return u(i.a.mark((function e(){return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getGitFile();case 2:case"end":return e.stop()}}),e)})))()}},v=h,b=r("2877"),m=Object(b["a"])(v,s,a,!1,null,null,null);e["default"]=m.exports},e5eb:function(t,e,r){"use strict";r.r(e);var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row justify-content-center"},[r("div",{staticClass:"col-lg-5 col-md-7"},[r("add-provider",{on:{created:function(e){return t.$router.push("/")}}})],1)])},a=[],n=r("75b9"),i={components:{AddProvider:n["a"]}},o=i,c=r("2877"),l=Object(c["a"])(o,s,a,!1,null,null,null);e["default"]=l.exports}}]);
  //# sourceMappingURL=demo.88582517.js.map