HiddenEye-Legacy/WebPages/iCloud/index_files/javascript-strings.js(8).download
Usama Abdul Sattar 9da290eed0
iCloud added
2018-07-12 16:58:13 +05:00

1 line
108 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SC.MODULE_INFO['cloudos_foundation/sharing'].source = "/**\n * @license Portions of this software are copyright Yahoo, Inc, used under the following license:\n * Software License Agreement (BSD License)\n * Copyright (c) 2009, Yahoo! Inc.\n * All rights reserved.\n * Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n *\n * Redistributions of source code must retain the above copyright notice, this list of conditions and the\n * following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n * Neither the name of Yahoo! Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc.\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * Sources of Intellectual Property Included in the YUI Library\n * Where not otherwise indicated, all YUI content is authored by Yahoo! engineers and consists of Yahoo!-owned intellectual property. YUI is issued by Yahoo! under the BSD license above. In some specific instances, YUI will incorporate work done by developers outside of Yahoo! with their express permission.\n*/\n\n/*!\n * jQuery JavaScript Library v1.8.3\n * http://jquery.com/\n *\n * Includes Sizzle.js\n * http://sizzlejs.com/\n *\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license\n * http://jquery.org/license\n *\n * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)\n */\n/** @license\n * ==========================================================================\n * SproutCore -- JavaScript Application Framework\n * Copyright ©2008-2011 Apple Inc. All rights reserved.\n * Copyright 2006-2011, Strobe Inc. and contributors.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the \"Software\"),\n * to deal in the Software without restriction, including without limitation\n * the rights to use, copy, modify, merge, publish, distribute, sublicense,\n * and/or sell copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n * DEALINGS IN THE SOFTWARE.\n *\n * SproutCore and the SproutCore logo are trademarks of Strobe Inc.\n *\n * For more information about SproutCore, visit http://www.sproutcore.com\n *\n * ==========================================================================\n */\n\n/*! @license\n * Raphael 1.5.2 - JavaScript Vector Library\n *\n * Copyright (c) 2010 Dmitry Baranovskiy (http://raphaeljs.com)\n * Licensed under the MIT (http://raphaeljs.com/license.html) license.\n */\n\n/*! @license\n * URI.js - Mutating URLs\n *\n * Version: 1.18.1\n *\n * Author: Rodney Rehm\n * Web: http://medialize.github.io/URI.js/\n *\n * Published under the MIT License http://www.opensource.org/licenses/mit-license\n *\n */\n\n/*! @license\n Copyright Mathias Bynens <https://mathiasbynens.be/>\n \n Permission is hereby granted, free of charge, to any person obtaining\n a copy of this software and associated documentation files (the\n \"Software\"), to deal in the Software without restriction, including\n without limitation the rights to use, copy, modify, merge, publish,\n distribute, sublicense, and/or sell copies of the Software, and to\n permit persons to whom the Software is furnished to do so, subject to\n the following conditions:\n \n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n/*!\n * @license\n *\n * ]{ UUID - Ultra liteweight, blazing fast JavaScript UUID v4 generator\n * https://bitbucket.org/kodifica/uuid/\n *\n * Copyright 2009-2010 Massimo Lombardo\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\nSC.stringsFor(\"en-us\",{\"Sharing.Button.Open\":\"Open\",\"Sharing.Button.Verify\":\"Verify\",\"Sharing.Button.NotNow\":\"Not Now\",\"Sharing.Button.AddEmail\":\"Add Email\",\"Sharing.Button.JoinAndOpen.pages\":\"Open in Pages\",\"Sharing.Button.JoinAndOpen.keynote\":\"Open in Keynote\",\"Sharing.Button.JoinAndOpen.numbers\":\"Open in Numbers\",\"Sharing.Button.JoinAndOpen.notes2\":\"Open in Notes\",\"Sharing.Button.JoinAndOpen.iclouddrive\":\"Add to iCloud Drive\",\"Sharing.Button.Preview.pages\":\"Open Document\",\"Sharing.Button.Preview.keynote\":\"Open Presentation\",\"Sharing.Button.Preview.numbers\":\"Open Spreadsheet\",\"Sharing.Button.DownloadCopy\":\"Download a Copy\",\"Sharing.Button.Done\":\"Done\",\"Sharing.Button.OK\":\"OK\",\"Sharing.Button.Cancel\":\"Cancel\",\"Sharing.Button.Continue\":\"Continue\",\"Sharing.Button.SignOut\":\"Sign Out\",\"Sharing.Button.Download\":\"Download a Copy\",\"Sharing.Button.CheckForUpdates\":\"Check For Updates\",\"Sharing.Button.SendVerificationLink\":\"Send Verification Link\",\"Sharing.Button.VisitAppStore\":\"Visit the App Store\",\"Sharing.Button.TryAgain\":\"Try Again\",\"Sharing.Button.GoTo.pages\":\"Go to Pages\",\"Sharing.Button.GoTo.numbers\":\"Go to Numbers\",\"Sharing.Button.GoTo.keynote\":\"Go to Keynote\",\"Sharing.Button.Report\":\"Report…\",\"Sharing.Title.OpeningQuote\":\"“\",\"Sharing.Title.ClosingQuote\":\"“\",\"Sharing.DefaultTitle\":\"Untitled\",\"Sharing.Label.FullName\":\"%{firstName} %{lastName}\",\"Sharing.OONetwork.NoAccess.Description\":\"Please verify that youre allowed to open %@ using this Apple ID.\",\"Sharing.OONetwork.NoAccess.pages.Title\":\"This document is private.\",\"Sharing.OONetwork.NoAccess.keynote.Title\":\"This presentation is private.\"\n,\"Sharing.OONetwork.NoAccess.numbers.Title\":\"This spreadsheet is private.\",\"Sharing.OONetwork.NoAccess.notes2.Title\":\"This note is private.\",\"Sharing.OONetwork.NoAccess.iclouddrive.Title\":\"This file is private.\",\"Sharing.NotMigrated.notes.Title\":\"Its time to upgrade your notes!\",\"Sharing.NotMigrated.notes.ShortTitle\":\"Its time to upgrade\",\"Sharing.NotMigrated.notes.Description\":\"To open shared notes on the web, youll need to open the Notes app on iOS 9, OS X 10.11, or later and upgrade your iCloud account.\",\"Sharing.Acceptance.notes2.LoggedInForSharing.Description\":\"You will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\",\"Sharing.Acceptance.pages.LoggedInForSharing.Description\":\"You will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\nThis document will also be added to iCloud Drive.\",\"Sharing.Acceptance.numbers.LoggedInForSharing.Description\":\"You will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\nThis spreadsheet will also be added to iCloud Drive.\",\"Sharing.Acceptance.keynote.LoggedInForSharing.Description\":\"You will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\nThis presentation will also be added to iCloud Drive.\",\"Sharing.Acceptance.iclouddrive.LoggedInForSharing.Description\":\"You will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\nThis file will be added to your iCloud Drive.\",\"Sharing.Acceptance.notes2.AlreadyLoggedIn.Description\":\"%{ownerName} shared this note.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\"\n,\"Sharing.Acceptance.pages.AlreadyLoggedIn.Description\":\"%{ownerName} shared this document.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis document will also be added to iCloud Drive.\",\"Sharing.Acceptance.numbers.AlreadyLoggedIn.Description\":\"%{ownerName} shared this spreadsheet.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis spreadsheet will also be added to iCloud Drive.\",\"Sharing.Acceptance.keynote.AlreadyLoggedIn.Description\":\"%{ownerName} shared this presentation.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis presentation will also be added to iCloud Drive.\",\"Sharing.Acceptance.iclouddrive.AlreadyLoggedIn.Description\":\"%{ownerName} shared this file.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis file will be added to your iCloud Drive.\",\"Sharing.PublicSharing.iclouddrive.NotLoggedIn.Description\":\"%{ownerName} shared this file.\\nSign in to add this to your iCloud Drive.\",\"Sharing.PublicSharing.iclouddrive.LoggedIn.Description\":\"%{ownerName} shared this file.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis file will be added to your iCloud Drive.\",\"Sharing.PublicSharing.pages.LoggedIn.Description\":\"%{ownerName} shared this document.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis document will be added to your iCloud Drive.\",\"Sharing.PublicSharing.numbers.LoggedIn.Description\":\"%{ownerName} shared this spreadsheet.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis spreadsheet will be added to your iCloud Drive.\"\n,\"Sharing.PublicSharing.keynote.LoggedIn.Description\":\"%{ownerName} shared this presentation.\\nYou will join as {{bold}}%{userFullName} (%{displayablePrimaryAppleId}){{/bold}}.\\n\\nThis presentation will be added to your iCloud Drive.\",\"Sharing.Mobile.iclouddrive.Accepted.Description\":\"%{shareTitle} has been added to your iCloud Drive.\",\"Sharing.Mobile.iclouddrive.AlreadyAccepted.Description\":\"%{shareTitle} has already been added to your iCloud Drive.\",\"Sharing.Mobile.iclouddrive.isOwner.Description\":\"%{shareTitle} is already available in your iCloud Drive.\",\"Sharing.OONetwork.Vetting.Title\":\"Verify Your Access\",\"Sharing.OONetwork.Vetting.Description.MIXED\":\"Select your email address or phone number, and well send you a verification link.\",\"Sharing.OONetwork.Vetting.Description.EMAIL\":\"Select your email address, and well send you a verification link.\",\"Sharing.OONetwork.Vetting.Description.PHONE\":\"Select your phone number, and well send you a verification link.\",\"Sharing.OONetwork.Vetting.Footer.MIXED\":\"If you dont see your email address or phone number, contact the person who invited you.\",\"Sharing.OONetwork.Vetting.Footer.EMAIL\":\"If you dont see your email address, contact the person who invited you.\",\"Sharing.OONetwork.Vetting.Footer.PHONE\":\"If you dont see your phone number, contact the person who invited you.\",\"Sharing.OONetwork.Vetting.EmailConfirmation.Title\":\"Verification Email Sent\",\"Sharing.OONetwork.Vetting.EmailConfirmation.Description\":\"Follow the instructions in the email to complete verification.\",\"Sharing.OONetwork.Vetting.PhoneConfirmation.Title\":\"Verification Text Message Sent\"\n,\"Sharing.OONetwork.Vetting.PhoneConfirmation.Description\":\"Use the link in the message to complete verification.\",\"Sharing.OONetwork.Vetting.PhoneConfirmation.Subtitle\":\"A text message with a verification link has been sent to %{phoneNumber}.\",\"Sharing.ThirdParty.Description.NoBundleInfo\":\"%{ownerName} shared this.\",\"Sharing.ThirdParty.Description.OwnerShared\":\"%{ownerName} shared this.\",\"Sharing.ThirdParty.Description.macOS.AppmacOSOnly\":\"%{ownerShared} To view it, install macOS Sierra or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.macOS.AppiPadOnly\":\"%{ownerShared} To view it, use an iPad with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.macOS.AppiPhoneOnly\":\"%{ownerShared} To view it, use an iPhone or iPod touch with iOS 10 or later and “%{appName}” app.\",\"Sharing.ThirdParty.Description.macOS.AppiPadiPhone\":\"%{ownerShared} To view it, use an iPad, iPhone, or iPod touch with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.macOS.AppmacOSiPad\":\"%{ownerShared} To view it, install macOS Sierra or later and the “%{appName}” app, or use an iPad with iOS 10 or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.macOS.AppmacOSiPhone\":\"%{ownerShared} To view it, install macOS Sierra or later and the “%{appName}” app, or use an iPhone or iPod touch with iOS 10 or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.macOS.AppmacOSiPadiPhone\":\"%{ownerShared} To view it, install macOS Sierra or later and the “%{appName}” app, or use an iPad, iPhone, or iPod touch with iOS 10 or later and “%{appName}”.\"\n,\"Sharing.ThirdParty.Description.iOS.AppmacOSOnly\":\"%{ownerShared} To view it, use a Mac with macOS Sierra or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppiPadOnly.iPad\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppiPadOnly.iPhone\":\"%{ownerShared} To view it, use an iPad with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppiPhoneOnly.iPad\":\"%{ownerShared} To view it, use an iPhone or iPod touch with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppiPhoneOnly.iPhone\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppiPadiPhone\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.iOS.AppmacOSiPad.iPad\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app, or use a Mac with macOS Sierra or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.iOS.AppmacOSiPad.iPhone\":\"%{ownerShared} To view it, use an iPad with iOS 10 or later and the “%{appName}” app, or a Mac with macOS Sierra or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.iOS.AppmacOSiPhone.iPad\":\"%{ownerShared} To view it, use an iPhone or iPod touch with iOS 10 or later and the “%{appName}” app, or use a Mac with macOS Sierra or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.iOS.AppmacOSiPhone.iPhone\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app, or use a Mac with macOS Sierra or later and “%{appName}”.\"\n,\"Sharing.ThirdParty.Description.iOS.AppmacOSiPadiPhone\":\"%{ownerShared} To view it, install iOS 10 or later and the “%{appName}” app, or use a Mac with macOS Sierra or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.Windows.AppmacOSOnly\":\"%{ownerShared} To view it, use a Mac with macOS Sierra or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.Windows.AppiPadOnly\":\"%{ownerShared} To view it, use an iPad with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.Windows.AppiPhoneOnly\":\"%{ownerShared} To view it, use an iPhone or iPod touch with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.Windows.AppiPadiPhone\":\"%{ownerShared} To view it, use an iPad, iPhone, or iPod touch with iOS 10 or later and the “%{appName}” app.\",\"Sharing.ThirdParty.Description.Windows.AppmacOSiPad\":\"%{ownerShared} To view it, use a Mac with macOS Sierra or later and the “%{appName}” app, or use an iPad with iOS 10 or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.Windows.AppmacOSiPhone\":\"%{ownerShared} To view it, use a Mac with macOS Sierra or later and the “%{appName}” app, or use an iPhone or iPod touch with iOS 10 or later and “%{appName}”.\",\"Sharing.ThirdParty.Description.Windows.AppmacOSiPadiPhone\":\"%{ownerShared} To view it, use a Mac with macOS Sierra or later and the “%{appName}” app, or use an iPad, iPhone, or iPod touch with iOS 10 or later and “%{appName}”.\",\"Sharing.ThirdParty.NoTitle\":\"Untitled\",\"Sharing.ThirdParty.NoAppName\":\"Untitled\",\"Sharing.GameCenter.Update.Title\":\"Software Update Required\",\"Sharing.GameCenter.Update.Description\"\n:\"To accept game invitations, you will need iOS 10 or macOS Sierra or later.\",\"Sharing.GameCenter.MacOSOrIOSRequired.Title\":\"macOS or iOS Required\",\"Sharing.Error.Sharing.ItemNotAvailable.notes2.Title\":\"This note is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.pages.Title\":\"This document is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.numbers.Title\":\"This spreadsheet is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.keynote.Title\":\"This presentation is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.iclouddrive.Title\":\"This file is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.Title\":\"This item is unavailable.\",\"Sharing.Error.Sharing.ItemNotAvailable.notes2.Description\":\"The owner stopped sharing, or you dont have permission to open this note.\",\"Sharing.Error.Sharing.ItemNotAvailable.pages.Description\":\"The owner stopped sharing, or you dont have permission to open this document.\",\"Sharing.Error.Sharing.ItemNotAvailable.keynote.Description\":\"The owner stopped sharing, or you dont have permission to open this presentation.\",\"Sharing.Error.Sharing.ItemNotAvailable.numbers.Description\":\"The owner stopped sharing, or you dont have permission to open this spreadsheet.\",\"Sharing.Error.Sharing.ItemNotAvailable.iclouddrive.Description\":\"The owner stopped sharing, or you dont have permission to open this file.\",\"Sharing.Error.Sharing.AppUnavailable.notes2.iOS.Description\":\"%{ownerName} shared this note. To view it, install the latest version of iOS or open the link on a Mac or PC browser.\",\"Sharing.Error.Sharing.AppUnavailable.notes2.Android.Description\"\n:\"%{ownerName} shared this note. To view it, use the Notes app on a Mac or iOS device, or open the link on a Mac or PC browser.\",\"Sharing.Error.Acceptance.NOT_FOUND.notes2.Title\":\"This note cant be opened right now.\",\"Sharing.Error.Acceptance.NOT_FOUND.pages.Title\":\"This document cant be opened right now.\",\"Sharing.Error.Acceptance.NOT_FOUND.keynote.Title\":\"This presentation cant be opened right now.\",\"Sharing.Error.Acceptance.NOT_FOUND.numbers.Title\":\"This spreadsheet cant be opened right now.\",\"Sharing.Error.Acceptance.NOT_FOUND.iclouddrive.Title\":\"This file cant be opened right now.\",\"Sharing.Error.Acceptance.NOT_FOUND.notes2.Description\":\"%{ownerName} stopped sharing, or you dont have permission to open this note.\",\"Sharing.Error.Acceptance.NOT_FOUND.pages.Description\":\"%{ownerName} stopped sharing, or you dont have permission to open this document.\",\"Sharing.Error.Acceptance.NOT_FOUND.keynote.Description\":\"%{ownerName} stopped sharing, or you dont have permission to open this presentation.\",\"Sharing.Error.Acceptance.NOT_FOUND.numbers.Description\":\"%{ownerName} stopped sharing, or you dont have permission to this spreadsheet.\",\"Sharing.Error.Acceptance.NOT_FOUND.iclouddrive.Description\":\"%{ownerName} stopped sharing, or you dont have permission to open this file.\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.notes2.Title\":\"Unable to Add to Notes\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.pages.Title\":\"Unable to Add to Pages\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.keynote.Title\":\"Unable to Add to Keynote\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.numbers.Title\"\n:\"Unable to Add to Numbers\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.iclouddrive.Title\":\"Unable to Add to iCloud Drive\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.notes2.Description\":\"There was a problem adding %{shareTitle} to Notes at this time.\\nTry again later.\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.pages.Description\":\"There was a problem adding %{shareTitle} to Pages at this time.\\nTry again later.\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.keynote.Description\":\"There was a problem adding %{shareTitle} to Keynote at this time.\\nTry again later.\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.numbers.Description\":\"There was a problem adding %{shareTitle} to Numbers at this time.\\nTry again later.\",\"Sharing.Error.Acceptance.MAX_RETRY_ATTEMPTS_REACHED.iclouddrive.Description\":\"There was a problem adding %{shareTitle} to your iCloud Drive at this time.\\nTry again later.\",\"Sharing.Error.Acceptance.MANAGED_APPLE_ID_RESTRICTED.Title\":\"Sharing acceptance is not allowed.\",\"Sharing.Error.Acceptance.MANAGED_APPLE_ID_RESTRICTED.Description\":\"You are using a managed Apple ID with restricted access permissions.\",\"Sharing.Error.Sharing.DriveNotMigrated.pages.LoggedInForSharing.Description\":\"To open this document, go to Pages and upgrade your account to iCloud Drive, then click the document link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.numbers.LoggedInForSharing.Description\":\"To open this spreadsheet, go to Numbers and upgrade your account to iCloud Drive, then click the spreadsheet link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.keynote.LoggedInForSharing.Description\"\n:\"To open this presentation, go to Keynote and upgrade your account to iCloud Drive, then click the presentation link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.pages.AlreadyLoggedIn.Description\":\"%{ownerName} shared this document. To open it, go to Pages and upgrade your account to iCloud Drive, then click the document link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.numbers.AlreadyLoggedIn.Description\":\"%{ownerName} shared this document. To open it, go to Numbers and upgrade your account to iCloud Drive, then click the spreadsheet link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.keynote.AlreadyLoggedIn.Description\":\"%{ownerName} shared this document. To open it, go to Keynote and upgrade your account to iCloud Drive, then click the presentation link again.\",\"Sharing.Error.Sharing.DriveNotMigrated.pages.iOSAndAndroid.Description\":\"To open this document, youll need to upgrade your account to iCloud Drive. You can upgrade by turning on iCloud Drive in Settings on a device with iOS 8 or later, or by opening Pages for iCloud on a Mac or PC browser.\",\"Sharing.Error.Sharing.DriveNotMigrated.numbers.iOSAndAndroid.Description\":\"To open this spreadsheet, youll need to upgrade your account to iCloud Drive. You can upgrade by turning on iCloud Drive in Settings on a device with iOS 8 or later, or by opening Numbers for iCloud on a Mac or PC browser.\",\"Sharing.Error.Sharing.DriveNotMigrated.keynote.iOSAndAndroid.Description\":\"To open this presentation, youll need to upgrade your account to iCloud Drive. You can upgrade by turning on iCloud Drive in Settings on a device with iOS 8 or later, or by opening Keynote for iCloud on a Mac or PC browser.\"\n,\"Sharing.Error.Sharing.DriveNotMigrated.iclouddrive.Title\":\"Upgrade to iCloud Drive\",\"Sharing.Error.Sharing.DriveNotMigrated.iclouddrive.Description\":\"To open this document, youll need to upgrade your account to iCloud Drive. You can upgrade by turning on iCloud Drive in Settings on a device with iOS 8 or later.\",\"Sharing.Error.Vetting.Generic.Title\":\"Sorry, something went wrong.\",\"Sharing.Error.Vetting.Generic.Description\":\"There was a problem verifying your email address or phone number.\\nTry opening the shared file again, or try opening it on another device.\",\"Sharing.Error.Vetting.NOT_FOUND.Title\":\"The verification link has expired.\",\"Sharing.Error.Vetting.NOT_FOUND.Description\":\"There was a problem verifying your email address or phone number.\\nTry opening the shared file again, or try opening it on another device.\",\"Sharing.Error.OONetwork.Generic.Title\":\"Couldnt Send Link\",\"Sharing.Error.OONetwork.Generic.Description\":\"We werent able to send the verification link. Please try again later.\",\"Sharing.Error.OONetwork.PCS_ERROR.Description\":\"Try opening %{shareTitle} on another device, or contact the person who invited you and ask them to try sharing again.\",\"Sharing.Error.OONetwork.SERVER_ERROR.Description\":\"There may be problem with the server. Please try again later.\",\"Sharing.Error.OONetwork.VETTED_TO_OTHER_USER.Email.Description\":\"The email address “%{selectedEmailAddressOrPhoneNumber}” is already used by another Apple ID. Sign in to iCloud with that Apple ID and try again.\",\"Sharing.Error.OONetwork.VETTED_TO_OTHER_USER.PhoneNumber.Description\":\"The phone number “%{selectedEmailAddressOrPhoneNumber}” is already used by another Apple ID. Sign in to iCloud with that Apple ID and try again.\"\n,\"Sharing.Error.OONetwork.LIMIT_EXCEEDED.Email.Description\":\"Youve added the maximum number of email addresses to your Apple ID, and “%{selectedEmailAddressOrPhoneNumber}” cant be added until you remove one.\",\"Sharing.Error.OONetwork.LIMIT_EXCEEDED.PhoneNumber.Description\":\"Youve added the maximum number of phone numbers to your Apple ID, and “%{selectedEmailAddressOrPhoneNumber}” cant be added until you remove one.\",\"Sharing.Error.OONetwork.ALREADY_VETTED_TO_USER.Email.Title\":\"Email Address Verified\",\"Sharing.Error.OONetwork.ALREADY_VETTED_TO_USER.PhoneNumber.Title\":\"Phone Number Verified\",\"Sharing.Error.OONetwork.ALREADY_VETTED_TO_USER.Description\":\"“%{selectedEmailAddressOrPhoneNumber}” was already verified and added to your Apple ID “%{displayablePrimaryAppleId}”.\"}),Sharing=SC.Object.create({statechart:null,sharingPane:null,ownerAppleId:null,store:null,database:null,contactType:{PHONE:\"PHONE\",EMAIL:\"EMAIL\"},participantListType:{PHONE:\"PHONE\",EMAIL:\"EMAIL\",MIXED:\"MIXED\"},initStateChart:function(e,t){var n=this.get(\"statechart\");n?n.gotoState(\"defaultState\"):(n=Sharing.Statechart.create(),this.set(\"statechart\",n),n.initStatechart()),e&&n.sendAction(e,t)},showPane:function(e,t,n,r,i,s){var o=Sharing.shareDetailsController;o||(o=Sharing.shareDetailsController=Sharing.ShareDetailsController.create()),o.set(\"shortGUID\",e),this.set(\"ownerAppleId\",t),this.set(\"isThirdParty\",n),this.set(\"isGameCenter\",r),this.set(\"shouldAcceptShareWithoutUI\",s),Sharing.store||(Sharing.store=CW.Store.create()),Sharing.database||(Sharing.database=CloudOS.shareController.get(\"database\"));var u=\nthis.get(\"isAppAvailable\");n?this.initStateChart(\"goToThirdPartyState\"):u?this.initStateChart(\"gotoRetrieveState\"):this.initStateChart(\"gotoMigrationNeededState\")},isAppAvailable:function(){var e=CloudOS.shareController.get(\"appName\"),t=e?COS.appsController.getAppInfoFor(e):null;return t&&t.get(\"supportsCKSharing\")||e===null}.property(\"CloudOS.shareController.appName\"),removePane:function(e,t){var n=Sharing.get(\"sharingPane\"),r=function(){n.set(\"nowShowing\",null),n.remove(),Sharing.statechart.gotoState(\"defaultState\"),Sharing.set(\"sharingPane\",null),Sharing.acceptanceController&&Sharing.acceptanceController.set(\"userDidAcceptShare\",NO),t&&t(),e||CW.notificationCenter.postNotification(\"sharingCancelled\")};n?!e&&n.fadeOut?n.fadeOut(r):r():SC.warn(\"No Sharing Pane to remove\")},acceptVettingToken:function(e,t){this.initStateChart(\"gotoVettingTokenState\",{vettingToken:e,isVettingTokenVetted:t})},setupAndShowSharingPane:function(e){var t=Sharing.get(\"sharingPane\");return t?t.set(\"nowShowing\",e):(t=Sharing.SharingPane.create({nowShowing:e}),Sharing.set(\"sharingPane\",t)),t.get(\"isPaneAttached\")||t.show(),t}}),Sharing.utils=SC.Object.create({isIWorkApp:function(e){return e===\"keynote\"||e===\"numbers\"||e===\"pages\"},isFirstPartyAppAndSupportsSharing:function(e){var t=COS.apps[e];return t!==undefined&&t.isCloudOSInterceptingShareUrls},getStringForEncryptedString:function(e){var t;try{t=decodeURIComponent(escape(atob(e)))}catch(n){CW.fatalError(\"Unable to decode the Encrypted String %@\".fmt(e))}return t},recordInfoHasRequiredFields:function(e){if(!e)return!1;var t=!!e.share,n=!!e.rootRecord\n,r=!!e.ownerIdentity,i=!!e.potentialMatchList;return t&&r&&(n||i)},getThumbnailUrl:function(){var e=CloudOS.shareController.get(\"recordInfo\"),t=CloudOS.shareController.get(\"appName\"),n=CloudOS.getUser(),r=\"\",i;if(!e)return r;var s=128,o=s*(window.devicePixelRatio||1),u=CloudOS.getUrlForServiceName(\"iworkthumbnailws\"),a=\"/iw/ws/thumbnail\",f=\"?short_token=\"+e.shortGUID.value+\"&width=\"+o+\"&height=\"+o+\"&dsid=\"+n.dsid;return r=u+a+f,r},getShareTitleFromRecordInfo:function(){var e=CloudOS.shareController.get(\"recordInfo\"),t=CloudOS.shareController.get(\"appName\"),n,r,i,s,o;if(!e)return\"\";t&&(n=COS.appsController.getAppInfoFor(t),i=n.shareInfo);if(i&&i.titleFields&&e.rootRecordName!==\"OUT_OF_NETWORK\"&&e.rootRecord){var u=i.titleFields,a=\"\";for(o=0;o<u.length;o++){var f=u[o],l=f.isType,c=e.rootRecord.fields[f.name];if(!c)continue;s=c.value;var h=c.type;h===\"ENCRYPTED_BYTES\"&&(s=this.getStringForEncryptedString(s)),l?a+=\".\":a!==\"\"&&(a+=\" \"),a+=s}r=a}else{s=e.share.fields[\"cloudkit.title\"];if(s){s=s.value;if(t&&this.isIWorkApp(t)){var p=n.supportedFileExtensions,d;if(p)for(o=0;o<p.length;o++){d=\".\"+p[o];if(s.slice(-d.length)===d){s=s.slice(0,-d.length);break}}}r=s}}return r||(r=\"Sharing.DefaultTitle\".loc()),r},getShareTitle:function(){var e=this.getShareTitleFromRecordInfo();return e=\"%@%@%@\".fmt(\"Sharing.Title.OpeningQuote\".loc(),e.trim(),\"Sharing.Title.ClosingQuote\".loc()),e},getSharedFileExtension:function(){return CloudOS.shareController.getPath(\"recordInfo.rootRecord.fields.extension.value\")},getSharedFileExtensionInLowerCase:function(){var e=this.getSharedFileExtension();return e?\ne.toLowerCase():undefined},getDownloadUrlForSharedFile:function(){var e=CloudOS.shareController.getPath(\"recordInfo.rootRecord.fields.fileContent.value.downloadURL\"),t=this.getShareTitleFromRecordInfo()||\"\",n=this.getSharedFileExtension()||\"\",r=n?\".\":\"\";return e?e.replace(\"${f}\",t+r+n):undefined},truncateStringForMultiLine:function(e,t,n,r,i,s){var o=NO,u=100;SC.prepareStringMeasurement(t);if(e.length>u||SC.measureString(e).width>n){e=e.slice(0,u),e=e.replace(/\\s\\s+/g,\" \");var a=[],f=/([⺀-\\u2efe\\u3000-〾㇀-\\u31ee㈀-㋾㌀-㏾㐀-\\u4dbe一-\\u9ffe豈-\\ufafe-]|[\\ud840-\\ud868\\ud86a-\\ud86c][\\udc00-\\udfff]|\\ud869[\\udc00-\\udede\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf3e\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1e]|\\ud87e[\\udc00-\\ude1e])+/g,l=e.match(f),c,h;if(l){var p=0,d=0;for(c=0;c<l.length;c++)d=e.indexOf(l[c]),d!==p&&(a.push({isCJK:NO,fragment:e.slice(p,d)}),p=d),a.push({isCJK:YES,fragment:l[c]}),p+=l[c].length;p!==e.length&&a.push({isCJK:NO,fragment:e.slice(p)})}else a.push({isCJK:NO,fragment:e});var v=\"\";i&&(v+=\"…\"),r&&(v+=\"Sharing.Title.ClosingQuote\".loc());var m=SC.measureString(v).width,g=SC.measureString(\"&nbsp;\",YES).width,y=l?SC.measureString(l[0][0]).width:0,b;for(c=0;c<a.length;c++)b=a[c],b.isCJK?b.width=b.fragment.length*y:b.width=SC.measureString(b.fragment).width;var w=s,E=n,S=NO,x=NO,c=0,h=0;for(;!S&&c<a.length;c++){b=a[c];if(w===0){S=YES;break}if(b.width>n||b.width>E)if(b.isCJK){var T=Math.floor(E/y),N=b.fragment.length-T;b.included=b.fragment.slice(0,T),w--;if(w===0){S=YES;break}E=w===1?n-m:n;while(w&&N)if(N*y>E){N-=Math.floor(E/y),b.included=b.fragment.slice(0,-N),w--;if(w===0){S=YES;break}\nE=w===1?n-m:n}else E-=N*y,N=0,b.included=b.fragment}else{var C=b.fragment.split(\" \"),k;b.included=\"\";for(h=0;h<C.length;h++){k=C[h];var L=SC.measureString(k).width;E=h===0?E:E-g;var A=w>2?n:n-m;if(L>A){x=YES;var O=L-E;w--;if(w===0){S=YES;break}E=w===1?n-m:n;while(w&&O)if(O>E){O-=E,w--;if(w===0){S=YES;break}E=w===1?n-m:n}else E-=O,O=0;if(O){var M=L-O,_=L,D,P=k;do D=Math.floor(P.length/_*M),P=P.slice(0,D),_=SC.measureString(P).width;while(_>M);h===0?b.included=P:b.included+=\" \"+P}else h===0?b.included=k:b.included+=\" \"+k}else if(L>E){w--;if(w===0){S=YES;break}E=w===1?n-m:n,E-=L,h===0?b.included=k:b.included+=\" \"+k}else E-=L,h===0?b.included=k:b.included+=\" \"+k}}else E-=b.width,b.included=b.fragment}SC.teardownStringMeasurement();var H=\"\";for(c=0;c<a.length;c++){if(!a[c].included)break;H+=a[c].included}return{shouldApplyWordBreak:x,truncated:H+(H.length===e.length?\"\":v),original:e}}return{shouldApplyWordBreak:NO,truncated:e,original:e}},getOwnerName:function(){var e=CloudOS.shareController.getPath(\"recordInfo.share.owner.userIdentity.nameComponents\");return e?\"Sharing.Label.FullName\".loc({firstName:e.givenName,lastName:e.familyName}):null},isSharePublic:function(){return CloudOS.shareController.getPath(\"recordInfo.share.publicPermission\")!==\"NONE\"},isShareAccepted:function(){return CloudOS.shareController.getPath(\"recordInfo.participantStatus\")===CloudKit.ShareParticipantAcceptanceStatus.ACCEPTED},isCurrentUserOwnerOfShare:function(){return CloudOS.shareController.getPath(\"recordInfo.participantType\")===CloudKit.ShareParticipantType.OWNER}}),Sharing.SHARE_SERVICE_NAME=\"cksharews\"\n,Sharing.DATABASE_SERVICE_NAME=\"ckdatabasews\",Sharing.ShareCommonController=SC.Object.extend({environment:\"production\",createRequest:function(e,t,n,r){var i=CloudOS.getUrlForServiceName(Sharing.SHARE_SERVICE_NAME);i+=\"/ws/v1/com.apple.cloudkit/\"+this.get(\"environment\")+\"/\"+e;var s=CK.Request.postUrl(i,t);s.set(\"isJSON\",YES),s.set(\"reportRequest\",YES),s.notify(200,this,n),s.notify(0,this,r),s.send(t)}}),Sharing.AcceptanceController=Sharing.ShareCommonController.extend({_retryAttempts:0,_maxRetryAttempts:3,sharePermissionUrl:\"share/accept\",shareDetails:null,containerId:null,userDidAcceptShare:NO,ownerFullName:function(){return this.getPath(\"shareDetails.ownerFullName\")}.property(\"shareDetails\"),shareRecordTitle:null,acceptShare:function(){Sharing.sharingPane.showSpinner();var e=window.CloudKit.getDefaultContainer();e.acceptShares({value:this.getPath(\"shareDetails.shortGUID.value\")}).then(SC.RunLoop.wrapFunction(function(e){var t=e.errors;t.length>0?this.acceptShareDidFail(e):this.acceptShareDidSucceed(e)}.bind(this))).catch(SC.RunLoop.wrapFunction(function(e){CW.fatalError(\"Error resolving share: \"+e)}.bind(this)))},notifyApplicationWithShare:function(e){var t=CloudOS.shareController,n=t.get(\"appName\"),r=CloudOS.appManagerFor(n);t.set(\"shortGUID\",e.shortGUID.value);if(t.redirectToIWorkIfRequired(n))return;t.set(\"recordInfo\",e),CloudOSBootstrap.isOnSupportedMobile?(Sharing.sharingPane.hideSpinner(),Sharing.statechart.sendAction(\"gotoShareAcceptedState\")):t.launchApp()},acceptShareDidSucceed:function(e){COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_Acceptance_Successful\"\n,{appName:CloudOS.shareController.get(\"appName\")}),this.set(\"userDidAcceptShare\",YES);var t=e.results[0];return this._retryAttempts=0,this.notifyApplicationWithShare(t),YES},acceptShareDidFail:function(e){var t=CloudOS.shareController.get(\"appName\"),n=CloudOS.appManagerFor(t);n.passMessage(\"didFailToResolveCKShortGUID\",CloudOS.shareController.get(\"shortGUID\"),e.errors),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_Acceptance_Failed\",{appName:t}),e=SC.Object.create(e);var r=e.getPath(\"_errors.firstObject.serverErrorCode\");if(!r)throw\"Share Acceptance: Failed without proper error code\";return this.handleError(t,r),YES},handleError:function(e,t){var n,r=\"Acceptance\",i=e,s=\"\",o,u=Sharing.utils,a=NO;SC.debug(\"Share Acceptance: Error code from Server is %@\",t);if(this._retryAttempts===this._maxRetryAttempts)n=\"MAX_RETRY_ATTEMPTS_REACHED\",s=e,this._retryAttempts=0,a=YES;else switch(t){case\"OP_LOCK_FAILURE\":case\"STALE_RECORD_UPDATE\":case\"ATOMIC_FAILURE\":case\"INTERNAL_FAILURE_RETRY_NEEDED\":case\"CONTAINER_BUSY\":case\"CONTAINER_DELETING\":case\"TYPE_BUSY\":case\"PARTITION_LOOKUP_FAILED\":case\"DATASTORE_LOCKED\":case\"USER_ASSIGNMENT_LOCKED\":case\"RESET_NEEDED\":case\"FULL_RESET_NEEDED\":case\"ZONE_BUSY\":case\"QUOTA_SERVICE_ERROR\":case\"ASSIGNMENT_SERVICE_ERROR\":case\"CONTAINER_NEEDS_MIGRATION\":case\"CONTAINER_UNDER_MIGRATION\":case\"ZONE_MIGRATION_BLOCKED\":case\"SERVICE_UNAVAILABLE\":case\"QUEUE_INSERT_FAILED\":case\"ZONE_DISABLED\":case\"REMOTE_CALL_TIMEOUT\":case\"SERVER_OVERLOADED\":case\"ACCOUNT_SERVICE_ERROR\":case\"NETWORK_ERROR\":return this._retryAttempts++,o=1e3*Math.exp(this._retryAttempts),this.\ninvokeLater(this.acceptShare,o),YES;case\"NOT_FOUND\":s=e,n=\"NOT_FOUND\";break;case\"MANAGED_APPLE_ID_RESTRICTED\":n=\"MANAGED_APPLE_ID_RESTRICTED\",i=\"\";break;default:n=\"ItemNotAvailable\",s=e,r=\"Sharing\"}Sharing.sharingPane.hideSpinner(),Sharing.statechart.sendAction(\"gotoErrorState\",{errorType:n,currentFlow:r,additionalLocKeyPartsForTitle:i,additionalLocKeyPartsForDescription:s,descriptionParams:{ownerName:u.getOwnerName(),shareTitle:u.getShareTitle()},shouldShowReportButton:a})},rejectShare:function(){var e=CloudOS.shareController.get(\"appName\"),t=CloudOS.appManagerFor(e),n=CloudOS.shareController;t.passMessage(\"didResolveCKShortGUIDWithoutAcceptance\",n.get(\"shortGUID\"),n.get(\"recordInfo\"))}}),Sharing.ErrorController=SC.Object.extend({titleParams:null,nonLocTitle:null,descriptionParams:null,nonLocDescription:null,currentFlow:\"Sharing\",errorType:\"Generic\",additionalLocKeyPartsForTitle:null,additionalLocKeyPartsForDescription:null,shouldShowReportButton:NO,defaultLocKeyPart:function(){var e=\"Sharing.Error.\"+this.get(\"currentFlow\")+\".\"+this.get(\"errorType\");return e}.property(\"currentFlow\",\"errorType\").cacheable(),title:function(){var e=this.get(\"nonLocTitle\"),t=this.get(\"titleParams\"),n=this.get(\"additionalLocKeyPartsForTitle\")?\".\"+this.get(\"additionalLocKeyPartsForTitle\"):\"\";if(e)return e;var r=this.get(\"defaultLocKeyPart\")+n+\".Title\",i=r.loc(t);return i===r&&(r=\"Sharing.Error.\"+this.get(\"currentFlow\")+\".\"+\"Generic.Title\",i=r.loc(t)),i}.property(\"defaultLocKeyPart\",\"titleParams\",\"additionalLocKeyPartsForTitle\",\"nonLocTitle\").cacheable(),description:function(){var e=this.get(\"nonLocDescription\"\n),t=this.get(\"descriptionParams\"),n=this.get(\"additionalLocKeyPartsForDescription\")?\".\"+this.get(\"additionalLocKeyPartsForDescription\"):\"\";if(e)return e;var r=this.get(\"defaultLocKeyPart\")+n+\".Description\",i=r.loc(t);return i===r&&(r=\"Sharing.Error.\"+this.get(\"currentFlow\")+\".\"+\"Generic.Description\",i=r.loc(t)),i}.property(\"defaultLocKeyPart\",\"descriptionParams\",\"additionalLocKeyPartsForDescription\",\"nonLocDescription\").cacheable(),buttonsArray:null,updateErrorParams:function(e){if(!e&&SC.typeOf(e)===SC.T_HASH)return;this.beginPropertyChanges();for(var t in e)this.set(t,e[t]);this.endPropertyChanges()},resetProperties:function(){this.beginPropertyChanges(),this.set(\"currentFlow\",\"Sharing\"),this.set(\"errorType\",\"Generic\"),this.set(\"titleParams\",null),this.set(\"descriptionParams\",null),this.set(\"nonLocDescription\",null),this.set(\"nonLocTitle\",null),this.set(\"additionalLocKeyPartsForTitle\",null),this.set(\"additionalLocKeyPartsForDescription\",null),this.set(\"buttonsArray\",null),this.set(\"shouldShowReportButton\",NO),this.endPropertyChanges()},reportServerError:function(){var e=this.get(\"errorType\"),t=this.get(\"currentFlow\");e===\"MAX_RETRY_ATTEMPTS_REACHED\"&&t===\"Acceptance\"&&CK.errorCatcher.reportServerError({title:\"Unable to accept share even after multiple retry attempts\",dismissCallback:function(){Sharing.statechart.sendAction(\"removePane\")}})}}),Sharing.vettingMessageSentStatusEnum={NOT_SENT:0,SENT:1,RECEIVED_SUCCESS:2,RECEIVED_ERROR:3},Sharing.OutOfNetworkController=Sharing.ShareCommonController.extend({shareSendVettingUrl:\"share/vetting/initiate\",shareDetails:null,_retryAttempts\n:0,_maxRetryAttempts:3,vettingMessageSentStatus:Sharing.vettingMessageSentStatusEnum.NOT_SENT,showOONPane:function(){var e=CloudOS.AdjustablePane.create({layout:{minHeight:550},maxHeight:550,delegate:null,isLoading:YES});Sharing.set(\"sharingPane\",e),e.append();var t=Sharing.OutOfNetworkView.create();e.set(\"paneContentView\",t),e.invokeLater(function(){this.set(\"isLoading\",NO)},1e3)},init:function(){arguments.callee.base.apply(this,arguments),this.set(\"shareDetails\",Sharing.shareDetailsController.get(\"shareDetails\"))},selectedParticipant:function(e,t){return t!==undefined?this._selectedParticipant=t:this._selectedParticipant||(this._selectedParticipant=this.getPath(\"shareDetails.potentialMatchList\").firstObject()),this._selectedParticipant}.property(\"shareDetails.potentialMatchList\"),participantListType:function(){var e=this.getPath(\"shareDetails.potentialMatchList\"),t=0,n=0;return e.forEach(function(e){e.get(\"contactType\")==Sharing.contactType.EMAIL?t++:e.get(\"contactType\")==Sharing.contactType.PHONE&&n++}),t>0&&n===0?Sharing.participantListType.EMAIL:t===0&&n>0?Sharing.participantListType.PHONE:Sharing.participantListType.MIXED}.property(\"shareDetails.potentialMatchList\"),sendVettingMessage:function(){var e={shortGUID:this.getPath(\"shareDetails.shortGUID.value\"),participantId:this.getPath(\"selectedParticipant.participantId\")};this.createRequest(this.get(\"shareSendVettingUrl\"),e,this.sendingVettingMessageDidSucceed,this.sendingVettingMessageDidFail),this.set(\"vettingMessageSentStatus\",Sharing.vettingMessageSentStatusEnum.SENT)},sendingVettingMessageDidSucceed:function(e){return e\n.get(\"body\").vettingError?NO:(COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_OutOfNetwork_VettingLinkSentSuccessfully\",{appName:CloudOS.shareController.get(\"appName\"),medium:this.get(\"participantListType\")}),this.set(\"vettingMessageSentStatus\",Sharing.vettingMessageSentStatusEnum.RECEIVED_SUCCESS),YES)},sendingVettingMessageDidFail:function(e){var t=\"Generic\",n={},r={},i=this.get(\"selectedParticipant\"),s=i.get(\"isContactTypeEmail\"),o=i.get(\"isContactTypePhoneNumber\"),u,a;COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_OutOfNetwork_VettingLinkSentUnsuccessfully\",{appName:CloudOS.shareController.get(\"appName\"),medium:this.get(\"participantListType\")}),this.set(\"vettingMessageSentStatus\",Sharing.vettingMessageSentStatusEnum.RECEIVED_ERROR),e&&(t=e.get(\"body\").vettingError);if(t){if(t===\"SERVER_ERROR\"||t===\"REMOTE_CALL_TIMEOUT\")if(this._retryAttempts<this._maxRetryAttempts){this._retryAttempts++,this.sendVettingMessage();return}if(t===\"VETTED_TO_OTHER_USER\"||t===\"LIMIT_EXCEEDED\"||t===\"VETTED_TO_OTHER_USER\")s?a=\"Email\":a=\"PhoneNumber\";t===\"ALREADY_VETTED_TO_USER\"&&(s?u=\"Email\":u=\"PhoneNumber\")}return Sharing.statechart.sendAction(\"goToErrorState\",{errorType:t,currentFlow:\"OONetwork\",additionalLocKeyPartsForTitle:u,additionalLocKeyPartsForDescription:a,descriptionParams:{shareTitle:Sharing.utils.getShareTitle(),selectedEmailAddressOrPhoneNumber:this.getPath(\"selectedParticipant.contactInformation.emailAddressOrPhoneNumber\"),displayablePrimaryAppleId:CloudOS.getUser().get(\"displayablePrimaryAppleId\")}}),YES},resetProperties:function(){this.set(\"vettingMessageSentStatus\"\n,Sharing.vettingMessageSentStatusEnum.NOT_SENT),this.set(\"_retryAttempts\",0)}}),Sharing.ROOT_RECORD_OON_KEY=\"OUT_OF_NETWORK\",Sharing.ShareDetailsController=Sharing.ShareCommonController.extend({updateShareDetails:function(e){var t=CloudOS.shareController,n=CloudOSBootstrap.isOnSupportedMobile,r=CloudOS.authController.getPath(\"user.brMigrated\"),i=Sharing.utils,s=i.getShareTitle(),o=i.getOwnerName(),u=t.get(\"appName\");e||(e=t.get(\"recordInfo\"));var a=Sharing.statechart;if(!e)return this.showItemNotAvailable(u);var f;if(n&&!t.get(\"isAppSupportedOnMobile\")){var l=SC.browser.isiOS?\"iOS\":\"Android\";return COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_AppUnsupportedOnMobile\",{appName:u}),a.sendAction(\"gotoErrorState\",{errorType:\"AppUnavailable\",currentFlow:\"Sharing\",additionalLocKeyPartsForDescription:u+\".\"+l,nonLocTitle:s,descriptionParams:{ownerName:o}})}var c=i.recordInfoHasRequiredFields(e);if(!c)return COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_ItemNotAvailable\",{appName:u}),this.showItemNotAvailable();if(r===NO){if(i.isIWorkApp(u)){var h=u;return n?h+=\".iOSAndAndroid\":h+=CloudOS.authController.get(\"performedLoginFlow\")?\".LoggedInForSharing\":\".AlreadyLoggedIn\",a.sendAction(\"gotoErrorState\",{errorType:\"DriveNotMigrated\",currentFlow:\"Sharing\",additionalLocKeyPartsForDescription:h,nonLocTitle:s,descriptionParams:{ownerName:o},buttonsArray:n?null:[{title:(\"Sharing.Button.GoTo.\"+u).loc(),action:function(){CloudOS.openApp(u)}},{title:\"Sharing.Button.NotNow\".loc(),action:function(){Sharing.statechart.sendAction(\"removePane\")}}]})}if(u===\"iclouddrive\")return a\n.sendAction(\"gotoErrorState\",{errorType:\"DriveNotMigrated\",currentFlow:\"Sharing\",additionalLocKeyPartsForTitle:u,additionalLocKeyPartsForDescription:u,descriptionParams:{ownerName:o},buttonsArray:n?null:[{title:\"Sharing.Button.OK\".loc(),action:function(){Sharing.statechart.sendAction(\"removePane\")}}]})}var p=i.isSharePublic(),d;e.rootRecordName||(e.rootRecordName=Sharing.ROOT_RECORD_OON_KEY),Sharing.store||(Sharing.store=CW.Store.create()),Sharing.store.loadRecord(Sharing.ShareDetails,e),f=Sharing.store.find(Sharing.ShareDetails,e.rootRecordName),f||CW.fatalError(\"retrieveShareDidSucceed(): Unable to get shareDetails from the store\"),this.set(\"shareDetails\",f),d=f.get(\"containerIdentifier\");if(f.getPath(\"hasOONParticipants\"))return a.sendAction(\"gotoOutOfNetworkState\");if(f.getPath(\"participantStatus\")!==CloudKit.ShareParticipantAcceptanceStatus.ACCEPTED)return p?a.sendAction(\"gotoPublicShareAcceptanceState\",{containerId:d,shareDetails:f,shouldAcceptShareWithoutUI:Sharing.shouldAcceptShareWithoutUI}):a.sendAction(\"gotoPrivateShareAcceptanceState\",{containerId:d,shareDetails:f});CloudOSBootstrap.isOnSupportedMobile?a.sendAction(\"gotoShareAcceptedState\"):(t.set(\"recordInfo\",e),t.launchApp())},showItemNotAvailable:function(e){return Sharing.statechart.sendAction(\"gotoErrorState\",{errorType:\"ItemNotAvailable\",currentFlow:\"Sharing\",additionalLocKeyPartsForTitle:e,additionalLocKeyPartsForDescription:e})}});var VETTING_PREFIX=\"V:\";Sharing.VettingTokenController=Sharing.ShareCommonController.extend({vettingToken:null,isVettingTokenVetted:NO,lookupAlternateDsid:function(e,t){this.set\n(\"vettingToken\",e),this.set(\"isVettingTokenVetted\",t);if(!t){COS.statsController.recordLocationStat(\"cloudos\",\"Vetting_FlowInitiated\");var n=CloudOS.getUrlForServiceName(Sharing.DATABASE_SERVICE_NAME);n+=\"/database/1/com.apple.sharing.public/\"+this.get(\"environment\")+\"/public/records/lookup\";var r={records:[{recordName:VETTING_PREFIX+e}],desiredKeys:[\"alternateDsid\",\"email\",\"phone\"]},i=CK.Request.postUrl(n,r);i.set(\"isJSON\",YES),i.set(\"reportRequest\",YES),i.notify(200,this,this.lookupAlternateDsidDidSucceed),i.notify(0,this,this.lookupAlternateDsidDidFail),i.send()}else COS.statsController.recordLocationStat(\"cloudos\",\"Vetting_FlowCompleted\"),this.fetchShareWithVettingToken(e)},lookupAlternateDsidDidSucceed:function(e){var t=e.get(\"body\"),n=t.records,r=n&&n[0];if(r&&r.serverErrorCode)this.showError(r.serverErrorCode);else{var i=n[0].fields,s=i.alternateDsid.value,o=i.email,u=i.phone,a;(o||u)&&COS.statsController.recordLocationStat(\"cloudos\",\"Vetting_RedirectingToIDMS\",{vettingType:o?\"EMAIL\":\"PHONENUMBER\"}),o?(SC.Logger.info(\"Redirecting to IDMS with email address\"),a=CloudOS.authController.getConfigBagUrlForKey(\"vettingUrlForEmail\"),window.location.href=a+\"?key=\"+this.get(\"vettingToken\")+\"&id=\"+s):u?(SC.Logger.info(\"Redirecting to IDMS with phone number\"),a=CloudOS.authController.getConfigBagUrlForKey(\"vettingUrlForPhone\"),window.location.href=a+\"?key=\"+this.get(\"vettingToken\")+\"&id=\"+s):(SC.Logger.info(\"No Email Address or Phone Number, showing error\"),this.showError(\"NOT_FOUND\"))}return YES},showError:function(e){Sharing.statechart.sendAction(\"gotoErrorState\",{errorType:e||\"Generic\"\n,currentFlow:\"Vetting\"})},lookupAlternateDsidDidFail:function(e){return this.showError(\"NOT_FOUND\"),YES},fetchShareWithVettingToken:function(e){var t={vettingToken:e};this.createRequest(\"share/token/getPermission\",t,this.fetchShareWithVettingTokenDidSucceed,this.fetchShareWithVettingTokenDidFail)},fetchShareWithVettingTokenDidSucceed:function(e){var t=e.get(\"body\"),n=t.container.name;CloudOS.shareController.set(\"containerIdentifier\",n);var r=t.share.shortGUID;return r?(CloudOS.shareController.set(\"shortGUID\",r),CloudOS.shareController.retrieveShare(function(e){var t=CloudOS.shareController,n=e.results[0];t.set(\"recordInfo\",n);var r=Sharing.shareDetailsController;r||(r=Sharing.shareDetailsController=Sharing.ShareDetailsController.create()),r.updateShareDetails(n)}.bind(this))):CW.fatalError(\"Server Error. No shortGUID found in the getPermission response\"),YES},fetchShareWithVettingTokenDidFail:function(e){return this.showError(\"NOT_FOUND\"),YES}}),Sharing.HorizontalCenterAlign={frameObserver:function(){var e=this.getPath(\"frame.width\"),t=this.getPath(\"parentView.frame.width\"),n=this.get(\"flowSpacing\");if(e===0)return;n||(n={}),n.left=Math.round(t-e)/2,this.set(\"flowSpacing\",n)}.observes(\"frame\")},Sharing.ShareContainer=CW.HashAttribute.extend({env:CW.Record.attr(String),name:CW.Record.attr(String)}),Sharing.PhoneNumberField={},SC.RecordAttribute.registerTransform(Sharing.PhoneNumberField,{to:function(e,t,n,r,i){return r.get(\"formattedValue\")||\"+\"+e}}),Sharing.ContactInfo=CW.HashAttribute.extend(CK.PhoneNumbers.PhoneFormatter,{firstName:CW.Record.attr(String),lastName:CW.Record\n.attr(String),emailAddress:CW.Record.attr(String),phoneNumber:CW.Record.attr(Sharing.PhoneNumberField),fullName:function(){return\"Sharing.Label.FullName\".loc({firstName:this.get(\"firstName\"),lastName:this.get(\"lastName\")})}.property(\"firstName\",\"lastName\"),defaultCountryCode:function(){var e=CloudOS.authController.getPath(\"accountPreferences.localeForCloudOS\"),t=[\"cs-cz\",\"ja-jp\"].indexOf(e)!==-1?0:1,n=\"us\";return e&&(e===\"vi-vi\"?n=\"vn\":n=e.split(\"-\")[t]),n}.property(\"CloudOS.authController.accountPreferences.localeForCloudOS\"),emailAddressOrPhoneNumber:function(){return this.get(\"emailAddress\")||this.get(\"phoneNumber\")}.property(\"emailAddress\",\"phoneNumber\"),valueBinding:\".phoneNumber\",formattedValueObserver:function(){this.get(\"formattedValue\")!==this.get(\"value\")&&this.getPath(\"parent.parent.parent\").recordDidChange()}.observes(\"formattedValue\")}),Sharing.ShareParticipant=CW.HashAttribute.extend({participantId:CW.Record.attr(String),contactInformation:CW.Record.attr(Sharing.ContactInfo),shareParticipantState:CW.Record.attr(String),shareParticipantType:CW.Record.attr(String),permission:CW.Record.attr(String),publicKey:CW.Record.attr(SC.Object),publicKeyVersion:CW.Record.attr(SC.Object),outOfNetworkKeyType:CW.Record.attr(SC.Object),contactEmailAddressOrPhoneNumber:function(){return this.getPath(\"contactInformation.emailAddressOrPhoneNumber\")}.property(\"contactInformation.emailAddressOrPhoneNumber\"),contactType:function(){return this.getPath(\"contactInformation.emailAddress\")?Sharing.contactType.EMAIL:this.getPath(\"contactInformation.phoneNumber\")?Sharing.contactType.PHONE:undefined\n}.property(\"contactInformation\"),isContactTypeEmail:function(){return this.get(\"contactType\")===Sharing.contactType.EMAIL}.property(\"contactType\"),isContactTypePhoneNumber:function(){return this.get(\"contactType\")===Sharing.contactType.PHONE}.property(\"contactType\")}),Sharing.ShareInfo=CW.HashAttribute.extend({etag:CW.Record.attr(String),shortGUID:CW.Record.attr(String),participantList:CW.Record.toMany(Sharing.ShareParticipant),ownerFullName:function(){var e=this.get(\"participantList\"),t=e.get(\"length\"),n;for(var r=0;r<t;r++){var i=e.objectAt(r);if(i.get(\"shareParticipantType\")===\"owner\"){n=i.getPath(\"contactInformation.fullName\");break}}return n}.property(\"participantList\")}),Sharing.ShareIdentifier=CW.HashAttribute.extend({zone:CW.Record.attr(String),ownerIdentifier:CW.Record.attr(String),shareId:CW.Record.attr(String),recordName:function(){return this.get(\"shareId\").split(\"_\")[0]}.property(\"shareId\"),zoneID:function(){return{zoneName:this.get(\"zone\"),ownerRecordName:this.get(\"ownerIdentifier\")}}.property(\"zone\",\"ownerIdentifier\")}),Sharing.ShareDetails=CW.Record.extend({primaryKey:\"rootRecordName\",rootRecordName:CW.Record.attr(String),protectedFullToken:CW.Record.attr(String),shareId:CW.Record.attr(Sharing.ShareIdentifier),container:CW.Record.attr(Sharing.ShareContainer),share:CW.Record.attr(Sharing.ShareInfo),potentialMatchList:CW.Record.toMany(Sharing.ShareParticipant),hasOONParticipants:function(){return this.getPath(\"potentialMatchList.length\")>0}.property(\"potentialMatchList\")}),CW.SectionedViewCollectionItemCellRTLRenderDelegate=CW.SectionedViewCollectionItemCellRenderDelegate\n.extend({renderContentArea:function(e,t){var n=e.get(\"indentationLevelValue\"),r=e.get(\"indentationWidthValue\"),i=e.get(\"accessoryLayout\"),s=CloudOS.get(\"isCloudOSLocaleRTLOriented\");t=t.begin().addClass(\"cw-content\"),s?t.addStyle(\"margin-right\",n*r):t.addStyle(\"margin-left\",n*r);if(i){var o=i.width,u=i.left,a=i.right,f=5;if(o){var l=o+f;s?t.addStyle(\"margin-left\",l+a):t.addStyle(\"margin-right\",l+u)}else u&&t.addStyle(\"margin-right\",u+f)}this.willRenderContentAreaBody(e,t),this.renderContentAreaImage(e,t,CW.SectionedViewCellImageAnchor.CONTENT_AREA),this.renderContentAreaText(e,t),this.renderContentAreaDetailText(e,t),this.didRenderContentAreaBody(e,t),t.end()}}),SC.BaseTheme.sectionedViewCollectionItemCellRTLRenderDelegate=CW.SectionedViewCollectionItemCellRTLRenderDelegate.create(),SC.BaseTheme.labelReplacementRenderDelegate=SC.BaseTheme.labelRenderDelegate.extend({htmlForTitleAndIcon:function(e){var t=arguments.callee.base.apply(this,arguments);return t=this.replaceWithHTMLIfRequired(t,e._view),t},replaceWithHTMLIfRequired:function(e,t){if(!e)return e;var n=t.get(\"replacementHTMLforStartString\"),r=t.get(\"replacementHTMLforEndString\"),i=t.get(\"startStringToBeReplaced\"),s=t.get(\"endStringToBeReplaced\");return n&&r&&i&&s&&(e=e.replace(i,n).replace(s,r)),e}}),Sharing.Statechart=SC.Statechart.extend({trace:YES,monitorIsActive:NO,name:\"sharing-statechart\",rootState:SC.State.design({initialSubstate:\"defaultState\",enterState:function(){CloudOS.workspaceController.hideCentralSpinner()},gotoErrorState:function(e){this.gotoState(\"errorState\",e)},gotoShareAcceptedState:function(){this\n.gotoState(\"shareAcceptedState\")},defaultState:SC.State.design({gotoMigrationNeededState:function(){this.gotoState(\"migrationNeededState\")},gotoRetrieveState:function(){this.gotoState(\"retrieveState\")},gotoVettingTokenState:function(e){this.gotoState(\"vettingTokenState\",e)},goToThirdPartyState:function(){this.gotoState(\"thirdParty\")}}),retrieveState:SC.State.design({enterState:function(){Sharing.shareDetailsController.updateShareDetails()},gotoPublicShareAcceptanceState:function(e){this.gotoState(\"publicShareAcceptanceState\",e)},gotoPrivateShareAcceptanceState:function(e){this.gotoState(\"acceptPrivateShareState\",e)},gotoOutOfNetworkState:function(){this.gotoState(\"outOfNetWorkState\")},cancelSharing:function(){Sharing.removePane()}}),publicShareAcceptanceState:SC.State.design({initialSubstate:\"shareUIState\",shareUIState:SC.State.design({enterState:function(e){var t=CloudOS.shareController.get(\"appName\"),n=Sharing.acceptanceController,r=e.shouldAcceptShareWithoutUI;n||(n=Sharing.acceptanceController=Sharing.AcceptanceController.create(e)),r?this.gotoState(\"acceptPublicShare\"):(Sharing.setupAndShowSharingPane(\"publicSharing\"),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_Public_Acceptance_UILoaded\",{appName:t}))},acceptSharing:function(){this.gotoState(\"acceptPublicShare\")},showAuthUI:function(){Sharing.removePane()},cancelSharing:function(){Sharing.removePane(),window.location.hash=\"\"},rejectSharing:function(){Sharing.acceptanceController.rejectShare(),Sharing.removePane()}}),acceptPublicShare:SC.State.design({enterState:function(){Sharing.setupAndShowSharingPane()\n,Sharing.acceptanceController.acceptShare()}})}),acceptPrivateShareState:SC.State.design({enterState:function(e){var t=Sharing.acceptanceController,n;t||(t=Sharing.acceptanceController=Sharing.AcceptanceController.create(e));var r=CloudOS.shareController.get(\"appName\");Sharing.utils.isFirstPartyAppAndSupportsSharing(r)?n=\"inNetworkAcceptance\":n=\"thirdParty\",Sharing.setupAndShowSharingPane(n),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_Acceptance_UILoaded\",{appName:r||\"thirdParty\"})},acceptShare:function(){Sharing.acceptanceController.acceptShare()},cancelSharing:function(){Sharing.acceptanceController.rejectShare(),Sharing.removePane()}}),outOfNetWorkState:SC.State.design({initialSubstate:\"noAccess\",noAccess:SC.State.design({enterState:function(){var e=Sharing.outOfNetworkController;e||(e=Sharing.outOfNetworkController=Sharing.OutOfNetworkController.create()),Sharing.setupAndShowSharingPane(\"noAccess\"),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_OutOfNetwork_LoadedVerificationFlow\",{appName:CloudOS.shareController.get(\"appName\")})},cancelSharing:function(){Sharing.removePane()},gotoDeliveryMethodSelection:function(){Sharing.removePane(YES,function(){Sharing.statechart.gotoState(\"deliveryMethodSelection\")})}}),deliveryMethodSelection:SC.State.design({initialSubstate:\"showPane\",sendVettingMessage:function(){Sharing.outOfNetworkController.sendVettingMessage()},vettingMessageSent:function(){Sharing.removePane()},cancelSharing:function(){Sharing.removePane()},goToErrorState:function(e){this.gotoState(\"oonErrorState\",e)},showPane:SC.State.design({enterState\n:function(){Sharing.outOfNetworkController.showOONPane()}}),oonErrorState:SC.State.design({enterState:function(e){var t=Sharing.errorController;t?t.updateErrorParams(e):t=Sharing.errorController=Sharing.ErrorController.create(e)}})}),exitState:function(){Sharing.outOfNetworkController.resetProperties()}}),vettingTokenState:SC.State.design({enterState:function(e){var t=Sharing.vettingTokenController;t||(t=Sharing.vettingTokenController=Sharing.VettingTokenController.create()),t.lookupAlternateDsid(e.vettingToken,e.isVettingTokenVetted)},gotoPrivateShareAcceptanceState:function(e){this.gotoState(\"acceptPrivateShareState\",e)},cancelSharing:function(){Sharing.removePane()},gotoOutOfNetworkState:function(){this.gotoState(\"errorState\",{errorType:\"Generic\",currentFlow:\"Vetting\"})}}),migrationNeededState:SC.State.design({enterState:function(){Sharing.setupAndShowSharingPane(\"notesMigrationNeeded\")},cancelSharing:function(){Sharing.removePane()}}),thirdParty:SC.State.design({initialSubstate:\"genericThirdParty\",genericThirdParty:SC.State.design({enterState:function(){var e=CloudOS.shareController.getPath(\"recordInfo.containerIdentifier\");if(e===\"com.apple.socialgaming.sessions\"){this.gotoState(\"gameCenterUnsupportedState\");return}var t=CloudOS.shareController.getPath(\"recordInfo.webpageURL\");if(t){SC.info(\"Redirecting to the third party sharing URL\");var n=new URI(t);n.protocol()?(COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_ThirdParty_RedirectToWebPage\"),window.location.href=n.toString()+CloudOS.shareController.get(\"shortGUID\")):(SC.warn(\"%@ is not a valid fallback URL.\"\n,t),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_ThirdParty_UILoaded\"),Sharing.setupAndShowSharingPane(\"thirdParty\"))}else Sharing.setupAndShowSharingPane(\"thirdParty\"),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_ThirdParty_UILoaded\")}}),gameCenterUnsupportedState:SC.State.design({enterState:function(){COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_GameCenter_UILoaded\"),Sharing.setupAndShowSharingPane(\"gameCenterUpdate\")},removePane:function(){Sharing.removePane()}})}),errorState:SC.State.design({enterState:function(e){var t=Sharing.errorController,n;t?t.updateErrorParams(e):t=Sharing.errorController=Sharing.ErrorController.create(e),Sharing.setupAndShowSharingPane(\"error\")},reportServerError:function(){Sharing.errorController.reportServerError()},removePane:function(){Sharing.removePane()},signOut:function(){CloudOS.authController.logoutUser(function(){CK.reloadWithReason(\"Sharing: Error State\")},YES)},exitState:function(){Sharing.errorController.resetProperties()}}),shareAcceptedState:SC.State.design({enterState:function(){var e=CloudOS.shareController.get(\"appName\");Sharing.setupAndShowSharingPane(\"sharingAccepted\"),COS.statsController.recordLocationStat(\"cloudos\",\"Sharing_Accepted_UILoaded\",{appName:e})}})})}),Sharing.SpinnerView=CW.SpinnerView.extend({asset:CloudOS.SPINNER_IMAGE_SRC,assetIsAlways2x:YES,useAbsoluteLayout:YES,layout:{centerX:0,centerY:0}}),Sharing.AppIconView=SC.ImageView.extend(Sharing.HorizontalCenterAlign,{useCanvas:YES,frame:{x:0,y:0,width:128,height:128},isVisible:function(){var e=this.get(\"forceDefaultIconUsage\"\n),t=CloudOS.shareController.get(\"appName\");return t===\"notes2\"&&!e?NO:YES}.property(\"CloudOS.shareController.appName\",\"forceDefaultIconUsage\").cacheable(),forceDefaultIconUsage:NO,defaultIcon:function(){var e=window.devicePixelRatio,t;return e>1?t=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/icloud@2x.png\":t=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/icloud.png\",t}.property().cacheable(),appNameBinding:\"CloudOS.shareController.appName\",isAppThirdPartyBinding:\"Sharing.isThirdParty\",isGameCenterBinding:\"Sharing.isGameCenter\",recordInfo:null,needsMask:function(){if(!this.get(\"isAppThirdParty\"))return NO;var e=this.get(\"recordInfo\");return e?e.bundleInfo?e&&e.bundleInfo&&e.bundleInfo[0].kind===\"iosSoftware\":YES:NO}.property(\"isAppThirdParty\",\"recordInfo\").cacheable(),value:function(){var e,t=this.get(\"recordInfo\");if(this.get(\"isGameCenter\")){var n=\"iclouddrive\",r=CloudOS.appManagerFor(n);r||(e=\"\");var i=window.devicePixelRatio;i>1?e=r.get(\"appIconUrl2x\"):e=r.get(\"appIconUrl\")}else if(this.get(\"isAppThirdParty\")){t=t||{};var s;!t.bundleInfo||!t.bundleInfo[0].iconUrlTemplate?(SC.warn(\"No app icon found in App Store associated to container %@.\",t.containerIdentifier),window.devicePixelRatio>2?s=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/no_icon_128x128@3x.png\":window.devicePixelRatio>1?s=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/no_icon_128x128@2x.png\"\n:s=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/no_icon_128x128.png\"):s=t.bundleInfo[0].iconUrlTemplate.replace(/(http:\\/\\/)|({w})|({h})|({f})/g,function(e,t,n,r,i){if(t)return\"http://\";if(n||r)return 128*window.devicePixelRatio;if(i)return\"png\"}),e=s}else{var n,i=window.devicePixelRatio;this.get(\"forceDefaultIconUsage\")||(n=CloudOS.shareController.get(\"appName\")),n&&t&&(r=CloudOS.appManagerFor(n)),r?i>1?e=r.get(\"appIconUrl2x\"):e=r.get(\"appIconUrl\"):e=this.get(\"defaultIcon\")}return e}.property(\"isAppThirdParty\",\"isGameCenter\",\"forceDefaultIconUsage\",\"defaultAppName\",\"recordInfo\").cacheable(),_loadImageUsingCache:function(){if(this.get(\"needsMask\")){var e=this,t=new Promise(function(e){var t;window.devicePixelRatio>2?t=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/mask_128x128@3x.png\":window.devicePixelRatio>1?t=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/mask_128x128@2x.png\":t=\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/source/resources/images/mask_128x128.png\",SC.imageQueue.loadImage(t,this,function(t,n){SC.ok(n)&&e(n)})}),n=new Promise(function(t){var n=e.get(\"value\");SC.imageQueue.loadImage(n,this,function(e,n){SC.ok(n)&&t(n)})});return Promise.all([t,n]).then(function(t){e.maskImage=t[0],e.didLoad(t[1])}),YES}arguments.callee.base.apply(this,arguments)},renderDelegate:SC.BaseTheme.canvasImageRenderDelegate.create({update:function(e,t){if(e._view.get(\"needsMask\")){var n=\nt[0],r=e.get(\"image\"),i=e._view.frame.width,s=e._view.frame.height,o=e.get(\"renderState\"),u=e._view.maskImage,a,f=e.didChangeFor(\"canvasImageRenderDelegate\",\"backgroundColor\"),l=e.didChangeFor(\"canvasImageRenderDelegate\",\"image\")||(r&&r.complete)!==o._lastImageComplete;if(f||l){if(n&&n.getContext){var c=n.height=s*devicePixelRatio,h=n.width=i*devicePixelRatio;a=n.getContext(\"2d\"),r&&r.complete&&u&&(a.drawImage(u,0,0,h,c),a.globalCompositeOperation=\"source-atop\",a.drawImage(r,0,0,h,c))}o._lastImageComplete=r&&r.complete}}else arguments.callee.base.apply(this,arguments)}})}),Sharing.IWorkThumbnailIconView=SC.ContainerView.extend({animationDuration:.5,nowShowing:null,init:function(){arguments.callee.base.apply(this,arguments);var e=Sharing.utils.getThumbnailUrl();SC.imageQueue.loadImage(e,this,\"showThumbnailIconView\")},contentView:SC.ImageView.extend(Sharing.HorizontalCenterAlign,{useStaticLayout:!0,classNames:[\"sharing-badge-icon\"],init:function(){arguments.callee.base.apply(this,arguments);var e=CloudOS.shareController.get(\"fileExtensionOrUTI\"),t=CoreTypes.API.fetchIcon(e,128,window.devicePixelRatio,\"web\");this.set(\"value\",t.iconURL)}}),showThumbnailIconView:function(e,t){if(SC.typeOf(t)===\"error\")SC.Logger.warn(\"Failed to load iWork thumbnail in share acceptance flow\");else{var n=this.get(\"contentView\"),r=this.get(\"animationDuration\");n.animate(\"opacity\",0,{duration:r,timing:\"ease\"}),this.invokeLater(function(){this.set(\"nowShowing\",\"thumbnailIconView\"),this.contentView.image=t}.bind(this),r)}},thumbnailIconView:SC.ImageView.extend(Sharing.HorizontalCenterAlign,{useStaticLayout\n:!0,useImageQueue:!1,value:SC.BLANK_IMAGE_URL,classNames:[\"sharing-thumbnail-badge-icon\"],render:function(e){arguments.callee.base.apply(this,arguments);var t=this.image,n=t.width>t.height;if(n){var r=t.width/t.height===16/9;r?e.addClass(\"sharing-thumbnail-landscape-wide-badge-icon\"):e.addClass(\"sharing-thumbnail-landscape-standard-badge-icon\")}},_loadImage:function(){}}),nowShowingDidChange:function(e){e();var t=this.get(\"contentView\");this.invokeLater(function(){t.animate(\"opacity\",1,{duration:this.animationDuration,timing:\"ease\"})}.bind(this),this.animationDuration*50)}.enhance()}),Sharing.ExtensionIconView=SC.View.extend(Sharing.HorizontalCenterAlign,{useStaticLayout:!0,classNames:[\"sharing-badge-icon\"],childViews:[\"imageView\"],isDefaultIcon:NO,fileExtensionInLowerCase:function(){return Sharing.utils.getSharedFileExtensionInLowerCase()}.property(\"CloudOS.shareController.recordInfo\").cacheable(),isFileExtensionLengthTooLong:function(){var e=this.get(\"fileExtension\");return e&&e.length>7}.property(\"fileExtension\").cacheable(),shouldShowFileExtension:function(){return this.get(\"isDefaultIcon\")&&!this.get(\"isFileExtensionLengthTooLong\")}.property(\"isDefaultIcon\",\"isFileExtensionLengthTooLong\"),imageView:SC.ImageView.extend(Sharing.HorizontalCenterAlign,{useStaticLayout:!0,classNames:[\"image-view\"],init:function(){arguments.callee.base.apply(this,arguments);var e=this.getPath(\"parentView.fileExtensionInLowerCase\"),t;t=CoreTypes.API.fetchIcon(e,128,window.devicePixelRatio,[\"web\",\"ios\"]),this.set(\"value\",t.iconURL),this.get(\"parentView\").set(\"isDefaultIcon\",t.isDefaultIcon)}}),\nsetExtensionLabelIfRequired:function(){if(this.get(\"shouldShowFileExtension\")&&SC.typeOf(this.extensionLabel)===SC.T_CLASS){var e=this.createChildView(this.extensionLabel);this.set(\"extensionLabel\",e),this.appendChild(e)}}.observes(\"shouldShowFileExtension\"),extensionLabel:SC.LabelView.design({classNames:[\"file-extension\"],classNameBindings:[\"sizeClass\"],addAdditionalClassName:function(){var e=this.get(\"value\");if(!e)return;var t=e.length,n=\"size-default\";t===4?n=\"size-4\":t===5?n=\"size-5\":t>5&&t<8?n=\"size-long\":t>7&&this.set(\"value\",\"\"),this.set(\"sizeClass\",n)}.observes(\"value\"),valueBinding:\"*owner.fileExtensionInLowerCase\"})}),Sharing.IconContainerView=SC.ContainerView.extend(Sharing.HorizontalCenterAlign,{appName:null,recordInfo:null,forceDefaultIconUsage:NO,nowShowing:function(){var e=this._supportsIWorkThumbnailView(),t=this.get(\"appName\"),n=this.get(\"forceDefaultIconUsage\"),r=[],i=\"appIconView\";return n||(e?i=\"iWorkThumbnailIconView\":t===\"iclouddrive\"&&(i=\"extensionIconView\")),i}.property(\"appName\",\"recordInfo\",\"forceDefaultIconUsage\"),_supportsIWorkThumbnailView:function(){var e=this.get(\"appName\"),t=this.get(\"recordInfo\");return t&&Sharing.utils.isIWorkApp(e)},appIconView:Sharing.AppIconView.design(SC.StaticLayout,{useStaticLayout:!0,classNames:[\"sharing-badge-icon\"],forceDefaultIconUsageBinding:SC.Binding.oneWay(\"*parentView.forceDefaultIconUsage\"),recordInfoBinding:SC.Binding.oneWay(\"CloudOS.shareController.recordInfo\")}),iWorkThumbnailIconView:Sharing.IWorkThumbnailIconView.design(),extensionIconView:Sharing.ExtensionIconView.design()}),Sharing.HTMLInclusiveLabelView=\nSC.LabelView.extend({startStringToBeReplaced:null,endStringToBeReplaced:null,replacementHTMLforStartString:null,replacementHTMLforEndString:null,renderDelegateName:\"labelReplacementRenderDelegate\"}),Sharing.GenericBadgeView=SC.View.extend({classNames:[\"generic-badge-view\"],childViews:[\"loadedView\"],title:\"\",description:\"\",forceDefaultIconUsage:NO,showIcon:YES,buttonsArray:null,loadedView:SC.View.design(SC.StaticLayout,{useStaticLayout:!0,classNames:[\"generic-badge-loaded-view\"],childViews:[\"icon\",\"title\",\"description\"],buttonsArrayBinding:SC.Binding.oneWay(\"*parentView.buttonsArray\"),icon:Sharing.IconContainerView.design(SC.StaticLayout,{useStaticLayout:!0,classNames:[\"sharing-badge-icon\"],isVisibleBinding:SC.Binding.oneWay(\"*parentView.parentView.showIcon\"),forceDefaultIconUsageBinding:SC.Binding.oneWay(\"*parentView.parentView.forceDefaultIconUsage\"),recordInfoBinding:SC.Binding.oneWay(\"CloudOS.shareController.recordInfo\"),appNameBinding:SC.Binding.oneWay(\"CloudOS.shareController.appName\"),ariaRole:\"img\",ariaLabelBinding:\".owner.owner.title\"}),title:SC.LabelView.design(SC.StaticLayout,{classNames:[\"badge-title\"],useStaticLayout:!0,controlSize:SC.HUGE_CONTROL_SIZE,value:function(){return this.get(\"truncatedTitle\")||this.getPath(\"owner.owner.title\")}.property(\".owner.owner.title\",\"truncatedTitle\").cacheable(),classNameBindings:[\"shouldApplyWordBreak:word-break\"],attributeBindings:[\"tabindex\",\"aria-level\"],tabindex:\"-1\",ariaRole:\"heading\",\"aria-level\":\"1\"}),description:Sharing.HTMLInclusiveLabelView.design(SC.StaticLayout,{classNames:[\"badge-description\"],controlSize:SC.LARGE_CONTROL_SIZE\n,useStaticLayout:!0,valueBinding:SC.Binding.oneWay(\".owner.owner.description\"),replacementHTMLforStartString:\"<span class='bold'>\",replacementHTMLforEndString:\"</span>\",startStringToBeReplaced:\"{{bold}}\",endStringToBeReplaced:\"{{/bold}}\"}),buttonsArrayDidChange:function(){this.generateButtons()}.observes(\"buttonsArray\"),generateButtons:function(){var e=this.get(\"buttonsArray\");if(e){var t=this.createChildView(SC.View,{useStaticLayout:YES,classNames:[\"badge-buttons\"]});this.appendChild(t);var n=0,r=e.length;for(;n<r;++n){var i=t.createChildView(Sharing.GenericBadgeButtonView,e[n]);n===0&&i.set(\"isDefault\",YES),t.appendChild(i)}}}}),didAppendToDocument:function(){var e=this.get(\"title\");if(e.startsWith(\"Sharing.Title.OpeningQuote\".loc())){var t=this.getPath(\"loadedView.title\"),n=Sharing.utils.truncateStringForMultiLine(e,t.$()[0],t.$().width(),YES,YES,2);n.shouldApplyWordBreak&&t.set(\"shouldApplyWordBreak\",YES),t.set(\"truncatedTitle\",n.truncated),t.get(\"layer\").focus()}},getDownloadButtonHash:function(e){return e||CW.fatalError(\"Cannot create download button hash without downloadURL\"),{title:\"Sharing.Button.Download\".loc(),action:function(){CloudOS.ValidatedDownload.create({tokenCookieKey:\"X-APPLE-TERMS-VALIDATE\",tokenParamKey:\"driveFileDownloadToken\",url:e}).start()}}}}),Sharing.GenericBadgeButtonView=SC.ButtonView.extend({themeName:\"borderless\",classNames:[\"badge-button\"],useStaticLayout:YES}),Sharing.AcceptanceInNetwork=Sharing.GenericBadgeView.extend({isLoadedBinding:SC.Binding.bool(\"CloudOS.shareController.recordInfo\"),appNameBinding:\"CloudOS.shareController.appName\",title\n:function(e,t){if(t)return this._value=t;var n=Sharing.utils.getShareTitle();return n}.property(\"CloudOS.shareController.recordInfo\",\"appName\").cacheable(),description:function(){var e=CloudOS.shareController,t=e.get(\"recordInfo\");if(!t)return;var n=t.share.owner.userIdentity.nameComponents,r=e.get(\"appName\"),i=\"Sharing.Acceptance.\"+r,s=CloudOS.authController.get(\"performedLoginFlow\"),o=CloudOS.getUser(),u=\"Sharing.Label.FullName\".loc({firstName:n.givenName,lastName:n.familyName});return s?i+=\".LoggedInForSharing.Description\":i+=\".AlreadyLoggedIn.Description\",i.loc({ownerName:u,userFullName:o?o.get(\"displayName\"):null,displayablePrimaryAppleId:o?o.get(\"displayablePrimaryAppleId\"):null})}.property(\"CloudOS.shareController.recordInfo\"),buttonsArray:function(){var e=CloudOS.shareController.get(\"appName\"),t=[{titleBinding:SC.Binding.transform(function(t,n){var r=CloudOS.appManagerFor(e);return r?CloudOSBootstrap.isOnSupportedMobile&&Sharing.utils.isIWorkApp(e)?(\"Sharing.Button.Preview.\"+e).loc():(\"Sharing.Button.JoinAndOpen.\"+e).loc():\"\"}).from(\"CloudOS.shareController.recordInfo\"),action:function(){Sharing.statechart.sendAction(\"acceptShare\")}}];if(CloudOSBootstrap.isOnSupportedMobile){var n,r=Sharing.utils.getDownloadUrlForSharedFile();e===\"iclouddrive\"&&r&&t.push(this.getDownloadButtonHash(r)),t.push({title:\"Sharing.Button.SignOut\".loc(),action:function(){CloudOS.authController.logoutUser(function(){CK.reloadWithReason(\"Sharing: Private Acceptance Completed on Mobile\")},YES)}})}else t.push({title:\"Sharing.Button.NotNow\".loc(),action:function(){Sharing.statechart.sendAction(\"cancelSharing\"\n)}});return t}.property().cacheable()}),function(){Sharing.BadgeContainerView=SC.ContainerView.extend(COS.Paneness).extend(CW.Animatability,CW.PaneAnimationSupport,{layout:function(){return{centerX:0,centerY:0,width:700<Math.max(COS.MIN_WIDTH,window.innerWidth)?700:Math.max(COS.MIN_WIDTH,window.innerWidth),height:550}}.property(),parentViewDidResize:function(){return this.layoutDidChange(),arguments.callee.base.apply(this,arguments)},contentLayout:{zIndex:5},logRequiredSprites:YES,wantsAcceleratedLayer:YES,isPaneAttached:!1,classNames:\"badge-container-view overflow-always-visible\".w(),init:function(){return Sharing.BadgeContainerView.instances.push(this),this.contentView&&(this.contentView=this.contentView.extend({classNames:\"badge-container-content-view\".w()})),arguments.callee.base.apply(this,arguments)},contentView:null,contentViewChanged:function(){this.setContentLayout()}.observes(\"contentView\"),setContentLayout:function(){var e=this.get(\"contentView\");if(!e)return;e.set(\"layout\",this.get(\"contentLayout\"))},render:function(e){this.setContentLayout()},didCreateLayer:function(){},update:function(){}}),Sharing.BadgeContainerView.instances=[]}(),Sharing.BadgePane=SC.Pane.extend(CW.Animatability,COS.IsShowingSupport,CW.DropTarget,{isDropTarget:YES,classNames:[\"sharing-pane\"],acceptsFileDrags:NO,show:function(){this.append(),this.becomeKeyPane(),this.invokeLast(\"chooseDefaultBadge\"),this._animateKidLists(\"immediateFadingChildren\",\"delayedFadingChildren\",{opacity:{from:0,to:1},duration:500}),this._hideKidTimer&&(this._hideKidTimer.invalidate(),this._hideKidTimer=undefined),this\n.didShow&&this.didShow()},hide:function(){this.set(\"currentBadge\",\"none\");var e={opacity:0,duration:725};this._animateKidLists(\"immediateFadingChildren\",e),this._hideKidTimer=this.invokeLater(this._animateKidLists,COS.nextShowDelayTime,\"delayedFadingChildren\",e),this.didHide&&this.didHide()},_animateKidLists:function(){var e=0,t=[];for(var n=arguments.length-1-e;typeof arguments[n]!=\"string\";n--)t.unshift(arguments[n]),e++;for(var r=0,i=arguments.length;r<i-e;r++)for(var s=0,o=this.get(arguments[r]),u,a=o&&o.length;s<a;s++)(u=this.get(o[s]))&&u.hasAnimatability&&u.animate.apply(u,t)},chooseDefaultBadge:function(){this.get(\"currentBadge\")===\"none\"&&this.set(\"currentBadge\",this.get(\"defaultBadge\"))},didRemoveFromParent:function(){this._noAnimate=YES,this.set(\"currentBadge\",\"none\"),this.currentBadgeObserver(),this._noAnimate=NO},currentBadge:\"none\",currentBadgeObserver:function(){if(!this.didChangeFor(\"currentBadgeObserver\",\"currentBadge\"))return;var e=this.get(\"currentBadge\"),t=this.get(e),n=this.get(this._lastCurrentBadge),r=this;t&&t.append(),n&&n.remove(),this._lastCurrentBadge=e}.observes(\"currentBadge\"),entranceAnimationDidFinish:function(){},render:function(e){},update:function(){}}),Sharing.ErrorView=Sharing.GenericBadgeView.extend({titleBinding:\"Sharing.errorController.title\",descriptionBinding:\"Sharing.errorController.description\",shouldShowReportButtonBinding:\"Sharing.errorController.shouldShowReportButton\",_defaultButtonsArray:function(){var e=CloudOS.authController.get(\"isAuthenticated\"),t=CloudOSBootstrap.isOnSupportedMobile,n=this.get(\"shouldShowReportButton\"),r=\n[];if(n===undefined)return;return e?(t?r.push({title:\"Sharing.Button.SignOut\".loc(),action:function(){window.location.hash=\"\",Sharing.statechart.sendAction(\"signOut\")}}):r.push({title:\"Sharing.Button.OK\".loc(),action:function(){Sharing.statechart.sendAction(\"removePane\")}}),n&&r.push({title:\"Sharing.Button.Report\".loc(),action:function(){Sharing.statechart.sendAction(\"reportServerError\")}})):t?r=null:r.push({title:\"Sharing.Button.OK\".loc(),action:function(){window.location.hash=\"\",Sharing.statechart.sendAction(\"removePane\")}}),r}.property(\"CloudOS.authController.isAuthenticated\",\"shouldShowReportButton\").cacheable(),buttonsArray:function(){return Sharing.errorController.get(\"buttonsArray\")||this.get(\"_defaultButtonsArray\")}.property(\"Sharing.errorController.buttonsArray\",\"_defaultButtonsArray\"),classNames:[\"error-view\"],forceDefaultIconUsage:YES}),Sharing.GameCenterUnsupported=Sharing.GenericBadgeView.extend({classNames:[\"gamecenter-update\"],titleBinding:SC.Binding.transform(function(){return SC.browser.isiOS||SC.browser.isMac?\"Sharing.GameCenter.Update.Title\".loc():\"Sharing.GameCenter.MacOSOrIOSRequired.Title\".loc()}).from(\"CloudOS.shareController.recordInfo\"),descriptionBinding:SC.Binding.transform(function(){return SC.browser.isiOS||SC.browser.isMac?\"Sharing.GameCenter.Update.Description\".loc():\"\"}).from(\"CloudOS.shareController.recordInfo\"),buttonsArray:function(){var e=[],t=SC.browser.isMac,n=SC.browser.isWindows,r=CloudOS.authController.get(\"isAuthenticated\"),i=SC.browser.isAndroid,s=SC.browser.isiOS;return t&&e.push({title:\"Sharing.Button.CheckForUpdates\".loc(),action\n:function(){window.location.href=\"macappstore://showUpdatesPage\"}}),(t||n)&&e.push({title:\"Sharing.Button.OK\".loc(),action:function(){Sharing.statechart.sendAction(\"removePane\")}}),r&&(i||s)&&e.push({title:\"Sharing.Button.SignOut\".loc(),action:function(){COS.authController.logoutUser(function(){CK.reloadWithReason(\"Sharing: Game Center unsupported\")},YES)}}),e}.property(\"CloudOS.authController.isAuthenticated\").cacheable()}),Sharing.GenericButtonView=SC.ButtonView.extend(SC.AutoResize,{useStaticLayout:YES,themeName:\"borderless\",localize:YES,controlSize:SC.LARGE_CONTROL_SIZE}),Sharing.NoAccessView=Sharing.GenericBadgeView.extend({showIcon:NO,init:function(){arguments.callee.base.apply(this,arguments);var e=\"Sharing.OONetwork.NoAccess.Description\",t=\"Sharing.OONetwork.NoAccess\",n=CloudOS.shareController.get(\"appName\");t+=\".\"+n,t+=\".Title\",this.set(\"title\",t.loc()),this.set(\"description\",e.loc(Sharing.utils.getShareTitle()))},buttonsArray:function(){var e=[{title:\"Sharing.Button.Verify\".loc(),action:function(){Sharing.statechart.sendAction(\"gotoDeliveryMethodSelection\")},isDefault:YES},{title:\"Sharing.Button.NotNow\".loc(),action:function(){Sharing.statechart.sendAction(\"cancelSharing\")}}];return e}.property().cacheable()}),Sharing.NotesMigrationNeeded=Sharing.GenericBadgeView.extend({title:function(){return COS.MIN_WIDTH>370?\"Sharing.NotMigrated.notes.Title\".loc():\"Sharing.NotMigrated.notes.ShortTitle\".loc()}.property(),description:\"Sharing.NotMigrated.notes.Description\".loc(),buttonsArray:function(){var e=[{title:\"Sharing.Button.OK\".loc(),action:function(){Sharing.statechart.sendAction\n(\"cancelSharing\")}}];return e}.property().cacheable()}),Sharing.OutOfNetworkView=SC.View.extend({classNames:[\"out-of-network\"],childViews:[\"titleView\",\"appleLogo\",\"contentContainer\",\"buttonBar\"],isVisibleBinding:SC.Binding.not(\"*pane.isLoading\"),titleView:SC.LabelView.design({useStaticLayout:YES,classNames:[\"title\"],textAlign:SC.ALIGN_CENTER,localize:YES,value:\"Sharing.OONetwork.Vetting.Title\",controlSize:SC.CUSTOM_CONTROL_SIZE}),appleLogo:SC.ImageView.create({layout:{top:6,left:10,width:30,height:36},classNames:[\"apple-logo\"],acceptsFirstResponder:NO,toolTip:\"Apple.com\"}),contentContainer:SC.ContainerView.design({useStaticLayout:YES,nowShowingBinding:SC.Binding.transform(function(e,t){var n=Sharing.vettingMessageSentStatusEnum;switch(e){case n.NOT_SENT:return\"selectParticipant\";case n.SENT:return\"spinner\";case n.RECEIVED_SUCCESS:return\"messageSent\";case n.RECEIVED_ERROR:return\"errorState\"}}).from(\"Sharing.outOfNetworkController.vettingMessageSentStatus\"),classNames:[\"content-container\"],selectParticipant:SC.View.design({useStaticLayout:YES,childViews:[\"description\",\"list\",\"mobileStyleList\",\"footer\"],description:SC.LabelView.design(Sharing.HorizontalCenterAlign,{useStaticLayout:YES,classNames:[\"content-description\"],valueBinding:SC.Binding.transform(function(e){return(\"Sharing.OONetwork.Vetting.Description.\"+e).loc()}).from(\"Sharing.outOfNetworkController.participantListType\")}),list:CW.SectionedView.design(CW.SectionedViewDesignSupport,CW.MiniFadingCaplessScrollerViewSupport,Sharing.HorizontalCenterAlign,CloudOS.AdjustMaxWidthOnMobile,{useStaticLayout:YES,isVisibleBinding:SC\n.Binding.not(\"*parentView.parentView.pane.isFullScreen\"),isEnabledBinding:\"*parentView.isEnabled\",layout:{maxWidth:400,maxHeight:105,minHeight:105},rowHeight:35,verticalScrollerView:CW.MiniFadingCaplessScrollerView,style:CW.SectionedViewStyle.create({contentLayout:{left:0,top:0,bottom:0,right:0},sectionSpacing:34,classNames:[\"cw-grouped\"]}),sections:[\"oonParticipantsEmail\"],classNames:[\"oon-participants-email\"],oonParticipantsEmail:CW.SectionedViewCollectionSection.design({contentBinding:SC.Binding.oneWay(\"Sharing.outOfNetworkController.shareDetails.potentialMatchList\"),contentTextKey:\"contactEmailAddressOrPhoneNumber\",selectionBinding:\"Sharing.outOfNetworkController.selectedParticipant\",itemCellExample:CW.SectionedViewCollectionItemCell.extend({style:CW.SectionedViewStyle.NONE,selectionStyle:CW.SectionedViewCellSelectionStyle.NONE,highlightStyle:CW.SectionedViewCellSelectionStyle.NONE,accessoryType:null})})}),mobileStyleList:CW.SectionedView.design(CW.SectionedViewDesignSupport,{isVisibleBinding:SC.Binding.oneWay(\"*parentView.parentView.pane.isFullScreen\"),useStaticLayout:YES,classNames:[\"oon-participants-mobile\"],sections:[\"oonParticipants\"],rowHeight:55,style:CW.SectionedViewStyle.create({useStaticLayout:YES}),touchesDragged:function(e,t){var n=t.getPath(\"firstObject.targetView\"),r=n&&n.$().hasClass(\"oon-participants-mobile-verify\");if(r){n.tryToPerform(\"touchStart\",e);return}arguments.callee.base.apply(this,arguments)},oonParticipants:CW.SectionedViewCollectionSection.design({useStaticLayout:YES,contentBinding:SC.Binding.oneWay(\"Sharing.outOfNetworkController.shareDetails.potentialMatchList\"\n),style:CW.SectionedViewCellStyle.TEXT_FIELD,contentTextKey:\"contactEmailAddressOrPhoneNumber\",selectionBinding:\"Sharing.outOfNetworkController.selectedParticipant\",selectionStyle:CW.SectionedViewCellSelectionStyle.NONE,itemCellExample:CW.SectionedViewCollectionItemCell.extend({style:CW.SectionedViewStyle.NONE,selectionStyle:CW.SectionedViewCellSelectionStyle.NONE,highlightStyle:CW.SectionedViewCellSelectionStyle.NONE,accessoryType:null,renderDelegateName:\"sectionedViewCollectionItemCellRTLRenderDelegate\",_computeAccessoryLayout:function(e,t){var n=e(t);return CloudOS.get(\"isCloudOSLocaleRTLOriented\")&&n.right!==undefined&&(n.left=n.right,delete n.right),n}.enhance(),accessoryView:SC.ButtonView.extend(SC.AutoResize,{classNames:[\"oon-participants-mobile-verify\"],title:\"Sharing.Button.Verify\",localize:YES,themeName:\"borderless\",controlSize:SC.LARGE_CONTROL_SIZE,touchStart:function(){this.invokeLater(function(){Sharing.statechart.sendAction(\"sendVettingMessage\")},100)}})})})}),footer:SC.LabelView.design(Sharing.HorizontalCenterAlign,{useStaticLayout:YES,classNames:[\"footer\"],minHeight:50,escapeHTML:NO,valueBinding:SC.Binding.transform(function(e){return(\"Sharing.OONetwork.Vetting.Footer.\"+e).loc()}).from(\"Sharing.outOfNetworkController.participantListType\")})}),messageSent:SC.View.design({useStaticLayout:YES,classNames:[\"email-sent\"],childViews:function(){var e=[\"title\",\"description\"];return this.getPath(\"parentView.pane.isFullScreen\")&&e.push(\"doneButton\"),e}.property(\"*parentView.pane.isFullScreen\").cacheable(),useStaticLayout:YES,title:SC.LabelView.design(Sharing.HorizontalCenterAlign\n,{useStaticLayout:YES,classNames:[\"content-title\"],valueBinding:SC.Binding.transform(function(e,t){var n=e.get(\"contactType\"),r=Sharing.contactType;if(n===r.EMAIL)return\"Sharing.OONetwork.Vetting.EmailConfirmation.Title\".loc();if(n===r.PHONE)return\"Sharing.OONetwork.Vetting.PhoneConfirmation.Title\".loc()}).from(\"Sharing.outOfNetworkController.selectedParticipant\"),controlSize:SC.CUSTOM_CONTROL_SIZE}),description:SC.LabelView.design(Sharing.HorizontalCenterAlign,{classNames:[\"content-description\"],useStaticLayout:YES,escapeHTML:NO,valueBinding:SC.Binding.transform(function(e,t){var n=e.get(\"contactType\"),r=Sharing.contactType;if(n===r.EMAIL)return SC.RenderContext.escapeHTML(\"Sharing.OONetwork.Vetting.EmailConfirmation.Description\".loc());if(n===r.PHONE){var i=e.getPath(\"contactInformation.phoneNumber\"),s=SC.RenderContext.escapeHTML(\"Sharing.OONetwork.Vetting.PhoneConfirmation.Description\".loc());return i&&(s=SC.RenderContext.escapeHTML(\"Sharing.OONetwork.Vetting.PhoneConfirmation.Subtitle\".loc({phoneNumber:i}))+\"<br>\"+s),s}}).from(\"Sharing.outOfNetworkController.selectedParticipant\"),controlSize:SC.CUSTOM_CONTROL_SIZE}),doneButton:SC.ButtonView.extend({classNames:[\"oon-message-sent-inline-done\"],title:\"Sharing.Button.Done\",localize:YES,themeName:\"borderless\",controlSize:SC.LARGE_CONTROL_SIZE,useStaticLayout:YES,action:function(){Sharing.statechart.sendAction(\"vettingMessageSent\")}})}),spinner:CW.SpinnerView.design({classNames:[\"cw-spinner-view\"],layout:{centerX:0,centerY:0},asset:SC.platform.dpi>1?\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAJACAMAAAD8YRVdAAAAb1BMVEUAAABqfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo5qfo4vepBaAAAAJHRSTlMAAkVSBVZOShgL5aJ1P4kRLW42tVnZziUfXL6q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DKwU1XZjBlRTmYQwNrmRBTnpuchVFkE+qINH5u+gn8oOOTW32zdUcQz6KfZ1NrnJxuiobVx5hv+PqYeEqFfuyiNLkionlFIa/4GpgN67CdyTsplznKlPvYg5UHDX5cJVgI62MwBycqsX1ncQOE8ADVhQq1+9zH7BVNly5bm1wxLdxr3WuFlxeVr+/lTg2OG+uSpOrtv03rriVK8W3jSvVv7JyRYvYypVPLnDCb65U/yotFvbNVehBvE5DFppcxdO0xjau5oj/LVe8n4ahJyZXqRIKFQpsodQY9XZCqn1FRWTvSFv786hioZxspt75ObC+blblmvEYZWHbgVLou/g8F9EFcu4ob2nDDLZNum7lNd+3P2Jz2fD9oKCN/MCXce+aWRMmnF5Wf8DkVsicV3NgLnxLO+G/5uqRuzauVP9K58rsiyqu7P0rj7mW/pXrPow2w0Oe0Dn0jMZjQciYQC2vH4He3iOnEKlQYPQZXsEr8T4Er+Lap6vWxuWN+OmL4l05WabeeTHwQSyBjN5jRwAY9sAYDK0PTta3VM4tJBYtUmmqaT3IeYH38azLZcOnmt2OY+vin8a9Xe4t71JZfRdg7DL9zEdHNQcecJ6tZ3C1LP8PV2np27nqUe5uNrhSad8CG1eq5ZDZuapEbHIVuq616dTi6fKOzOxf6YLev/p1KDWiT7N/DmLtQ1TjKu6nnyj4E2LDIL248iEnfakaVAPWlfQjg7TIRHjgsFFZk1x9TIqOSVPNmkKuQ+ePZ52kDX/CKPjtONra/2nc90E/2gLJy+pXrY5iTpxXcyAMPEs74c+54qVr52pCYecqRkztXJVYA3xxxVUJ75B8czVhp4p++82Vv1wfE7nJFWsQmZ2r1c6VvZkplP2jJleXYP0dxx7qGsFk+x1HOtmOm/0rv9ykk+XetcFP/2rEJpF+pJBWJpq8z+84lWoCtin0E/A+uvevsnq8bPg63TycLxrvp3GfiH5QVbe+rH6wpPrRru/mgEtnSztBw+cHG+C7rO6hXYcAAAAASUVORK5CYII=\"\n}),errorState:SC.View.design({useStaticLayout:YES,childViews:[\"title\",\"description\"],classNames:[\"error-state\"],title:SC.LabelView.design(Sharing.HorizontalCenterAlign,{useStaticLayout:YES,classNames:[\"content-title\"],valueBinding:\"Sharing.errorController.title\",controlSize:SC.CUSTOM_CONTROL_SIZE}),description:SC.LabelView.design(Sharing.HorizontalCenterAlign,{useStaticLayout:YES,classNames:[\"content-description\"],valueBinding:\"Sharing.errorController.description\",controlSize:SC.CUSTOM_CONTROL_SIZE})})}),buttonBar:SC.View.design({classNames:[\"button-bar\"],childViews:function(){var e=[];return CloudOSBootstrap.isOnSupportedMobile||e.push(\"cancelButton\"),e.push(\"continueButton\",\"doneButton\"),e}.property().cacheable(),useStaticLayout:YES,align:SC.ALIGN_RIGHT,isVisibleBinding:SC.Binding.not(\"*parentView.pane.isFullScreen\"),cancelButton:Sharing.GenericButtonView.extend({title:\"Sharing.Button.Cancel\",isVisibleBinding:SC.Binding.transform(function(e,t){var n=Sharing.vettingMessageSentStatusEnum;return e===n.NOT_SENT}).from(\"Sharing.outOfNetworkController.vettingMessageSentStatus\"),action:function(){Sharing.statechart.sendAction(\"cancelSharing\")}}),continueButton:Sharing.GenericButtonView.extend({classNames:[\"default-button\"],title:\"Sharing.Button.SendVerificationLink\",isVisibleBinding:SC.Binding.transform(function(e,t){var n=Sharing.vettingMessageSentStatusEnum;return e===n.NOT_SENT}).from(\"Sharing.outOfNetworkController.vettingMessageSentStatus\"),action:function(){Sharing.statechart.sendAction(\"sendVettingMessage\")}}),doneButton:Sharing.GenericButtonView.extend({classNames:[\"default-button\"\n],title:\"Sharing.Button.Done\",isVisibleBinding:SC.Binding.transform(function(e,t){var n=Sharing.vettingMessageSentStatusEnum;return e===n.RECEIVED_SUCCESS||e===n.RECEIVED_ERROR}).from(\"Sharing.outOfNetworkController.vettingMessageSentStatus\"),action:function(){Sharing.statechart.sendAction(\"vettingMessageSent\")}})})}),Sharing.PublicSharing=Sharing.GenericBadgeView.extend({classNames:[\"public-sharing\"],title:function(){var e=Sharing.utils.getShareTitle();return e}.property(\"CloudOS.shareController.recordInfo\",\"appName\").cacheable(),description:function(){var e=CloudOS.shareController,t=e.get(\"recordInfo\");if(!t)return;var n=t.share.owner.userIdentity.nameComponents,r=e.get(\"appName\"),i=Sharing.utils.getShareTitle(),s=CloudOS.authController.get(\"isAuthenticated\"),o=\"Sharing.PublicSharing.\"+r,u=Sharing.utils.getOwnerName(),a=CloudOS.getUser();return o+=(s?\".LoggedIn\":\".NotLoggedIn\")+\".Description\",o.loc({ownerName:u,shareTitle:i,userFullName:a?a.get(\"displayName\"):null,displayablePrimaryAppleId:a?a.get(\"displayablePrimaryAppleId\"):null})}.property(\"CloudOS.shareController.recordInfo\"),buttonsArray:function(){var e=CloudOS.shareController.get(\"appName\"),t=CloudOS.authController.get(\"isAuthenticated\"),n=Sharing.utils.getDownloadUrlForSharedFile(),r=[{titleBinding:SC.Binding.transform(function(t,n){var r=CloudOS.appManagerFor(e);return r?(\"Sharing.Button.JoinAndOpen.\"+e).loc():\"\"}).from(\"CloudOS.shareController.recordInfo\"),action:function(){var e=Sharing.statechart;t?e.sendAction(\"acceptSharing\"):e.sendAction(\"showAuthUI\")}.bind(this)}];return n&&r.push(this.getDownloadButtonHash\n(n)),CloudOSBootstrap.isOnSupportedMobile?t&&r.push({title:\"Sharing.Button.SignOut\".loc(),action:function(){CloudOS.authController.logoutUser(function(){window.location.hash=\"\",CK.reloadWithReason(\"Sharing: User is Signing out of mobile.\")},YES)}}):t&&r.push({title:\"Sharing.Button.NotNow\".loc(),action:function(){Sharing.statechart.sendAction(\"rejectSharing\")}}),r}.property().cacheable()}),Sharing.SharingAccepted=Sharing.GenericBadgeView.extend({title:function(){return Sharing.utils.getShareTitle()}.property(\"CloudOS.shareController.recordInfo\").cacheable(),description:function(){var e=CloudOS.shareController,t=e.get(\"recordInfo\");if(!t)return;var n=Sharing.utils.getShareTitle(),r=Sharing.utils.isShareAccepted(),i=Sharing.utils.isCurrentUserOwnerOfShare(),s=Sharing.acceptanceController&&Sharing.acceptanceController.get(\"userDidAcceptShare\"),o=e.get(\"appName\"),u=\"Sharing.Mobile.%@.%@.Description\";return i?u=u.fmt(o,\"isOwner\"):!s&&r?u=u.fmt(o,\"AlreadyAccepted\"):u=u.fmt(o,\"Accepted\"),u.loc({shareTitle:n})}.property(\"CloudOS.shareController.recordInfo\").cacheable(),buttonsArray:function(){var e=[],t=Sharing.utils,n=t.get(\"isShareAccepted\"),r=t.getDownloadUrlForSharedFile();return n&&r&&e.push(this.getDownloadButtonHash(r)),e.push({title:\"Sharing.Button.SignOut\".loc(),action:function(){CloudOS.authController.logoutUser(function(){window.location.hash=\"\",CK.reloadWithReason(\"Sharing: Public Acceptance Completed on Mobile.\")},YES)}}),e}.property().cacheable(\"Sharing.shareDetailsController.isAlreadyAccepted\")}),Sharing.ThirdParty=Sharing.GenericBadgeView.extend({titleBinding:SC.Binding\n.transform(function(e,t){var n=\"Sharing.ThirdParty.NoTitle\".loc();return e?Sharing.utils.getShareTitle():n}).from(\"CloudOS.shareController.recordInfo\"),availableAppBundles:function(){var e={},t=CloudOS.shareController.getPath(\"recordInfo.bundleInfo\");if(t){var n=t.reduce(function(t,n){var r=[];return n.kind===\"iosSoftware\"?(r=n.deviceFamilies,e.iosAppBundle=n):n.kind===\"desktopApp\"&&(r=[\"mac\"],e.macAppBundle=n),t.concat(r)},[]);e.oniOS=!!e.iosAppBundle,e.onMac=!!e.macAppBundle,e.oniPhone=n.indexOf(\"iphone\")>-1,e.oniPad=n.indexOf(\"ipad\")>-1}return e}.property(\"CloudOS.shareController.recordInfo\").cacheable(),description:function(){var e=CloudOS.shareController.get(\"recordInfo\");if(!e)return;var t=e.share.owner.userIdentity.nameComponents,n=\"Sharing.Label.FullName\".loc({firstName:t.givenName,lastName:t.familyName});if(!e.bundleInfo)return\"Sharing.ThirdParty.Description.NoBundleInfo\".loc({ownerName:n});var r=SC.browser.isiOS,i=SC.browser.isMac,s=SC.browser.isWindows,o=this.getPath(\"availableAppBundles.oniPhone\"),u=this.getPath(\"availableAppBundles.oniPad\"),a=this.getPath(\"availableAppBundles.onMac\"),f=\"Sharing.ThirdParty.Description\",l;e.bundleInfo?l=e.bundleInfo[0].name:l=\"Sharing.ThirdParty.NoAppName\".loc();if(i)f+=\".macOS\",a&&!u&&!o&&(f+=\".AppmacOSOnly\"),!a&&u&&!o&&(f+=\".AppiPadOnly\"),!a&&!u&&o&&(f+=\".AppiPhoneOnly\"),!a&&u&&o&&(f+=\".AppiPadiPhone\"),a&&u&&!o&&(f+=\".AppmacOSiPad\"),a&&!u&&o&&(f+=\".AppmacOSiPhone\"),a&&!u&&o&&(f+=\".AppmacOSiPhone\"),a&&u&&o&&(f+=\".AppmacOSiPadiPhone\");else if(r){f+=\".iOS\";var c=SC.browser.isiPhone||SC.browser.isiPod,h=SC.browser.isiPad;a&&!u&&!o&&\n(f+=\".AppmacOSOnly\"),!a&&u&&!o&&h&&(f+=\".AppiPadOnly.iPad\"),!a&&u&&!o&&c&&(f+=\".AppiPadOnly.iPhone\"),!a&&!u&&o&&h&&(f+=\".AppiPhoneOnly.iPad\"),!a&&!u&&o&&c&&(f+=\".AppiPhoneOnly.iPhone\"),!a&&u&&o&&(f+=\".AppiPadiPhone\"),a&&u&&!o&&h&&(f+=\".AppmacOSiPad.iPad\"),a&&u&&!o&&c&&(f+=\".AppmacOSiPad.iPhone\"),a&&!u&&o&&h&&(f+=\".AppmacOSiPhone.iPad\"),a&&!u&&o&&c&&(f+=\".AppmacOSiPhone.iPhone\"),a&&u&&o&&(f+=\".AppmacOSiPadiPhone\")}else f+=\".Windows\",a&&!u&&!o&&(f+=\".AppmacOSOnly\"),!a&&u&&!o&&(f+=\".AppiPadOnly\"),!a&&!u&&o&&(f+=\".AppiPhoneOnly\"),!a&&u&&o&&(f+=\".AppiPadiPhone\"),a&&u&&!o&&(f+=\".AppmacOSiPad\"),a&&!u&&o&&(f+=\".AppmacOSiPhone\"),a&&!u&&o&&(f+=\".AppmacOSiPhone\"),a&&u&&o&&(f+=\".AppmacOSiPadiPhone\");return f.loc({appName:l,ownerShared:\"Sharing.ThirdParty.Description.OwnerShared\".loc({ownerName:n})})}.property(\"CloudOS.shareController.recordInfo\",\"availableAppBundles\"),buttonsArray:function(){var e=[],t=CloudOS.authController.get(\"isAuthenticated\"),n=this.getPath(\"availableAppBundles.macAppBundle\"),r=this.getPath(\"availableAppBundles.iosAppBundle\"),i={goToMacAppStore:{title:\"Sharing.Button.VisitAppStore\".loc(),action:function(){var e=n.url,t=e.replace(/.*(\\/id\\d+.*$)/,\"macappstore://itunes.apple.com/app$1\");window.location.href=t}},goToiOSAppStore:{title:\"Sharing.Button.VisitAppStore\".loc(),action:function(){var e=r.url;window.location.href=e}},ok:{title:\"Sharing.Button.OK\".loc(),action:function(){Sharing.removePane()}},notNow:{title:\"Sharing.Button.NotNow\".loc(),action:function(){Sharing.removePane()}},signOut:{title:\"Sharing.Button.SignOut\".loc(),action:function(){COS.authController.logoutUser\n(function(){CK.reloadWithReason(\"Sharing: Third Party Acceptance\")},YES)}}};if(!CloudOSBootstrap.isOnSupportedMobile)if(SC.browser.isMac){var s=!!n;s?(e.push(i.goToMacAppStore),t&&e.push(i.notNow)):e.push(i.ok)}else e.push(i.ok);else{if(SC.browser.isiOS){var o=!!r;o&&e.push(i.goToiOSAppStore)}t&&e.push(i.signOut)}return e}.property(\"CloudOS.authController.isAuthenticated\",\"availableAppBundles\").cacheable()}),Sharing.SharingPane=Sharing.BadgePane.extend(CW.Animatability,{layout:{left:0,top:CloudOS.bannerManager.get(\"bannerHeight\"),right:0,bottom:0,minWidth:COS.MIN_WIDTH,minHeight:550,zIndex:5,opacity:0},didAppendToDocument:function(){this.animate(\"opacity\",{from:0,to:1,duration:500})},isSpinnerVisible:NO,showSpinner:function(){CloudOS.workspaceController.showCentralSpinner(function(){this.set(\"isSpinnerVisible\",YES)}.bind(this))},hideSpinner:function(){CloudOS.workspaceController.hideCentralSpinner(function(){this.set(\"isSpinnerVisible\",NO)}.bind(this))},fadeOut:function(e){this.animate(\"opacity\",{from:1,to:0,duration:500},{doneShowing:function(){e&&e()}.listens(\"stop\")})},bannerHeightObserver:function(){this.adjust(\"top\",CloudOS.bannerManager.get(\"bannerHeight\"))}.observes(\"CloudOS.bannerManager.bannerHeight\"),childViews:[\"badgeContainer\",\"accountMenu\",\"linksSection\",\"iCloudText\"],defaultResponder:Sharing.statechart,nowShowing:null,defaultBadge:\"badgeContainer\",accountMenu:CloudOS.AccountMenuView.design(),badgeContainer:Sharing.BadgeContainerView.extend({isVisibleBinding:SC.Binding.not(\"*parentView.isSpinnerVisible\"),nowShowingBinding:\"*parentView.nowShowing\",gameCenterUpdate\n:Sharing.GameCenterUnsupported.design(),thirdParty:Sharing.ThirdParty.design(),noAccess:Sharing.NoAccessView.design(),inNetworkAcceptance:Sharing.AcceptanceInNetwork.design(),notesMigrationNeeded:Sharing.NotesMigrationNeeded.design(),publicSharing:Sharing.PublicSharing.design(),sharingAccepted:Sharing.SharingAccepted.design(),error:Sharing.ErrorView.design()}),linksSection:CloudOS.LinksSection.design({isVisibleBinding:\"CloudOS.authController.isNotAuthenticated\"}),iCloudText:CloudOS.iCloudTextView.design({isVisible:function(){return!CloudOSBootstrap.isOnSupportedMobile}.property().cacheable()})});\n";