(function(e){function t(t){for(var r,s,l=t[0],n=t[1],d=t[2],u=0,m=[];u0,expression:"receivingItemQueueLength > 0"}]},[e._v(" A list of all items being received currently. ")]),i("v-card-text",{directives:[{name:"show",rawName:"v-show",value:0===e.receivingItemQueueLength,expression:"receivingItemQueueLength === 0"}]},[e._v(" There are currently no items in your inbox. ")]),i("v-card-actions",[i("v-list",{directives:[{name:"show",rawName:"v-show",value:e.receivingItemQueueLength>0,expression:"receivingItemQueueLength > 0"}],staticClass:"pt-5",attrs:{nav:"","max-width":"370"}},e._l(e.receivingItemsDialog.data.receivingItemQueue,(function(t){return i("v-list-item",{key:t.data.uuid,attrs:{"two-line":""}},[i("v-list-item-content",[i("v-list-item-title",[e._v(e._s(t.data.name))]),i("v-list-item-subtitle",[e._v("Sent by "+e._s(t.senderName))]),i("v-list-item-subtitle",[e._v("Distance: "+e._s(t.senderDistance.toFixed(1))+"m")])],1),i("v-btn",{attrs:{color:"success"},on:{click:function(i){return e.acceptReceivingItem(t)}}},[i("v-icon",[e._v("mdi-plus")])],1),i("v-btn",{attrs:{text:"",color:"red"},on:{click:function(i){return e.removeReceivingItem(t.data.uuid)}}},[i("v-icon",[e._v("mdi-minus")])],1)],1)})),1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"290"},model:{value:e.removeDialogStore.show,callback:function(t){e.$set(e.removeDialogStore,"show",t)},expression:"removeDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Remove Item")]),i("v-card-text",[e._v(" Are you sure you want to delete this item from your inventory? ")]),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"blue"},on:{click:function(t){e.removeDialogStore.show=!1}}},[e._v(" No ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.removeDialogStore.show=!1,e.removeItem(e.$store.state.removeDialog.uuid)}}},[e._v(" Yes ")])],1)],1)],1),i("v-dialog",{attrs:{"max-width":"290"},model:{value:e.removeFolderDialogStore.show,callback:function(t){e.$set(e.removeFolderDialogStore,"show",t)},expression:"removeFolderDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Remove Folder")]),i("v-card-text",[e._v(" Are you sure you want to delete this folder "),i("b",[e._v("and")]),e._v(" all items within from your inventory? ")]),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"blue"},on:{click:function(t){e.removeFolderDialogStore.show=!1}}},[e._v(" No ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.removeFolderDialogStore.show=!1,e.removeFolder(e.$store.state.removeFolderDialog.uuid)}}},[e._v(" Yes ")])],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380"},model:{value:e.editDialogStore.show,callback:function(t){e.$set(e.editDialogStore,"show",t)},expression:"editDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),i("v-form",{ref:"editForm",attrs:{"lazy-validation":!1},model:{value:e.editDialogStore.valid,callback:function(t){e.$set(e.editDialogStore,"valid",t)},expression:"editDialogStore.valid"}},[i("v-select",{staticClass:"my-2",attrs:{items:e.$store.state.supportedItemTypes,rules:[function(e){return!!e||"Type is required."}],label:"Item Type",outlined:""},model:{value:e.editDialogStore.data.type,callback:function(t){e.$set(e.editDialogStore.data,"type",t)},expression:"editDialogStore.data.type"}}),i("v-text-field",{staticClass:"px-2",attrs:{label:"Name",rules:[function(e){return!!e||"Name is required."}],required:""},model:{value:e.editDialogStore.data.name,callback:function(t){e.$set(e.editDialogStore.data,"name",t)},expression:"editDialogStore.data.name"}}),i("v-select",{staticClass:"my-2",attrs:{items:e.folderList,"item-text":"name","item-value":"uuid",label:"Folder",outlined:""},model:{value:e.editDialogStore.data.folder,callback:function(t){e.$set(e.editDialogStore.data,"folder",t)},expression:"editDialogStore.data.folder"}}),i("v-text-field",{staticClass:"px-2",attrs:{label:"URL",rules:[function(e){return!!e||"URL is required."}],required:""},model:{value:e.editDialogStore.data.url,callback:function(t){e.$set(e.editDialogStore.data,"url",t)},expression:"editDialogStore.data.url"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.editDialogStore.show=!1}}},[e._v(" Cancel ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.editDialog.valid},on:{click:function(t){e.editDialogStore.show=!1,e.editItem(e.$store.state.editDialog.uuid)}}},[e._v(" Done ")])],1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380"},model:{value:e.editFolderDialogStore.show,callback:function(t){e.$set(e.editFolderDialogStore,"show",t)},expression:"editFolderDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Edit Folder")]),i("v-form",{ref:"editFolderForm",attrs:{"lazy-validation":!1},model:{value:e.editFolderDialogStore.valid,callback:function(t){e.$set(e.editFolderDialogStore,"valid",t)},expression:"editFolderDialogStore.valid"}},[i("v-text-field",{staticClass:"px-2",attrs:{label:"Name",rules:[function(e){return!!e||"Name is required."}],required:""},model:{value:e.editFolderDialogStore.data.name,callback:function(t){e.$set(e.editFolderDialogStore.data,"name",t)},expression:"editFolderDialogStore.data.name"}}),i("v-select",{staticClass:"my-2",attrs:{items:e.folderList,"item-text":"name","item-value":"uuid",label:"Parent Folder",outlined:""},model:{value:e.editFolderDialogStore.data.folder,callback:function(t){e.$set(e.editFolderDialogStore.data,"folder",t)},expression:"editFolderDialogStore.data.folder"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.editFolderDialogStore.show=!1}}},[e._v(" Cancel ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.editFolderDialog.valid},on:{click:function(t){e.editFolderDialogStore.show=!1,e.editFolder(e.$store.state.editFolderDialog.data.uuid)}}},[e._v(" Done ")])],1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380"},model:{value:e.createFolderDialogStore.show,callback:function(t){e.$set(e.createFolderDialogStore,"show",t)},expression:"createFolderDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Create Folder")]),i("v-card-text",[e._v(" Enter the name of the folder. ")]),i("v-form",{ref:"createFolderForm",attrs:{"lazy-validation":!1},model:{value:e.createFolderDialogStore.valid,callback:function(t){e.$set(e.createFolderDialogStore,"valid",t)},expression:"createFolderDialogStore.valid"}},[i("v-text-field",{staticClass:"px-2",attrs:{label:"Name",rules:[function(e){return!!e||"Name is required."}],required:""},model:{value:e.createFolderDialogStore.data.name,callback:function(t){e.$set(e.createFolderDialogStore.data,"name",t)},expression:"createFolderDialogStore.data.name"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.createFolderDialogStore.show=!1}}},[e._v(" Cancel ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.createFolderDialog.valid},on:{click:function(t){e.createFolderDialogStore.show=!1,e.createFolder(e.$store.state.createFolderDialog.data.name)}}},[e._v(" Create ")])],1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380"},model:{value:e.addDialogStore.show,callback:function(t){e.$set(e.addDialogStore,"show",t)},expression:"addDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Add Item")]),i("v-form",{ref:"addForm",attrs:{"lazy-validation":!1},model:{value:e.addDialogStore.valid,callback:function(t){e.$set(e.addDialogStore,"valid",t)},expression:"addDialogStore.valid"}},[i("v-card-text",[e._v(" Enter the name of the item. ")]),i("v-text-field",{staticClass:"px-2",attrs:{label:"Name",rules:[function(e){return!!e||"Name is required."}],required:""},model:{value:e.addDialogStore.data.name,callback:function(t){e.$set(e.addDialogStore.data,"name",t)},expression:"addDialogStore.data.name"}}),i("v-card-text",[e._v(" Select a folder (optional). ")]),i("v-select",{staticClass:"my-2",attrs:{items:e.folderList,label:"Folder",outlined:"","item-text":"name","item-value":"uuid"},model:{value:e.addDialogStore.data.folder,callback:function(t){e.$set(e.addDialogStore.data,"folder",t)},expression:"addDialogStore.data.folder"}}),i("v-card-text",[e._v(" Enter the URL of the item. ")]),i("v-text-field",{staticClass:"px-2",attrs:{label:"URL",rules:[function(e){return!!e||"URL is required."}],required:""},model:{value:e.addDialogStore.data.url,callback:function(t){e.$set(e.addDialogStore.data,"url",t)},expression:"addDialogStore.data.url"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.addDialogStore.show=!1}}},[e._v(" Cancel ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.addDialog.valid},on:{click:function(t){e.addDialogStore.show=!1,e.addItem(e.$store.state.addDialog.data.name,e.$store.state.addDialog.data.folder,e.$store.state.addDialog.data.url)}}},[e._v(" Add ")])],1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380",persistent:""},model:{value:e.receiveDialogStore.show,callback:function(t){e.$set(e.receiveDialogStore,"show",t)},expression:"receiveDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Receiving Item")]),i("v-card-text",[i("b",[e._v(e._s(e.$store.state.receiveDialog.data.userDisplayName)+" sent you an item.")]),e._v(" "),i("br"),i("i",{staticClass:"caption"},[e._v("User UUID: "+e._s(e.$store.state.receiveDialog.data.userUUID))])]),i("v-form",{ref:"receiveForm",attrs:{"lazy-validation":!1},model:{value:e.receiveDialogStore.valid,callback:function(t){e.$set(e.receiveDialogStore,"valid",t)},expression:"receiveDialogStore.valid"}},[i("v-text-field",{staticClass:"px-2",attrs:{label:"Type",rules:[function(e){return!!e||"Type is required."}],required:""},model:{value:e.receiveDialogStore.data.type,callback:function(t){e.$set(e.receiveDialogStore.data,"type",t)},expression:"receiveDialogStore.data.type"}}),i("v-text-field",{staticClass:"px-2",attrs:{label:"Name",rules:[function(e){return!!e||"Name is required."}],required:""},model:{value:e.receiveDialogStore.data.name,callback:function(t){e.$set(e.receiveDialogStore.data,"name",t)},expression:"receiveDialogStore.data.name"}}),i("v-card-text",[e._v(" Select a folder (optional). ")]),i("v-select",{staticClass:"my-2",attrs:{items:e.folderList,label:"Folder",outlined:"","item-text":"name","item-value":"uuid"},model:{value:e.receiveDialogStore.data.folder,callback:function(t){e.$set(e.receiveDialogStore.data,"folder",t)},expression:"receiveDialogStore.data.folder"}}),i("v-text-field",{staticClass:"px-2",attrs:{label:"URL",rules:[function(e){return!!e||"URL is required."}],required:""},model:{value:e.receiveDialogStore.data.url,callback:function(t){e.$set(e.receiveDialogStore.data,"url",t)},expression:"receiveDialogStore.data.url"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.receiveDialogStore.show=!1}}},[e._v(" Reject ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.receiveDialog.valid},on:{click:function(t){e.receiveDialogStore.show=!1,e.confirmItemReceipt()}}},[e._v(" Accept ")])],1)],1)],1)],1),i("v-dialog",{attrs:{"max-width":"380",persistent:""},model:{value:e.shareDialogStore.show,callback:function(t){e.$set(e.shareDialogStore,"show",t)},expression:"shareDialogStore.show"}},[i("v-card",[i("v-card-title",{staticClass:"headline"},[e._v("Share Item")]),i("v-card-text",[e._v(" Select a user to send this item to. ")]),i("v-form",{ref:"shareForm",staticClass:"px-2",attrs:{"lazy-validation":!1},model:{value:e.shareDialogStore.valid,callback:function(t){e.$set(e.shareDialogStore,"valid",t)},expression:"shareDialogStore.valid"}},[i("v-select",{attrs:{items:e.nearbyUsers,"item-value":"uuid",rules:[function(e){return!!e||"A recipient is required"}],label:"Nearby Users",required:""},scopedSlots:e._u([{key:"item",fn:function(t){return[i("i",{staticStyle:{color:"grey","margin-right":"5px"}},[e._v(e._s(t.item.distance.toFixed(1))+"m")]),e._v(" "+e._s(t.item.name)+" ")]}},{key:"selection",fn:function(t){return[i("i",{staticStyle:{color:"grey","margin-right":"5px"}},[e._v(e._s(t.item.distance.toFixed(1))+"m")]),e._v(" "+e._s(t.item.name)+" ")]}}]),model:{value:e.shareDialogStore.data.recipient,callback:function(t){e.$set(e.shareDialogStore.data,"recipient",t)},expression:"shareDialogStore.data.recipient"}}),i("v-text-field",{staticClass:"px-2",attrs:{label:"URL",rules:[function(e){return!!e||"URL is required."}],required:""},model:{value:e.shareDialogStore.data.url,callback:function(t){e.$set(e.shareDialogStore.data,"url",t)},expression:"shareDialogStore.data.url"}}),i("v-card-actions",[i("v-btn",{staticClass:"px-3",attrs:{color:"red"},on:{click:function(t){e.shareDialogStore.show=!1}}},[e._v(" Cancel ")]),i("v-spacer"),i("v-btn",{staticClass:"px-3",attrs:{color:"blue",disabled:!e.$store.state.shareDialog.valid},on:{click:function(t){e.shareDialogStore.show=!1,e.shareItem(e.$store.state.shareDialog.data.uuid)}}},[e._v(" Send ")])],1)],1)],1)],1)],1)},s=[],l=(i("99af"),i("4160"),i("a15b"),i("a434"),i("b0c0"),i("d3b7"),i("ac1f"),i("3ca3"),i("466d"),i("159b"),i("ddb0"),i("2b3d"),new a["a"]),n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("draggable",{attrs:{group:e.options,list:e.itemsForIterator,handle:".handle"}},e._l(e.itemsForIterator,(function(t){return i("v-item-group",{key:t.uuid},[t.items?i("v-list-group",{staticClass:"top-level-folder",scopedSlots:e._u([{key:"activator",fn:function(){return[i("v-list-item",{staticClass:"mx-auto",attrs:{"one-line":"","max-width":"344",outlined:""}},[i("v-icon",{staticClass:"folder-icon",attrs:{color:"teal"}},[e._v("mdi-folder-settings")]),e._v(" "+e._s(t.name)+" ")],1)]},proxy:!0}],null,!0)},[i("div",{staticClass:"text-center my-2"},[i("v-btn",{staticClass:"mx-1 folder-button",attrs:{medium:"",tile:"",color:"purple"},on:{click:function(i){e.editFolderDialogStore.data.uuid=t.uuid,e.editFolderDialogStore.data.name=t.name,e.editFolderDialogStore.show=!0}}},[i("v-icon",[e._v("mdi-pencil")])],1),i("v-btn",{staticClass:"mx-1 folder-button",attrs:{medium:"",tile:"",color:"red"},on:{click:function(i){e.removeFolderDialogStore.show=!0,e.removeFolderDialogStore.uuid=t.uuid}}},[i("v-icon",[e._v("mdi-minus")])],1),i("v-menu",{attrs:{bottom:"",left:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on;return[i("v-btn",e._g({staticClass:"mx-1 folder-button",attrs:{medium:"",tile:"",color:"blue"}},r),[i("v-icon",[e._v("mdi-sort")])],1)]}}],null,!0)},[i("v-list",{attrs:{color:"grey darken-3"}},[i("v-list-item",{on:{click:function(i){return e.sortFolder(t.uuid,"az")}}},[i("v-list-item-title",[e._v("A-Z")]),i("v-list-item-action",[i("v-icon",{attrs:{large:""}},[e._v("mdi-sort-alphabetical-ascending")])],1)],1),i("v-list-item",{on:{click:function(i){return e.sortFolder(t.uuid,"za")}}},[i("v-list-item-title",[e._v("Z-A")]),i("v-list-item-action",[i("v-icon",{attrs:{large:""}},[e._v("mdi-sort-alphabetical-descending")])],1)],1)],1)],1)],1),i("v-container",{attrs:{fluid:""}},[i("itemiterator",{key:t.uuid,attrs:{itemsForIterator:t.items}})],1)],1):i("v-list-item",{staticClass:"mx-auto draggable-card",attrs:{"one-line":"","max-width":"344",outlined:""}},[i("div",{staticClass:"handle pa-2"},[i("v-icon",{attrs:{color:"orange darken-2"}},[e._v("mdi-square-medium-outline")])],1),i("v-list-item-content",{staticClass:"pb-1 pt-2 pl-4"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.settings.displayDensity.size>0,expression:"settings.displayDensity.size > 0"}],staticClass:"overline",staticStyle:{"font-size":"0.825rem !important"}},[e._v(e._s(t.type))]),i("v-list-item-title",{staticClass:"subtitle-1 mb-1"},[e._v(e._s(t.name))]),i("v-list-item-subtitle",{directives:[{name:"show",rawName:"v-show",value:2==e.settings.displayDensity.size,expression:"settings.displayDensity.size == 2"}]},[e._v(e._s(t.url))])],1),i("v-menu",{attrs:{bottom:"",left:""},scopedSlots:e._u([{key:"activator",fn:function(r){var a=r.on;return[i("v-btn",e._g({directives:[{name:"show",rawName:"v-show",value:e.settings.displayDensity.size>=1,expression:"settings.displayDensity.size >= 1"}],style:{backgroundColor:e.getIconColor(t.type)},attrs:{medium:"",fab:"",dark:""}},a),[i("v-icon",[e._v(e._s(e.getIcon(t.type)))])],1),i("v-btn",e._g({directives:[{name:"show",rawName:"v-show",value:e.settings.displayDensity.size<1,expression:"settings.displayDensity.size < 1"}],style:{backgroundColor:e.getIconColor(t.type)},attrs:{small:"",fab:"",dark:""}},a),[i("v-icon",[e._v(e._s(e.getIcon(t.type)))])],1)]}}],null,!0)},[i("v-list",{attrs:{color:"grey darken-3"}},[i("v-list-item",{on:{click:function(i){return e.sendEvent("use-item",{type:t.type,url:t.url})}}},[i("v-list-item-title",[e._v("Use")]),i("v-list-item-action",[i("v-icon",[e._v("mdi-play")])],1)],1),i("v-list-item",{on:{click:function(i){e.editDialogStore.show=!0,e.editDialogStore.uuid=t.uuid,e.editDialogStore.data.type=t.type.toUpperCase(),e.editDialogStore.data.folder=null,e.editDialogStore.data.name=t.name,e.editDialogStore.data.url=t.url}}},[i("v-list-item-title",[e._v("Edit")]),i("v-list-item-action",[i("v-icon",[e._v("mdi-pencil")])],1)],1),i("v-list-item",{on:{click:function(i){e.shareDialogStore.show=!0,e.shareDialogStore.data.url=t.url,e.shareDialogStore.data.uuid=t.uuid}}},[i("v-list-item-title",[e._v("Share")]),i("v-list-item-action",[i("v-icon",[e._v("mdi-share")])],1)],1),i("v-list-item",{attrs:{color:"red darken-1"},on:{click:function(i){e.removeDialogStore.show=!0,e.removeDialogStore.uuid=t.uuid}}},[i("v-list-item-title",[e._v("Remove")]),i("v-list-item-action",[i("v-icon",[e._v("mdi-minus")])],1)],1)],1)],1)],1)],1)})),1)},d=[],c=(i("4e827"),i("310e")),u=i.n(c),m={name:"itemiterator",components:{draggable:u.a},props:["itemsForIterator"],data:function(){return{settings:{}}},created:function(){this.settings=this.$store.state.settings},computed:{options:function(){return{name:"column-item",pull:!0,put:!0}},settingsChanged:function(){return this.$store.state.settings},addDialogStore:{get:function(){return this.$store.state.addDialog},set:function(e){this.$store.commit("mutate",{property:"addDialog",with:e})}},editDialogStore:{get:function(){return this.$store.state.editDialog},set:function(e){this.$store.commit("mutate",{property:"editDialog",with:e})}},editFolderDialogStore:{get:function(){return this.$store.state.editFolderDialog},set:function(e){this.$store.commit("mutate",{property:"editFolderDialog",with:e})}},shareDialogStore:{get:function(){return this.$store.state.shareDialog},set:function(e){this.$store.commit("mutate",{property:"shareDialog",with:e})}},removeFolderDialogStore:{get:function(){return this.$store.state.removeFolderDialog},set:function(e){this.$store.commit("mutate",{property:"removeFolderDialog",with:e})}},removeDialogStore:{get:function(){return this.$store.state.removeDialog},set:function(e){this.$store.commit("mutate",{property:"removeDialog",with:e})}}},watch:{settingsChanged:function(e,t){console.info("Settings previous value:",t),e&&(this.settings=e)}},methods:{sendEvent:function(e,t){l.$emit(e,t)},getIcon:function(e){var t;return e=e.toUpperCase(),t=this.$store.state.iconType[e]?this.$store.state.iconType[e].icon:this.$store.state.iconType.UNKNOWN.icon,t},getIconColor:function(e){var t;return e=e.toUpperCase(),t=this.$store.state.iconType[e]?this.$store.state.iconType[e].color:this.$store.state.iconType.UNKNOWN.color,t},sortFolder:function(e,t){var i=this.searchForItem(e);i&&("az"===t&&i.returnedItem.items.sort((function(e,t){var i=e.name.toUpperCase(),r=t.name.toUpperCase();return ir?1:0})),"za"===t&&i.returnedItem.items.sort((function(e,t){var i=e.name.toUpperCase(),r=t.name.toUpperCase();return i>r?-1:i0)return this.recursiveSingularSearch(e,t[i].items)}}}},v=m,g=i("2877"),p=i("6544"),h=i.n(p),f=i("8336"),D=i("a523"),S=i("132d"),y=i("604c"),b=i("8860"),G=i("56b0"),I=i("da13"),F=i("1800"),w=i("5d23"),x=i("e449"),$=Object(g["a"])(v,n,d,!1,null,null,null),_=$.exports;function k(){return"undefined"===typeof EventBridge}h()($,{VBtn:f["a"],VContainer:D["a"],VIcon:S["a"],VItemGroup:y["b"],VList:b["a"],VListGroup:G["a"],VListItem:I["a"],VListItemAction:F["a"],VListItemContent:w["a"],VListItemSubtitle:w["b"],VListItemTitle:w["c"],VMenu:x["a"]}),k()||EventBridge.scriptEventReceived.connect((function(e){if(e=JSON.parse(e),"inventory"===e.app)switch(e.command){case"script-to-web-inventory":r.receiveInventory(e.data);break;case"script-to-web-receiving-item-queue":r.receiveReceivingItemQueue(e.data);break;case"script-to-web-nearby-users":r.receiveNearbyUsers(e.data);break;case"script-to-web-settings":r.receiveSettings(e.data);break}})),l.$on("use-item",(function(e){r.useItem(e.type,e.url)}));var C={name:"App",components:{itemiterator:_},data:function(){return{receivingItemsDialog:{show:!1,data:{receivingItemQueue:[{senderUUID:"SENDERUUIDLOL",senderName:"WHOISTHIS1",senderDistance:2.5,data:{type:"script",name:"This Is A Real Script",url:"https://butwhythough.com/lol.js",uuid:"This Is A Real Script"}},{senderUUID:"TEST2SENDERUUID",senderName:"WHOTHISBE2",senderDistance:1.22,data:{type:"script",name:"REALLYLONGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",url:"https://butwhythough.com/looool.js",uuid:"REALLYLONNGGGGGGGG"}}]}},folderList:[],recursiveFolderHoldingList:[],nearbyUsers:[{name:"Who",uuid:"{4131531653652562}",distance:5},{name:"Is",uuid:"{4131531653756756576543652562}",distance:3.23},{name:"This?",uuid:"{4131531676575653652562}",distance:1}],sortBy:"alphabetical",settings:{displayDensity:{size:1,labels:["List","Compact","Large"]}},appVersion:"2.0.2",darkTheme:!0,drawer:!1,disabledProp:!0}},created:function(){r=this,this.$vuetify.theme.dark=this.darkTheme,this.sendAppMessage("ready","")},methods:{createUUID:function(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-";var r=e.join("");return r},pushToItems:function(e,t,i,r,a){var o;o=null!=a?a:this.createUUID(),this.$store.commit("pushToItems",{type:e,name:t,folder:i,url:r,uuid:o}),null!==i&&"No Folder"!==i&&this.moveItem(o,i)},checkFileType:function(e){var t=null;switch(e){case".fbx":t="MODEL";break;case".gltf":t="MODEL";break;case".glb":t="MODEL";break;case".js":t="SCRIPT";break;case".fst":t="AVATAR";break;case".json":t="JSON";break;default:t="UNKNOWN"}return t},checkItemType:function(e){var t=null;return e=e.toUpperCase(),this.$store.state.supportedItemTypes.forEach((function(i){i===e&&(t=i)})),null===t&&(t="UNKNOWN"),t},createFolder:function(e){this.$store.commit("pushToItems",{name:e,folder:"No Folder",items:[],uuid:this.createUUID()}),this.createFolderDialogStore.data.name=null},editFolder:function(e){var t=this.searchForItem(e);t&&(t.returnedItem.name=this.$store.state.editFolderDialog.data.name,null!==this.$store.state.editFolderDialog.data.folder&&"No Change"!==this.$store.state.editFolderDialog.data.folder&&(t.returnedItem.folder!==this.$store.state.editFolderDialog.data.folder&&"No Folder"!==this.$store.state.editFolderDialog.data.folder?this.moveFolder(e,this.$store.state.editFolderDialog.data.folder):"No Folder"===this.$store.state.editFolderDialog.data.folder&&this.moveFolder(e,"top")))},addItem:function(e,t,i){var r,a=this.detectFileType(i);r=null==a||null==a[0]?"unknown":this.checkFileType(a[0]),this.pushToItems(r,e,t,i,null),this.addDialogStore.data.name=null,this.addDialogStore.data.folder=null,this.addDialogStore.data.url=null},detectFileType:function(e){var t=/\.[0-9a-z]+$/i,i=e.match(t);if(null==i||null==i[0]){var r=/\.[0-9a-z]+$/i,a=new URL(e);i=a.pathname.match(r)}else null!=i&&null!=i[0]||(i=null);return i},removeItem:function(e){var t=this.searchForItem(e);t.parentArray.splice(t.iteration,1)},removeFolder:function(e){var t=this.searchForItem(e);t.parentArray.splice(t.iteration,1)},editItem:function(e){var t,i=this.searchForItem(e);i.returnedItem.type=this.checkItemType(this.$store.state.editDialog.data.type),i.returnedItem.name=this.$store.state.editDialog.data.name,i.returnedItem.folder=this.$store.state.editDialog.data.folder,i.returnedItem.url=this.$store.state.editDialog.data.url;for(var r=0;r0){var a=this.recursiveSingularSearch(e,t[i].items);if(null!==a)return a}}return null},recursiveFolderPopulate:function(e,t){for(var i=0;ir?1:0})),"za"===t.sort&&e.items.sort((function(e,t){var i=e.name.toUpperCase(),r=t.name.toUpperCase();return i>r?-1:i