his._initializePropertySheet();ko.reactor(n,function(){var n,t;e._fileShare()&&(n=e._fileShare(),e._name(n.name()||u.StorageBrowser.BlobsGrid.noName),e._url(n.url()),e._lastModified(r.DateTimeFormat.create(f.General.DateFormatOption).format(n.lastModified())),e._etag(n.etag()||u.noContent),t=ExtensionCore.Utilities.Formatters.getFileSizeFormat(n.quota(),"GB",2),e._quota(u.sizeFormat.format(t.value,t.unitDisplayName)))})}return n.prototype.onInputsSet=function(n){var t=this;return this.
storageAccountId(n.storageAccountId),this.path(n.path),this._setLoadingText(),Q(this._storageAccountEntityView.fetch(n.storageAccountId)).then(function(){return t.storageAccount(t._storageAccountEntityView.item()),Q.all([t._dataContext.storageFileShareData.getFileShareInfo(t.storageAccount(),t._keysEntityView,t.path()).then(function(n){return t._fileShare(n)}),t._dataContext.storageFileShareData.getFileShareUsage(t.storageAccount(),t._keysEntityView,t.path()).then(function(n){var i=ExtensionCore.Utilities.Formatters.getFileSizeFormat(n,"GB",2);t._usage(u.sizeFormat.format(i.value,i.unitDisplayName))})])}).fail(function(){i.Base.Diagnostics.Log.writeEntry(i.Base.Diagnostics.LogEntryLevel.Error,"FileProperties","storageFileShareData.getFileShareInfo failed for storage account: {0} and path: {1}".format(t.storageAccount.peek(),t.path.peek()))})},n.prototype.dispose=function(){this.propertySheet.forEach(function(n){return n.dispose()})},n.prototype._initializePropertySheet=function(){this.
propertySheet.push(new e.TextProperty(u.StorageBrowser.BlobProperties.Title.name,this._name));this.propertySheet.push(new e.CopyFieldProperty(this._lifeTimeManager,u.StorageBrowser.BlobProperties.Title.url,this._url));this.propertySheet.push(new e.TextProperty(u.StorageBrowser.BlobProperties.Title.lastModified,this._lastModified));this.propertySheet.push(new e.TextProperty(u.StorageBrowser.BlobProperties.Title.etag,this._etag));this.propertySheet.push(new e.TextProperty(u.StorageBrowser.FileShareProperties.quota,this._quota));this.propertySheet.push(new e.TextProperty(u.StorageBrowser.FileShareProperties.usage,this._usage))},n.prototype._setLoadingText=function(){this._name(u.StorageAccountBrowser.BlobProperties.loadingText);this._url(u.StorageAccountBrowser.BlobProperties.loadingText);this._quota(u.StorageAccountBrowser.BlobProperties.loadingText);this._etag(u.StorageAccountBrowser.BlobProperties.loadingText);this._lastModified(u.StorageAccountBrowser.BlobProperties.loadingText);this.
_usage(u.StorageAccountBrowser.BlobProperties.loadingText)},n}();t.