()
| 52197 | }); |
| 52198 | } |
| 52199 | render() { |
| 52200 | let shortcut; |
| 52201 | if (this.props.dataSource.dataSourceType !== "local" && this.state.url && !(0, _url.invalidUrlError)(this.state.url) && !this.state.urlError) shortcut = this.getUrlShortcut(); |
| 52202 | return /*#__PURE__*/ _react.createElement("div", null, /*#__PURE__*/ _react.createElement((0, _sanddanceExplorer.controls).Dialog, { |
| 52203 | hidden: false, |
| 52204 | onDismiss: this.props.onDismiss, |
| 52205 | dialogContentProps: { |
| 52206 | className: `sanddance-dialog ${this.props.theme}`, |
| 52207 | type: (0, _base.base).fluentUI.DialogType.normal, |
| 52208 | title: (0, _language.strings).dialogTitleSnapshotsUrl |
| 52209 | }, |
| 52210 | buttons: [ |
| 52211 | /*#__PURE__*/ _react.createElement((0, _base.base).fluentUI.PrimaryButton, { |
| 52212 | disabled: !this.state.url || !!this.state.urlError, |
| 52213 | key: 0, |
| 52214 | onClick: (e)=>this.loadUrl(), |
| 52215 | iconProps: { |
| 52216 | iconName: "CloudDownload" |
| 52217 | }, |
| 52218 | text: (0, _language.strings).dialogLoadButton |
| 52219 | }) |
| 52220 | ] |
| 52221 | }, /*#__PURE__*/ _react.createElement("section", null, /*#__PURE__*/ _react.createElement((0, _base.base).fluentUI.TextField, { |
| 52222 | label: (0, _language.strings).labelUrl, |
| 52223 | placeholder: (0, _language.strings).urlInputPlaceholder, |
| 52224 | onKeyUp: (e)=>e.keyCode === 13 && this.loadUrl(), |
| 52225 | onChange: (e, url)=>this.setState({ |
| 52226 | url, |
| 52227 | urlError: "" |
| 52228 | }), |
| 52229 | value: this.state.url, |
| 52230 | disabled: this.state.working |
| 52231 | }), this.state.urlError && /*#__PURE__*/ _react.createElement("div", { |
| 52232 | className: "error" |
| 52233 | }, this.state.urlError)), this.props.dataSource.dataSourceType !== "local" && /*#__PURE__*/ _react.createElement("section", { |
| 52234 | className: "tip", |
| 52235 | style: { |
| 52236 | visibility: !(0, _url.invalidUrlError)(this.state.url) && !this.state.urlError ? "visible" : "hidden" |
| 52237 | } |
| 52238 | }, (0, _language.strings).labelSnapshotsShortcut, " ", /*#__PURE__*/ _react.createElement("a", { |
| 52239 | href: shortcut, |
| 52240 | title: (0, _language.strings).labelLinkDescription, |
| 52241 | "aria-label": (0, _language.strings).labelLinkDescription |
| 52242 | }, (0, _language.strings).labelShare)))); |
| 52243 | } |
| 52244 | } |
| 52245 | function SnapshotExport(props) { |
| 52246 | return /*#__PURE__*/ _react.createElement((0, _sanddanceExplorer.controls).Dialog, { |
nothing calls this directly
no test coverage detected