NCCreateFormUploadConflict.swift 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. //
  2. // NCCreateFormUploadConflict.swift
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 29/03/2020.
  6. // Copyright © 2020 Marino Faggiana. All rights reserved.
  7. //
  8. // Author Marino Faggiana <marino.faggiana@nextcloud.com>
  9. //
  10. // This program is free software: you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation, either version 3 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. //
  23. import UIKit
  24. import NCCommunication
  25. @objc protocol NCCreateFormUploadConflictDelegate {
  26. @objc func dismissCreateFormUploadConflict(metadatas: [tableMetadata]?)
  27. }
  28. extension NCCreateFormUploadConflictDelegate {
  29. func dismissCreateFormUploadConflict(metadatas: [tableMetadata]?) {}
  30. }
  31. @objc class NCCreateFormUploadConflict: UIViewController {
  32. @IBOutlet weak var labelTitle: UILabel!
  33. @IBOutlet weak var labelSubTitle: UILabel!
  34. @IBOutlet weak var viewSwitch: UIView!
  35. @IBOutlet weak var switchNewFiles: UISwitch!
  36. @IBOutlet weak var switchAlreadyExistingFiles: UISwitch!
  37. @IBOutlet weak var labelNewFiles: UILabel!
  38. @IBOutlet weak var labelAlreadyExistingFiles: UILabel!
  39. @IBOutlet weak var tableView: UITableView!
  40. @IBOutlet weak var viewButton: UIView!
  41. @IBOutlet weak var buttonCancel: UIButton!
  42. @IBOutlet weak var buttonContinue: UIButton!
  43. @objc var metadatasNOConflict: [tableMetadata]
  44. @objc var metadatasUploadInConflict: [tableMetadata]
  45. @objc var metadatasMOV: [tableMetadata]
  46. @objc var serverUrl: String?
  47. @objc weak var delegate: NCCreateFormUploadConflictDelegate?
  48. @objc var alwaysNewFileNameNumber: Bool = false
  49. @objc var textLabelDetailNewFile: String?
  50. var metadatasConflictNewFiles: [String] = []
  51. var metadatasConflictAlreadyExistingFiles: [String] = []
  52. var fileNamesPath: [String: String] = [:]
  53. var blurView: UIVisualEffectView!
  54. // MARK: - View Life Cycle
  55. @objc required init?(coder aDecoder: NSCoder) {
  56. self.metadatasNOConflict = []
  57. self.metadatasMOV = []
  58. self.metadatasUploadInConflict = []
  59. super.init(coder: aDecoder)
  60. }
  61. override func viewDidLoad() {
  62. super.viewDidLoad()
  63. tableView.dataSource = self
  64. tableView.delegate = self
  65. tableView.allowsSelection = false
  66. tableView.tableFooterView = UIView()
  67. tableView.register(UINib(nibName: "NCCreateFormUploadConflictCell", bundle: nil), forCellReuseIdentifier: "Cell")
  68. if metadatasUploadInConflict.count == 1 {
  69. labelTitle.text = String(metadatasUploadInConflict.count) + " " + NSLocalizedString("_file_conflict_num_", comment: "")
  70. labelSubTitle.text = NSLocalizedString("_file_conflict_desc_", comment: "")
  71. labelNewFiles.text = NSLocalizedString("_file_conflict_new_", comment: "")
  72. labelAlreadyExistingFiles.text = NSLocalizedString("_file_conflict_exists_", comment: "")
  73. } else {
  74. labelTitle.text = String(metadatasUploadInConflict.count) + " " + NSLocalizedString("_file_conflicts_num_", comment: "")
  75. labelSubTitle.text = NSLocalizedString("_file_conflict_desc_", comment: "")
  76. labelNewFiles.text = NSLocalizedString("_file_conflict_new_", comment: "")
  77. labelAlreadyExistingFiles.text = NSLocalizedString("_file_conflict_exists_", comment: "")
  78. }
  79. switchNewFiles.isOn = false
  80. switchAlreadyExistingFiles.isOn = false
  81. buttonCancel.layer.cornerRadius = 20
  82. buttonCancel.layer.masksToBounds = true
  83. buttonCancel.setTitle(NSLocalizedString("_cancel_", comment: ""), for: .normal)
  84. buttonContinue.layer.cornerRadius = 20
  85. buttonContinue.layer.masksToBounds = true
  86. buttonContinue.setTitle(NSLocalizedString("_continue_", comment: ""), for: .normal)
  87. buttonContinue.isEnabled = false
  88. buttonContinue.setTitleColor(NCBrandColor.shared.gray, for: .normal)
  89. let blurEffect = UIBlurEffect(style: .light)
  90. blurView = UIVisualEffectView(effect: blurEffect)
  91. blurView.frame = view.bounds
  92. blurView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
  93. view.addSubview(blurView)
  94. changeTheming()
  95. DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
  96. self.conflictDialog(fileCount: self.metadatasUploadInConflict.count)
  97. }
  98. }
  99. override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
  100. super.traitCollectionDidChange(previousTraitCollection)
  101. changeTheming()
  102. }
  103. // MARK: - Theming
  104. func changeTheming() {
  105. view.backgroundColor = NCBrandColor.shared.systemGroupedBackground
  106. tableView.backgroundColor = NCBrandColor.shared.systemGroupedBackground
  107. viewSwitch.backgroundColor = NCBrandColor.shared.systemGroupedBackground
  108. viewButton.backgroundColor = NCBrandColor.shared.systemGroupedBackground
  109. }
  110. // MARK: - ConflictDialog
  111. func conflictDialog(fileCount: Int) {
  112. var tile = ""
  113. var titleReplace = ""
  114. var titleKeep = ""
  115. if fileCount == 1 {
  116. tile = NSLocalizedString("_single_file_conflict_title_", comment: "")
  117. titleReplace = NSLocalizedString("_replace_action_title_", comment: "")
  118. titleKeep = NSLocalizedString("_keep_both_action_title_", comment: "")
  119. } else {
  120. tile = String.localizedStringWithFormat(NSLocalizedString("_multi_file_conflict_title_", comment: ""), String(fileCount))
  121. titleReplace = NSLocalizedString("_replace_all_action_title_", comment: "")
  122. titleKeep = NSLocalizedString("_keep_both_for_all_action_title_", comment: "")
  123. }
  124. let conflictAlert = UIAlertController(title: tile, message: "", preferredStyle: .alert)
  125. // REPLACE
  126. conflictAlert.addAction(UIAlertAction(title: titleReplace, style: .default, handler: { action in
  127. for metadata in self.metadatasUploadInConflict {
  128. self.metadatasNOConflict.append(metadata)
  129. }
  130. self.buttonContinueTouch(action)
  131. }))
  132. // KEEP BOTH
  133. conflictAlert.addAction(UIAlertAction(title: titleKeep, style: .default, handler: { action in
  134. for metadata in self.metadatasUploadInConflict {
  135. self.metadatasConflictNewFiles.append(metadata.ocId)
  136. self.metadatasConflictAlreadyExistingFiles.append(metadata.ocId)
  137. }
  138. self.buttonContinueTouch(action)
  139. }))
  140. conflictAlert.addAction(UIAlertAction(title: NSLocalizedString("_cancel_keep_existing_action_title_", comment: ""), style: .cancel, handler: { _ in
  141. self.dismiss(animated: true) {
  142. self.delegate?.dismissCreateFormUploadConflict(metadatas: nil)
  143. }
  144. }))
  145. conflictAlert.addAction(UIAlertAction(title: NSLocalizedString("_more_action_title_", comment: ""), style: .default, handler: { _ in
  146. self.blurView.removeFromSuperview()
  147. }))
  148. self.present(conflictAlert, animated: true, completion: nil)
  149. }
  150. // MARK: - Action
  151. @IBAction func valueChangedSwitchNewFiles(_ sender: Any) {
  152. metadatasConflictNewFiles.removeAll()
  153. if switchNewFiles.isOn {
  154. for metadata in metadatasUploadInConflict {
  155. metadatasConflictNewFiles.append(metadata.ocId)
  156. }
  157. }
  158. verifySwith()
  159. }
  160. @IBAction func valueChangedSwitchAlreadyExistingFiles(_ sender: Any) {
  161. metadatasConflictAlreadyExistingFiles.removeAll()
  162. if switchAlreadyExistingFiles.isOn {
  163. for metadata in metadatasUploadInConflict {
  164. metadatasConflictAlreadyExistingFiles.append(metadata.ocId)
  165. }
  166. }
  167. verifySwith()
  168. }
  169. func verifySwith() {
  170. if alwaysNewFileNameNumber && switchNewFiles.isOn {
  171. metadatasConflictNewFiles.removeAll()
  172. metadatasConflictAlreadyExistingFiles.removeAll()
  173. for metadata in metadatasUploadInConflict {
  174. metadatasConflictNewFiles.append(metadata.ocId)
  175. }
  176. for metadata in metadatasUploadInConflict {
  177. metadatasConflictAlreadyExistingFiles.append(metadata.ocId)
  178. }
  179. switchAlreadyExistingFiles.isOn = true
  180. NCContentPresenter.shared.messageNotification("_info_", description: "_file_not_rewite_doc_", delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.info, errorCode: NCGlobal.shared.errorInternalError)
  181. }
  182. tableView.reloadData()
  183. canContinue()
  184. }
  185. @IBAction func buttonCancelTouch(_ sender: Any) {
  186. dismiss(animated: true) {
  187. self.delegate?.dismissCreateFormUploadConflict(metadatas: nil)
  188. }
  189. }
  190. @IBAction func buttonContinueTouch(_ sender: Any) {
  191. for metadata in metadatasUploadInConflict {
  192. // keep both
  193. if metadatasConflictNewFiles.contains(metadata.ocId) && metadatasConflictAlreadyExistingFiles.contains(metadata.ocId) {
  194. let fileNameMOV = (metadata.fileNameView as NSString).deletingPathExtension + ".mov"
  195. var fileName = metadata.fileNameView
  196. let fileNameExtension = (fileName as NSString).pathExtension.lowercased()
  197. let fileNameWithoutExtension = (fileName as NSString).deletingPathExtension
  198. if fileNameExtension == "heic" && CCUtility.getFormatCompatibility() {
  199. fileName = fileNameWithoutExtension + ".jpg"
  200. }
  201. let oldPath = CCUtility.getDirectoryProviderStorageOcId(metadata.ocId, fileNameView: metadata.fileNameView)
  202. let newFileName = NCUtilityFileSystem.shared.createFileName(fileName, serverUrl: metadata.serverUrl, account: metadata.account)
  203. metadata.ocId = UUID().uuidString
  204. metadata.fileName = newFileName
  205. metadata.fileNameView = newFileName
  206. // This is not an asset - [file]
  207. if metadata.assetLocalIdentifier == "" {
  208. let newPath = CCUtility.getDirectoryProviderStorageOcId(metadata.ocId, fileNameView: newFileName)
  209. CCUtility.moveFile(atPath: oldPath, toPath: newPath)
  210. }
  211. metadatasNOConflict.append(metadata)
  212. // MOV (Live Photo)
  213. if let metadataMOV = self.metadatasMOV.first(where: { $0.fileName == fileNameMOV }) {
  214. let oldPath = CCUtility.getDirectoryProviderStorageOcId(metadataMOV.ocId, fileNameView: metadataMOV.fileNameView)
  215. let newFileNameMOV = (newFileName as NSString).deletingPathExtension + ".mov"
  216. metadataMOV.ocId = UUID().uuidString
  217. metadataMOV.fileName = newFileNameMOV
  218. metadataMOV.fileNameView = newFileNameMOV
  219. let newPath = CCUtility.getDirectoryProviderStorageOcId(metadataMOV.ocId, fileNameView: newFileNameMOV)
  220. CCUtility.moveFile(atPath: oldPath, toPath: newPath)
  221. }
  222. // overwrite
  223. } else if metadatasConflictNewFiles.contains(metadata.ocId) {
  224. metadatasNOConflict.append(metadata)
  225. // remove (MOV)
  226. } else if metadatasConflictAlreadyExistingFiles.contains(metadata.ocId) {
  227. let fileNameMOV = (metadata.fileNameView as NSString).deletingPathExtension + ".mov"
  228. var index = 0
  229. for metadataMOV in metadatasMOV {
  230. if metadataMOV.fileNameView == fileNameMOV {
  231. metadatasMOV.remove(at: index)
  232. break
  233. }
  234. index += 1
  235. }
  236. } else {
  237. // used UIAlert (replace all)
  238. }
  239. }
  240. metadatasNOConflict.append(contentsOf: metadatasMOV)
  241. dismiss(animated: true) {
  242. self.delegate?.dismissCreateFormUploadConflict(metadatas: self.metadatasNOConflict)
  243. }
  244. }
  245. }
  246. // MARK: - UITableViewDelegate
  247. extension NCCreateFormUploadConflict: UITableViewDelegate {
  248. func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
  249. if metadatasUploadInConflict.count == 1 {
  250. return 250
  251. } else {
  252. return 280
  253. }
  254. }
  255. }
  256. // MARK: - UITableViewDataSource
  257. extension NCCreateFormUploadConflict: UITableViewDataSource {
  258. func numberOfSections(in tableView: UITableView) -> Int {
  259. return 1
  260. }
  261. func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
  262. return metadatasUploadInConflict.count
  263. }
  264. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  265. if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as? NCCreateFormUploadConflictCell {
  266. cell.backgroundColor = tableView.backgroundColor
  267. let metadataNewFile = metadatasUploadInConflict[indexPath.row]
  268. cell.ocId = metadataNewFile.ocId
  269. cell.delegate = self
  270. cell.labelFileName.text = metadataNewFile.fileNameView
  271. cell.labelDetailAlreadyExistingFile.text = ""
  272. cell.labelDetailNewFile.text = ""
  273. // -----> Already Existing File
  274. guard let metadataAlreadyExists = NCManageDatabase.shared.getMetadataConflict(account: metadataNewFile.account, serverUrl: metadataNewFile.serverUrl, fileName: metadataNewFile.fileNameView) else { return UITableViewCell() }
  275. if FileManager().fileExists(atPath: CCUtility.getDirectoryProviderStorageIconOcId(metadataAlreadyExists.ocId, etag: metadataAlreadyExists.etag)) {
  276. cell.imageAlreadyExistingFile.image = UIImage(contentsOfFile: CCUtility.getDirectoryProviderStorageIconOcId(metadataAlreadyExists.ocId, etag: metadataAlreadyExists.etag))
  277. } else if FileManager().fileExists(atPath: CCUtility.getDirectoryProviderStorageOcId(metadataAlreadyExists.ocId, fileNameView: metadataAlreadyExists.fileNameView)) && metadataAlreadyExists.contentType == "application/pdf" {
  278. let url = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadataAlreadyExists.ocId, fileNameView: metadataAlreadyExists.fileNameView))
  279. if let image = NCUtility.shared.pdfThumbnail(url: url) {
  280. cell.imageAlreadyExistingFile.image = image
  281. } else {
  282. cell.imageAlreadyExistingFile.image = UIImage(named: metadataAlreadyExists.iconName)
  283. }
  284. } else {
  285. if metadataAlreadyExists.iconName.count > 0 {
  286. cell.imageAlreadyExistingFile.image = UIImage(named: metadataAlreadyExists.iconName)
  287. } else {
  288. cell.imageAlreadyExistingFile.image = UIImage(named: "file")
  289. }
  290. }
  291. cell.labelDetailAlreadyExistingFile.text = CCUtility.dateDiff(metadataAlreadyExists.date as Date) + "\n" + CCUtility.transformedSize(metadataAlreadyExists.size)
  292. if metadatasConflictAlreadyExistingFiles.contains(metadataNewFile.ocId) {
  293. cell.switchAlreadyExistingFile.isOn = true
  294. } else {
  295. cell.switchAlreadyExistingFile.isOn = false
  296. }
  297. // -----> New File
  298. if metadataNewFile.iconName.count > 0 {
  299. cell.imageNewFile.image = UIImage(named: metadataNewFile.iconName)
  300. } else {
  301. cell.imageNewFile.image = UIImage(named: "file")
  302. }
  303. let filePathNewFile = CCUtility.getDirectoryProviderStorageOcId(metadataNewFile.ocId, fileNameView: metadataNewFile.fileNameView)!
  304. if metadataNewFile.assetLocalIdentifier.count > 0 {
  305. let result = PHAsset.fetchAssets(withLocalIdentifiers: [metadataNewFile.assetLocalIdentifier], options: nil)
  306. let date = result.firstObject!.modificationDate
  307. let mediaType = result.firstObject!.mediaType
  308. if let fileNamePath = self.fileNamesPath[metadataNewFile.fileNameView] {
  309. do {
  310. if mediaType == PHAssetMediaType.image {
  311. let data = try Data(contentsOf: URL(fileURLWithPath: fileNamePath))
  312. if let image = UIImage(data: data) {
  313. cell.imageNewFile.image = image
  314. }
  315. } else if mediaType == PHAssetMediaType.video {
  316. if let image = NCUtility.shared.imageFromVideo(url: URL(fileURLWithPath: fileNamePath), at: 0) {
  317. cell.imageNewFile.image = image
  318. }
  319. }
  320. let fileDictionary = try FileManager.default.attributesOfItem(atPath: fileNamePath)
  321. let fileSize = fileDictionary[FileAttributeKey.size] as! Int64
  322. cell.labelDetailNewFile.text = CCUtility.dateDiff(date) + "\n" + CCUtility.transformedSize(fileSize)
  323. } catch { print("Error: \(error)") }
  324. } else {
  325. CCUtility.extractImageVideoFromAssetLocalIdentifier(forUpload: metadataNewFile) { metadataNew, fileNamePath in
  326. if metadataNew != nil {
  327. self.fileNamesPath[metadataNewFile.fileNameView] = fileNamePath!
  328. do {
  329. let fileDictionary = try FileManager.default.attributesOfItem(atPath: fileNamePath!)
  330. let fileSize = fileDictionary[FileAttributeKey.size] as! Int64
  331. if mediaType == PHAssetMediaType.image {
  332. let data = try Data(contentsOf: URL(fileURLWithPath: fileNamePath!))
  333. if let image = UIImage(data: data) {
  334. cell.imageNewFile.image = image
  335. }
  336. } else if mediaType == PHAssetMediaType.video {
  337. if let image = NCUtility.shared.imageFromVideo(url: URL(fileURLWithPath: fileNamePath!), at: 0) {
  338. cell.imageNewFile.image = image
  339. }
  340. }
  341. cell.labelDetailNewFile.text = CCUtility.dateDiff(date) + "\n" + CCUtility.transformedSize(fileSize)
  342. } catch { print("Error: \(error)") }
  343. }
  344. }
  345. }
  346. } else if FileManager().fileExists(atPath: filePathNewFile) {
  347. do {
  348. if metadataNewFile.classFile == NCCommunicationCommon.typeClassFile.image.rawValue {
  349. // preserver memory especially for very large files in Share extension
  350. if let image = UIImage.downsample(imageAt: URL(fileURLWithPath: filePathNewFile), to: cell.imageNewFile.frame.size) {
  351. cell.imageNewFile.image = image
  352. }
  353. }
  354. let fileDictionary = try FileManager.default.attributesOfItem(atPath: filePathNewFile)
  355. let fileSize = fileDictionary[FileAttributeKey.size] as! Int64
  356. cell.labelDetailNewFile.text = CCUtility.dateDiff(metadataNewFile.date as Date) + "\n" + CCUtility.transformedSize(fileSize)
  357. } catch { print("Error: \(error)") }
  358. } else {
  359. CCUtility.dateDiff(metadataNewFile.date as Date)
  360. }
  361. if metadatasConflictNewFiles.contains(metadataNewFile.ocId) {
  362. cell.switchNewFile.isOn = true
  363. } else {
  364. cell.switchNewFile.isOn = false
  365. }
  366. // Hide switch if only one
  367. if metadatasUploadInConflict.count == 1 {
  368. cell.switchAlreadyExistingFile.isHidden = true
  369. cell.switchNewFile.isHidden = true
  370. }
  371. // text label new file
  372. if textLabelDetailNewFile != nil {
  373. cell.labelDetailNewFile.text = textLabelDetailNewFile! + "\n"
  374. }
  375. return cell
  376. }
  377. return UITableViewCell()
  378. }
  379. }
  380. // MARK: - NCCreateFormUploadConflictCellDelegate
  381. extension NCCreateFormUploadConflict: NCCreateFormUploadConflictCellDelegate {
  382. func valueChangedSwitchNewFile(with ocId: String, isOn: Bool) {
  383. if let index = metadatasConflictNewFiles.firstIndex(of: ocId) {
  384. metadatasConflictNewFiles.remove(at: index)
  385. }
  386. if isOn {
  387. metadatasConflictNewFiles.append(ocId)
  388. }
  389. if metadatasConflictNewFiles.count == metadatasUploadInConflict.count {
  390. switchNewFiles.isOn = true
  391. } else {
  392. switchNewFiles.isOn = false
  393. }
  394. canContinue()
  395. }
  396. func valueChangedSwitchAlreadyExistingFile(with ocId: String, isOn: Bool) {
  397. if let index = metadatasConflictAlreadyExistingFiles.firstIndex(of: ocId) {
  398. metadatasConflictAlreadyExistingFiles.remove(at: index)
  399. }
  400. if isOn {
  401. metadatasConflictAlreadyExistingFiles.append(ocId)
  402. }
  403. if metadatasConflictAlreadyExistingFiles.count == metadatasUploadInConflict.count {
  404. switchAlreadyExistingFiles.isOn = true
  405. } else {
  406. switchAlreadyExistingFiles.isOn = false
  407. }
  408. canContinue()
  409. }
  410. func canContinue() {
  411. var result = true
  412. for metadata in metadatasUploadInConflict {
  413. if !metadatasConflictNewFiles.contains(metadata.ocId) && !metadatasConflictAlreadyExistingFiles.contains(metadata.ocId) {
  414. result = false
  415. }
  416. }
  417. if result {
  418. buttonContinue.isEnabled = true
  419. buttonContinue.setTitleColor(NCBrandColor.shared.label, for: .normal)
  420. } else {
  421. buttonContinue.isEnabled = false
  422. buttonContinue.setTitleColor(NCBrandColor.shared.gray, for: .normal)
  423. }
  424. }
  425. }