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

1 line
69 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/language'].source = "SC.stringsFor(\"en-us\",{\"AppTitle.mail\":\"Mail\",\"AppTitle.contacts\":\"Contacts\",\"AppTitle.find\":\"Find iPhone\",\"AppTitle.settings\":\"Settings\",\"AppTitle.calendar\":\"Calendar\",\"AppTitle.iwork\":\"iWork\",\"AppTitle.cloudos\":\"iCloud\",\"AppTitle.notes\":\"Notes\",\"AppTitle.reminders\":\"Reminders\",\"AppTitle.iclouddrive\":\"iCloud Drive\",\"AppTitle.photos\":\"Photos\",\"AppTitle.fmf\":\"Find Friends\",\"AppTitle.notes2\":\"Notes\",\"AppTitle.keynote\":\"Keynote\",\"AppTitle.numbers\":\"Numbers\",\"AppTitle.pages\":\"Pages\",\"AppTitle.backToSpringboard\":\"Launchpad\",\"AppTitleBar.mail\":\"iCloud Mail\",\"AppTitleBar.contacts\":\"iCloud Contacts\",\"AppTitleBar.find\":\"iCloud - Find My iPhone\",\"AppTitleBar.settings\":\"iCloud Settings\",\"AppTitleBar.calendar\":\"iCloud Calendar\",\"AppTitleBar.iwork\":\"iCloud - iWork\",\"AppTitleBar.notes\":\"iCloud Notes\",\"AppTitleBar.notes2\":\"iCloud Notes\",\"AppTitleBar.reminders\":\"iCloud Reminders\",\"AppTitleBar.iclouddrive\":\"iCloud Drive\",\"AppTitleBar.photos\":\"iCloud Photos\",\"AppTitleBar.fmf\":\"iCloud - Find My Friends\",\"AppTitleBar.keynote\":\"iCloud - Keynote\",\"AppTitleBar.numbers\":\"iCloud - Numbers\",\"AppTitleBar.pages\":\"iCloud - Pages\",\"TitleBar.Production\":\"iCloud\",\"TitleBar.Beta\":\"iCloud Beta\",\"CalendarIcon.Sunday\":\"Sunday\",\"CalendarIcon.Monday\":\"Monday\",\"CalendarIcon.Tuesday\":\"Tuesday\",\"CalendarIcon.Wednesday\":\"Wednesday\",\"CalendarIcon.Thursday\":\"Thursday\",\"CalendarIcon.Friday\":\"Friday\",\"CalendarIcon.Saturday\":\"Saturday\",\"Button.Agree\":\"Agree\",\"Button.OK\":\"OK\",\"Button.Cancel\":\"Cancel\",\"Button.Close\":\"Close\",\"Button.Continue\":\"Continue\",\"Button.Disagree\":\"Disagree\",\"Button.GoBack\":\"Go Back\",\"Button.Snooze\":\"Snooze\"\n,\"HSA.SignoutDialog.Title\":\"Sign out of %{currentDomain}?\",\"HSA.SignoutDialog.CheckboxTitle\":\"Remember me on this browser so I dont have to verify my identity next time.\",\"HSA.SignoutDialog.SignoutButton\":\"Sign Out\",\"Error.AppLoading.Title\":\"%@ could not be loaded\",\"Error.AppLoading.Description\":\"There was a problem loading the application due to a possible network error or missing resources. Please try again.\",\"AutoUpdate.Title\":\"%{currentDomain} Updated\",\"AutoUpdate.Description\":\"Reload to use the latest version.\",\"AutoUpdate.Reload\":\"Reload\",\"AutoUpdate.Later\":\"Later\",\"Dialog.UnsavedChanges.Title\":\"Changes are being saved.\",\"Dialog.UnsavedChanges.Description\":\"%@ is saving your latest changes. If you leave, any unsaved changes will be lost.\",\"Dialog.UnsavedChanges.SignOutButton\":\"Sign Out\",\"Dialog.UnsavedChanges.DontSignOutButton\":\"Cancel\",\"ZoomLevel.Title\":\"Browser Zoom Level Not Supported\",\"ZoomLevel.Description\":\"For best results, reset your browser to 100% zoom level.\",\"Error.MailNotEnabled.mail.Title\":\"iCloud Email Needed\",\"Error.MailNotEnabled.mail.Description\":\"To use iCloud Mail, create a new email address by turning on Mail in your iCloud settings using iOS or macOS.\",\"Error.MailNotEnabled.notes.Title\":\"iCloud Email Needed\",\"Error.MailNotEnabled.notes.Description\":\"To use iCloud Notes, create a new email address by turning on Notes in your iCloud settings using iOS or macOS.\",\"Error.AppUnqualified.Title\":\"%@ Not Yet Enabled\",\"Error.AppUnqualified.Description.mail\":\"To use iCloud for Mail, turn on Mail in iCloud Settings on iOS or in System Preferences on macOS.\"\n,\"Error.AppUnqualified.Description.others\":\"To enable %@, sign in to iCloud Settings on iOS or System Preferences on macOS.\",\"Error.AppPCSDeleted.Title\":\"%@ is locked\",\"Error.AppPCSDeleted.Description\":\"This application cannot be launched. Please contact customer support.\",\"Error.UnsupportedBrowser.Title\":\"Unsupported Browser\",\"Error.UnsupportedBrowser.Description\":\"You can use your current browser, but iCloud works best with the latest version of Safari, Chrome, Firefox, Microsoft Edge, or Internet Explorer.\",\"Error.UnsupportedBrowser.Ignore\":\"Ignore\",\"Error.UnsupportedBrowser.LearnMore\":\"Learn More\",\"Error.UnsupportedBrowser.LearnMore.URL\":\"http://support.apple.com/kb/HT4759\",\"Error.iCloudLiteUnsupportedBrowser.Title\":\"Your browser is not supported.\",\"Error.iCloudLiteUnsupportedBrowser.Description\":\"To use iCloud, we recommend using the latest version of Safari, Firefox, or Internet Explorer.\",\"Error.iCloudLiteUnsupportedBrowser.OK\":\"OK\",\"Error.AppNotLoading.Title\":\"Cant load %@.\",\"Error.AppNotLoading.Description\":\"There was a problem loading the application.\",\"Error.AppCrashed.Title\":\"%@ Unexpectedly Crashed\",\"Error.AppCrashed.Description\":\"Help Apple improve iCloud by reporting this problem.\",\"Error.AppPCSRequired.Title\":\"Cant load %@.\",\"Error.AppPCSRequired.Description\":\"There was a problem loading your data for this application.\",\"Error.Button.TryAgain\":\"Try Again\",\"Error.Button.Reload\":\"Reload\",\"Error.Button.Report\":\"Report…\",\"Error.Button.CloseApp\":\"Close %@\",\"Error.TimeZoneMissing.Title\":\"Invalid Time Zone\",\"Error.TimeZoneMissing.Description\":\"Please select a time zone before proceeding.\"\n,\"Auth.Notification.Unqualified.Title\":\"Welcome to %{currentDomain}\",\"Auth.Notification.Unqualified.Description\":'To use Mail, Contacts, Calendar and iWork, upgrade your account by updating to the latest version of iOS or macOS. <a target=\"blank\" href=\"http://www.apple.com/icloud/setup/\">Learn how</a>',\"Auth.Secondary.Title\":\"Sign In Required\",\"Auth.Secondary.Hint\":\"password\",\"Auth.Locked.Title\":\"Account Maintenance\",\"Auth.Locked.Description.NoETA\":\"Due to account maintenance, iCloud is currently unavailable.\",\"Auth.Locked.Description.Hour\":\"Due to account maintenance, iCloud will be unavailable for the next hour.\",\"Auth.Locked.Description.HourOrMore\":\"Due to account maintenance, iCloud will be unavailable for a few hours.\",\"Service.Locked.Title\":\"%{appName} is Locked\",\"Service.Locked.Description.NoETA\":\"Due to account maintenance, %{appName} is currently unavailable.\",\"Service.Locked.Description.Hour\":\"Due to account maintenance, %{appName} will be unavailable for the next hour.\",\"Service.Locked.Description.HourOrMore\":\"Due to account maintenance, %{appName} will be unavailable for a few hours.\",\"Springboard.AccountAlert.ViewAccount\":\"View Account\",\"Springboard.AccountAlert.SignOut\":\"Sign Out\",\"Springboard.Icon.Maintenance\":\"Maintenance\",\"Springboard.Icon.Offline\":\"Offline\",\"Springboard.Help.Text\":\"Help\",\"Name.Display.FirstAndFamilyNames\":\"%{firstName} %{familyName}\",\"Notification.Button.Snooze\":\"Snooze\",\"Notification.PlaceholderDescription.mail\":\"No Subject\",\"AccountMenu.AccountSettings\":\"iCloud Settings\",\"AccountMenu.SignOut\":\"Sign Out\",\"Banner.QuotaExceeded.FullAccount.Title\"\n:\"Your iCloud storage is full.\",\"Banner.QuotaExceeded.FullAccount.Description\":\"Photos, videos, documents and data are no longer being updated.\",\"Banner.QuotaExceeded.OptionalLink.Text\":\"Learn More »\",\"Banner.QuotaExceeded.OptionalLink.Url\":\"http://support.apple.com/kb/HT4847\",\"Banner.QuotaAlmostExceeded.FullAccount.Title\":\"Your iCloud storage is almost full.\",\"Banner.QuotaAlmostExceeded.FullAccount.Description\":\"If you run out of storage, photos, videos, documents and data will no longer be updated.\",\"Banner.QuotaExceeded.LiteAccount.Title\":\"Your iCloud storage is full.\",\"Banner.QuotaExceeded.LiteAccount.Description\":\"Documents are no longer being updated.\",\"Banner.QuotaAlmostExceeded.LiteAccount.Title\":\"Your iCloud storage is almost full.\",\"Banner.QuotaAlmostExceeded.LiteAccount.Description\":\"If you run out of storage, documents will no longer be updated.\",\"Banner.SlowConnection.Title\":\"Network unavailable or slow.\",\"Banner.SlowConnection.Description\":\"%{appName} is taking longer to load than expected.\",\"Banner.SlowConnection.OptionalLink.Text\":\"Cancel\",\"iCloud.Notice.Lite.Title\":\"Now anyone can use Pages, Numbers, and Keynote for iCloud\",\"iCloud.Notice.Lite.Subtitle\":\"<a href = '#' 'id'='icloud-notice-link'>Create your free Apple ID and get started today</a>\",\"iCloud.Notice.WindowsDownload.Title\":\"Download iCloud for Windows\",\"iCloud.Notice.WindowsDownload.Subtitle\":\"Keep all your photos, videos, documents, and more up to date on your PC. <a target=\\\"blank\\\" href='https://support.apple.com/en-us/HT201391'>Download now</a>\",\"AX.Label.iCloud.Notice.Banner.Close.Button\":\"Close Banner\"\n,\"HostingContext.Loading.Label\":\"Loading…\",\"Alert.CreateAppleID.SessionTimedOut.Title\":\"Your session has timed out.\",\"Alert.CreateAppleID.SessionTimedOut.Description\":\"To protect your privacy, the information you entered has been discarded. Please try again.\",\"Alert.UpdateAppleID.SessionTimedOut.Title\":\"Your session has timed out.\",\"Alert.UpdateAppleID.SessionTimedOut.Description\":\"To protect your privacy, the information you entered has been discarded. Please try again.\",\"TermsAndConditions.Title\":\"Terms and Conditions\",\"TermsAndConditions.Button.Download\":\"Download a Copy\",\"TermsAndConditions.Content.Label.Important\":\"Welcome to iCloud\",\"TermsAndConditions.Content.Label.PleaseRead\":\"You must accept the iCloud Terms and Conditions before using iCloud. These terms cover important information, please read them carefully.\",\"TermsAndConditions.Confirmation\":\"I agree to the iCloud Terms and Conditions.\",\"TermsAndConditions.China.Content.Label.PleaseRead\":\"You must accept the iCloud Terms and Conditions. These terms cover important information, please read them carefully. If you choose to use iCloud in China, you are agreeing to be bound by the iCloud and GCBD Terms and Conditions, and acknowledging that GCBD will be processing iCloud data.\",\"TermsAndConditions.China.Confirmation\":\"I agree to the iCloud operated by GCBD Terms and Conditions.\",\"TermsAndConditions.China.TermsSection.Title\":\"iCloud operated by GCBD Terms and Conditions\",\"TermsAndConditions.Interstitial.Title\":\"Your iCloud Account\",\"TermsAndConditions.Interstitial.Paragraph1\":\"iCloud services in the mainland of China are now operated by Chinese internet services company Guizhou on the Cloud Big Data Industrial Development Co.,&nbsp;Ltd.&nbsp;(GCBD). This allows us to continue to improve the speed and reliability of iCloud and comply with Chinese regulations.\"\n,\"TermsAndConditions.Interstitial.Paragraph2\":\"iCloud services and the data you store with iCloud, including photos, videos, documents, and backups, will be subject to the terms and conditions of iCloud operated by GCBD.\",\"TermsAndConditions.Interstitial.LearnMore\":\"Learn More\",\"TermsAndConditions.Interstitial.LearnMore.Link\":\"https://support.apple.com/en-us/HT208351\",\"Alert.UpdateAppleID.Title\":\"You must update your Apple ID to use iCloud.\",\"Alert.UpdateAppleID.Description\":\"Take a moment to review and update your account information.\",\"AX.Greeting\":\"Welcome to iCloud\",\"Badge.Count.Unit.Singular\":\"new item\",\"Badge.Count.Unit.Plural\":\"new items\",\"Toolbar.Button.Action.Help\":\"Help and Support\",\"Toolbar.Tooltip.App.Switcher\":\"Change App\",\"Toolbar.Button.Action.UserAction\":\"iCloud Settings & Sign Out\",\"Auth.Description.Share.keynote\":\"%{ownerName} shared this presentation.\",\"Auth.Description.Share.numbers\":\"%{ownerName} shared this spreadsheet.\",\"Auth.Description.Share.pages\":\"%{ownerName} shared this document.\",\"Auth.Description.Share.notes2\":\"%{ownerName} shared this note.\",\"Auth.Description.Share.iclouddrive\":\"%{ownerName} shared this file.\",\"Auth.Title.SignInToICloud\":\"Sign in to iCloud\",\"Auth.Button.SignIn\":\"Sign In\",\"Auth.Button.Back\":\"< Back\",\"Alert.CreateAppleID.BeforeUnloadConfirmation\":\"Your Apple ID has not been created yet. If you close this window you will need to start over.\",\"AuthSetupInstructions.Text\":\"Setup Instructions\",\"AuthSetupInstructions.URL\":\"https://www.apple.com/icloud/setup/\",\"AuthFooter.CreateAppleId.Text\":\"Create Apple ID\",\"AuthFooter.TOS.Text\":\"Terms & Conditions\"\n,\"AuthFooter.TOS.URL\":\"https://www.apple.com/legal/icloud/ww/\",\"AuthFooter.Privacy.Text\":\"Privacy Policy\",\"AuthFooter.Privacy.URL\":\"https://www.apple.com/privacy/\",\"AuthFooter.SystemStatus.Text\":\"System Status\",\"AuthFooter.SystemStatus.URL\":\"https://www.apple.com/support/systemstatus/\",\"AuthFooter.Help.Text\":\"Help\",\"AuthFooter.Forgot.Text\":\"Forgot Apple ID or Password?\",\"AuthFooter.Forgot.URL\":\"https://iforgot.apple.com/\",\"AuthFooter.AppleLogo.Link.URL\":\"https://www.apple.com/\",\"AuthFooter.CopyrightText\":\"Copyright © %@ Apple Inc. All rights reserved.\",\"AuthFooter.CopyrightText.NarrowMobile.Line1\":\"Copyright © %@ Apple Inc.\",\"AuthFooter.CopyrightText.NarrowMobile.Line2\":\"All rights reserved.\",\"Error.AuthDidNotConnect.Title\":\"Connection Error\",\"Error.AuthDidNotConnect.Description\":\"iCloud encountered an error while trying to connect to the server.\",\"Error.AuthDidNotConnect.Support\":\"Support\",\"Error.AuthDidNotConnect.Support.URL\":\"https://www.apple.com/support/icloud/ww/\",\"Error.AuthDidNotValidate.Title\":\"Your Apple ID or password was incorrect.\",\"Error.AuthDidNotValidate.Description\":\"Go to iForgot to recover your Apple ID or password.\",\"Error.AuthDidNotValidate.iForgot\":\"iForgot\",\"Error.AuthDidNotValidate.iForgot.URL\":\"https://iforgot.apple.com\",\"Error.AuthDidNotValidateLocked.Title\":\"Apple ID Disabled\",\"Error.AuthDidNotValidateLocked.Description\":\"Your Apple ID has been disabled for security reasons. To enable your account, reset your password at iforgot.apple.com\",\"Error.AuthDidNotValidateLocked.Reset\":\"Reset\",\"Error.AuthDidNotValidateLocked.Reset.URL\":\"https://iforgot.apple.com\"\n,\"Error.AuthDidNotValidateSupportLocked.Title\":\"Apple ID Disabled\",\"Error.AuthDidNotValidateSupportLocked.Description\":\"Your Apple ID has been disabled for security reasons. To enable your account, contact iCloud support.\",\"Error.AuthDidNotValidateSupportLocked.Support\":\"iCloud Support\",\"Error.AuthDidNotValidateSupportLocked.URL\":\"https://www.apple.com/support/icloud/\",\"Error.AuthDidNotValidateExpiredPassword.Title\":\"Password expired\",\"Error.AuthDidNotValidateExpiredPassword.Description\":\"You must reset your password at appleid.apple.com before signing in.\",\"Error.AuthDidNotValidateExpiredPassword.Support\":\"Reset\",\"Error.AuthDidNotValidateExpiredPassword.Support.URL\":\"https://appleid.apple.com\",\"Error.AuthDidNotValidateNotICloudUser.Title\":\"Set up iCloud on a device to use %{currentDomain}.\",\"Error.AuthDidNotValidateNotICloudUser.Description\":\"Your Apple ID must be used to set up iCloud on an iOS or macOS device before you can use %{currentDomain}.\",\"Error.AuthDidNotValidateNotICloudUser.LearnMore\":\"Learn More\",\"Error.AuthDidNotValidateNotICloudUser.LearnMore.URL\":\"https://www.apple.com/icloud/setup/\",\"Error.UnsupportedAppleID.Title\":\"Unsupported Apple ID\",\"Error.UnsupportedAppleID.Description\":\"This Apple ID cannot be used to sign in to iCloud. If you have another Apple ID, try signing in with it.\",\"Error.UnsupportedAppleID.LearnMore\":\"Learn More\",\"Error.UnsupportedAppleID.LearnMore.URL\":\"https://support.apple.com/en-us/ts3988\",\"Error.AuthDidNotValidateNotVerified.Title\":\"Account Not Verified\",\"Error.AuthDidNotValidateNotVerified.Description\":\"Check your email at %@ for instructions on how to verify your account.\"\n,\"Error.AuthDidNotValidateAccountClosed.Title\":\"iCloud Not Available.\",\"Error.AuthDidNotValidateAccountClosed.Description\":\"iCloud is no longer available for your Apple ID.\",\"Error.AuthDidNotValidateOffline.Title\":\"You are not connected to the Internet.\",\"Error.AuthDidNotValidateOffline.Description\":\"You cant log into iCloud because your computer is currently offline.\",\"Error.AuthUserPartitionLocked.Title\":\"iCloud is temporarily unavailable for your Apple ID because of account maintenance.\",\"Error.AuthUserPartitionLocked.Description\":\"Wait a few minutes and sign in again.\",\"Error.ManagedAppleIdNeedsSetupCompletion.Title\":\"Additional setup required\",\"Error.ManagedAppleIdNeedsSetupCompletion.Description\":\"You must finish setting up this Apple ID before using it with %{currentDomain}. To complete the setup, sign in to your account on a managed device.\",\"Error.TermsUpdateFailed.Title\":\"Terms and Conditions could not be displayed at this time.\",\"Error.TermsUpdateFailed.Description\":\"You will be asked to agree to Terms and Conditions next time you sign in to iCloud.\",\"Error.TermsAcceptFailed.Title\":\"Could not complete request\",\"Error.TermsAcceptFailed.Description\":\"This action could not be completed because of an error. Please sign in with your Apple ID to try again.\",\"Error.CreateFailed.Title\":\"Could not create Apple ID\",\"Error.CreateFailed.Description\":\"Your Apple ID could not be created because of a server error.\",\"Error.RepairFailed.Title\":\"Could not update Apple ID\",\"Error.RepairFailed.Description\":\"Your Apple ID could not be updated because of a server error.\",\"Auth.FirstRun.Title\"\n:\"Setup your iCloud Account.\",\"Auth.FirstRun.Select.Timezone.Title\":\"Select your timezone\",\"HSA2.VerifyIdentity.Footer.Title\":\"Need to find your device? Get quick access to:\",\"HSA2.VerifyIdentity.Footer.FindMyIphone\":\"Find My iPhone\",\"HSA2.VerifyIdentity.Footer.ApplePay\":\"Apple Pay\",\"HSA2.VerifyIdentity.Footer.AppleWatch\":\"Apple Watch Settings\",\"HSA2.VerifyIdentity.Loading\":\"Loading…\",\"Terms.Acceptance.Title\":\"Terms and Conditions\",\"Terms.Acceptance.Description\":\"You have successfully accepted the iCloud Terms and Conditions.\",\"Terms.GoldenGate.Acceptance.Description\":\"You have successfully accepted the iCloud Terms and Conditions. Go to Game Center on your Mac or device and sign in again.\",\"Terms.Acceptance.UpToDate.Description\":\"Your Terms and Conditions are up to date.\",\"Terms.GoldenGate.Acceptance.UpToDate.Description\":\"Your Terms and Conditions are up to date. Go to Game Center on your Mac or device and sign in again.\",\"Terms.Acceptance.SignOut\":\"Sign Out\",\"Terms.GCBD.Notice.Title\":\"Updated iCloud Terms and Conditions\",\"Terms.GCBD.Notice.Description\":\"Starting February 28, 2018, the operation of iCloud services in the mainland of China will be transferred to Guizhou on the Cloud Big Data Industrial Development Co., Ltd. (GCBD). <a target='_blank' href='https://support.apple.com/en-us/HT208351'>Learn more…</a>\"}),CloudOS.hsaController=SC.Object.create({isAppLoading:NO}),CloudOS.noticePage=SC.Page.create({noticePane:SC.Pane.extend({classNames:\"icloud-notice hide\".w(),layout:{left:0,top:0,right:0,height:86,minWidth:COS.MIN_WIDTH},childViews:\"dismissButton\".w(),classNameBindings\n:\"shouldShow:show-notice\",addClassNames:function(){var e=this.getPath(\"currentNotice.additionalClassNames\");e&&SC.typeOf(e)===SC.T_ARRAY&&(this.classNames=this.classNames.concat(e))}.observes(\"currentNotice\"),localize:YES,ariaRole:\"banner\",tagName:\"div\",attributeBindings:[\"tabindex\",\"aria-labelledby\",\"aria-describedby\"],tabindex:0,\"aria-labelledby\":\"icloud-notice-link\",\"aria-describedby\":\"icloud-notice-link\",currentNoticeBinding:SC.Binding.oneWay(\"CloudOS.noticeController.currentNotice\"),displayProperties:[\"currentNotice\"],showNotice:function(){this.set(\"shouldShow\",!0),this.$().removeAttr(\"aria-hidden\")},hideNotice:function(){this.set(\"shouldShow\",!1),this.$().attr(\"aria-hidden\",\"true\")},dismissButton:SC.ImageButtonView.extend({useStaticLayout:!0,target:\"CloudOS.noticeController\",action:\"dismissNotice\",localize:YES,ariaLabel:\"AX.Label.iCloud.Notice.Banner.Close.Button\",toolTip:\"AX.Label.iCloud.Notice.Banner.Close.Button\",classNames:\"icloud-notice-dismiss\".w(),click:function(){this.setPath(\"parentView.ariaHidden\",!0)}}),render:function(e,t){var n=this.get(\"currentNotice\");n?(title=n.get(\"title\"),subtitle=n.get(\"subtitle\"),iconClass=n.get(\"iconClass\")):title=subtitle=iconClass=\"\",t?(e.begin(\"div\").addClass(\"icloud-notice-container\").begin(\"div\").addClass(\"icon \"+iconClass).end().begin(\"div\").addClass(\"icloud-notice-text\").begin(\"span\").addClass(\"icloud-notice-title\").text(title).end().begin(\"div\").addClass(\"icloud-notice-subtitle\").html(subtitle).end().end().end(),this.renderChildViews(e)):(e.$(\".icon\").removeClass(this._currentClassName).addClass(iconClass),e.$(\".icloud-notice-title\"\n).html(title),e.$(\".icloud-notice-subtitle\").html(subtitle),this._currentClassName=iconClass)},mouseDown:function(e){if(e.target!==this.$(\".icloud-notice-subtitle a\")[0])return!1;CloudOS.noticeController.performAction()}})}),CloudOS.Notice=SC.Object.extend({title:null,subtitle:null,iconClass:null,userHasDismissed:!1,canShow:!0,storageKeyName:null,priority:1,dismissAction:function(){this.set(\"userHasDismissed\",!0),this.get(\"storageKeyName\")&&CK.setValueInLocalStorage(this.get(\"storageKeyName\"),YES,YES)},clearUserDismissal:function(){this.get(\"storageKeyName\")&&CK.removeValueInLocalStorage(this.get(\"storageKeyName\"),YES)}}),CloudOS.noticeController=SC.Object.create({delegate:null,notices:[],currentNotice:null,setupNotices:function(){var e=this.get(\"notices\");if(!e||e.length===0)this.notices.push(CloudOS.Notice.extend({title:\"iCloud.Notice.Lite.Title\".loc(),subtitle:\"iCloud.Notice.Lite.Subtitle\".loc(),iconClass:\"icloud-lite-notice-icons\",accountCreationEnabled:!0,accountCreationEnabledBinding:SC.Binding.bool(\"CloudOS.initializationController.accountCreationEnabled\"),iCloudLiteSignUp:!1,iCloudLiteSignUpBinding:\"CloudOS.authController.iCloudLiteSignUp\",storageKeyName:\"hasDismissediCloudLiteNotice\",priority:2,canShow:function(){var e=CK.getValueFromLocalStorage(\"hasDismissediCloudLiteNotice\",YES);return this.get(\"accountCreationEnabled\")&&!this.get(\"iCloudLiteSignUp\")&&!this.get(\"userHasDismissed\")&&(e===\"false\"||!e)}.property(\"accountCreationEnabled\",\"iCloudLiteSignUp\",\"userHasDismissed\"),performAction:function(){CloudOS.statechart.gotoState(\"accountCreation\")},_isUserAtLeastPartiallyAuthenticated\n:!1,_isUserAtLeastPartiallyAuthenticatedBinding:\"COS.authController.isAtLeastPartiallyAuthenticated\",_isUserAtLeastPartiallyAuthenticatedDidChange:function(){this.get(\"_isUserAtLeastPartiallyAuthenticated\")&&this.dismissAction()}.observes(\"_isUserAtLeastPartiallyAuthenticated\")}).create()),this.notices.push(CloudOS.Notice.extend({additionalClassNames:[\"windows-notice\"],title:\"iCloud.Notice.WindowsDownload.Title\".loc(),subtitle:\"iCloud.Notice.WindowsDownload.Subtitle\".loc(),iconClass:\"icon-icloud\",storageKeyName:\"hasDismissediCloudWindowsNotice\",userHasDismissed:!1,priority:1,canShow:function(){var e=CK.getValueFromLocalStorage(\"hasDismissediCloudWindowsNotice\",YES);return!this.get(\"userHasDismissed\")&&SC.browser.isWindows&&(e===\"false\"||!e)}.property(\"userHasDismissed\")}).create());this.showNoticeIfRequired()},showNoticeIfRequired:function(){if(!this.get(\"currentNotice\")){var e=this.get(\"notices\"),t=this.get(\"currentNotice\");if(e&&e.length>0&&!t){this.set(\"notices\",e.sort(function(e,t){return e.priority-t.priority}));for(var n=0;n<e.length;n++){var r=e[n];if(r.get(\"canShow\")){this.set(\"currentNotice\",r),this.set(\"delegate\",r);break}}}}},dismissNotice:function(){var e=this.get(\"delegate\");e&&e.tryToPerform(\"dismissAction\"),CW.notificationCenter.postNotification(\"focusAuthWidgetFrame\")},isUserLoggingOutObserver:function(){this.get(\"_isUserLoggingOut\")&&this.set(\"noticePaneCanBeShown\",!1)}.observes(\"_isUserLoggingOut\"),noticePaneCanBeShown:function(e,t){var n=this._noticePaneCanBeShown;return t!==undefined?n=this._noticePaneCanBeShown=!1:n===undefined&&(n=this.getPath(\"currentNotice.canShow\"\n)&&this.get(\"_isUserNotAuthenticated\")&&!CloudOSBootstrap.isOnSupportedMobile),n}.property(\"currentNotice.canShow\",\"CloudOS.shareController\",\"_isUserNotAuthenticated\"),currentNoticeObserver:function(){this.notifyPropertyChange(\"noticePaneCanBeShown\")}.observes(\"currentNotice.canShow\"),cloudOSTopOffset:function(){return this.get(\"noticePaneCanBeShown\")?CloudOS.noticePage.getPath(\"noticePane.layout.height\"):0}.property(\"noticePaneCanBeShown\"),_updateTopOffset:function(){CW.notificationCenter.postNotification(\"icloudNoticeVisibilityChanged\",this.get(\"cloudOSTopOffset\"))}.observes(\"cloudOSTopOffset\"),showOrHideNoticePane:function(){var e=CloudOS.noticePage.get(\"noticePane\");this.get(\"noticePaneCanBeShown\")?(e.showNotice(),this._didAppendPane||(e.append(),this._didAppendPane=!0)):e.hideNotice()}.observes(\"noticePaneCanBeShown\"),performAction:function(){this.get(\"delegate\").tryToPerform(\"performAction\")},clearLocalStorageValues:function(){this.get(\"notices\").forEach(function(e){e.clearUserDismissal()})},resetNotices:function(){this.set(\"currentNotice\",null),this.clearLocalStorageValues(),this.setupNotices()},_isUserNotAuthenticated:!0,_isUserNotAuthenticatedBinding:\"CloudOS.authController.isNotAuthenticated\",_isUserLoggingOut:!1,_isUserLoggingOutBinding:\"CloudOS.authController.isLoggingOut\"}),CloudOS.TOS_SECTIONS=[\"iCloudTerms\"],CloudOS.TOS_TYPES_TO_VERSION_KEYS={iCloud:\"acceptedICloudTerms\"},CloudOS.tosController=SC.Object.create({termsURLBinding:SC.Binding.oneWay(\"CloudOS.initializationController.getICloudTermsEndpointURL\"),downloadTermsCopyURL:null,sections:null,selectedSection\n:null,acceptedVersions:null,_isShowingInterstitialPage:null,isCountryChina:function(){return this.get(\"country\")===\"CHN\"}.property(\"country\").cacheable(),isShowingInterstitialPage:function(e,t){return t!==undefined?this._isShowingInterstitialPage=t:SC.none(this._isShowingInterstitialPage)&&(this._isShowingInterstitialPage=this.get(\"isCountryChina\")),this._isShowingInterstitialPage}.property(\"isCountryChina\"),show:function(e,t){e.set(\"delegate\",null),e.set(\"isLoading\",YES),e.set(\"maxHeight\",488),this._fetchTerms(t,e)},handleAgree:function(){this._showConfirmation()},handleAgreeConfirmation:function(){this._recordAcceptedVersions(),CloudOS.statechart.sendEvent(\"userHasAcceptedTerms\")},handleDownload:function(){CloudOS.ValidatedDownload.create({tokenCookieKey:\"X-APPLE-TERMS-VALIDATE\",tokenParamKey:\"termsValidateToken\",url:this.get(\"downloadTermsCopyURL\"),params:{locale:this.get(\"_locale\"),country:this.get(\"country\")}}).start()},handleBack:function(){this.set(\"selectedSection\",null)},handleDisagree:function(){this.set(\"acceptedVersions\",null),CloudOS.statechart.sendEvent(\"userHasRejectedTerms\")},handleFailure:function(){this.set(\"acceptedVersions\",null),CloudOS.statechart.sendEvent(\"termsUpdateFailed\")},handleContinueToTerms:function(){this.set(\"isShowingInterstitialPage\",!1)},showLearnMorePage:function(){window.open(\"TermsAndConditions.Interstitial.LearnMore.Link\".loc(),\"_blank\")},_pane:null,country:null,_locale:null,_fetchTerms:function(e,t){var n=this.get(\"termsURL\");n||CW.fatalError(\"User needs to accept terms of service but no terms URL was provided in the configuration.\");\nvar r={locale:SC.Locale.currentLanguage};e&&SC.mixin(r,e),COS.Request.create({type:\"POST\",address:this.get(\"termsURL\"),reportRequest:YES,body:r,didReceive:function(){arguments.callee.base.apply(this,arguments),this.invokeLater(function(){t.set(\"isLoading\",NO)},500)}}).notify(200,this,function(e){this.set(\"_pane\",t);var n=CloudOS.TOSContent.create({controller:this});t.set(\"paneContentView\",n);var r=e.get(\"body\");if(SC.typeOf(r)===SC.T_HASH){var i=CloudOS.TOS_SECTIONS,s=[];for(var o=0,u=i.length;o<u;o++){var a=i[o],f=a&&r[a];f&&s.push(this._makeSection(f))}if(s.length>0)return this.set(\"sections\",s),this.set(\"downloadTermsCopyURL\",r.downloadICloudTerms),this.set(\"_locale\",r.locale),this.set(\"country\",r.country),YES;SC.warn(\"Terms response missing iCloudTerms'. Marking the response as failure.\")}}).notify(this,this.handleFailure).send()},_makeSection:function(e){var t=CloudOS.TOS_TYPES_TO_VERSION_KEYS;return e&&CloudOS.TermsSection.create({title:CW.decodeBase64(e.title),summary:CW.decodeBase64(e.summary),content:CW.decodeBase64(e.content),versionKey:t[e.type],version:e.version})},_showConfirmation:function(){var e=this;CW.Alert.show({message:\"TermsAndConditions.Title\".loc(),layout:{centerX:0,width:460,centerY:-10,height:181},descriptionBinding:SC.Binding.transform(function(e,t){return e?\"TermsAndConditions.China.Confirmation\".loc():\"TermsAndConditions.Confirmation\".loc()}).from(\"CloudOS.tosController.isCountryChina\"),middleButton:{title:\"Button.Disagree\".loc(),action:\"didDisagree\"},rightButton:{title:\"Button.Agree\".loc(),action:\"didAgree\"},didAgree:function(){this.remove(),e.handleAgreeConfirmation\n()},didDisagree:function(){this.remove(),e.handleDisagree()}})},_recordAcceptedVersions:function(){var e=this.get(\"sections\"),t={};for(var n=0,r=e.length;n<r;n++){var i=e.objectAt(n);t[i.get(\"versionKey\")]=i.get(\"version\")}this.set(\"acceptedVersions\",t)}}),CloudOS.TermsSection=SC.Object.extend({type:null,title:null,summary:null,content:null,version:null}),SC.stringsFor(\"en-us\",{\"_Springboard.CalendarTileStatic.Asset\":window.devicePixelRatio>1?\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/source/resources/calendar_icon_en_us@2x.png\":\"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/source/resources/calendar_icon_en_us.png\"}),function(){var e=28;CloudOS.PhotoIconView=SC.View.extend(SC.RTLSupport,{displayProperties:\"photoUrl photoCrop\".w(),photoUrlBinding:\"CK.meCardController.photoUrl\",photoCropBinding:\"CK.meCardController.photoCrop\",classNames:\"cw-photo-icon\",layoutRecipe:{top:8,end:300},init:function(t){t(),this.hasOwnProperty(\"layout\")||(this.layout=SC.clone(this.layout)),this.layout.width=this.layout.height=e,CW.notificationCenter.subscribeToNotification(\"logoutUser\",this,\"disconnectDisplayProperties\")}.enhance(),disconnectDisplayProperties:function(){this.get(\"photoUrlBinding\").disconnect(),this.get(\"photoCropBinding\").disconnect()},render:function(e){e.push('<div class=\"photo-container\"></div>')},update:function(t){var n=t.find(\"img\")[0],r=t.find(\".photo-container\")[0],i=this.get(\"photoUrl\"),s=this.get(\"photoCrop\");n&&n._src!==i&&(n.parentNode&&n.parentNode.removeChild(n),n=null,r.backgroundImage=\"\");if(!n&&i){\nvar o=this;n=new Image,n.setAttribute(\"crossorigin\",\"use-credentials\"),n.onerror=function(){t.addClass(\"no-photo\")},n.onload=function(){t.removeClass(\"no-photo\");if(!s)o.positionPhotoInContainer(n,r,0,0,e,e);else{var i=s.x,u=s.y,a=s.width,f=s.height,l=n.width,c=n.height,h;a==f&&(i+a>l||u+f>c)&&(h=Math.min(l,c),i=Math.floor((l-h)/2,0),u=Math.floor((c-h)/2,0),a=h,f=h),o.positionPhotoInContainer(n,r,Math.round(-i*e/a),Math.round(-(c-u-f)*e/f),Math.round(l*e/a),Math.round(c*e/f))}},n._src=i,n.src=i}!n&&!i&&(t.addClass(\"no-photo\"),SC.browser.isSafari&&parseInt(SC.browser.safari,10)===536&&r.getAttribute(\"style\"),r.removeAttribute(\"style\"))},positionPhotoInContainer:function(e,t,n,r,i,s){t.style.backgroundImage=\"url(\"+e._src+\")\",t.style.backgroundPosition=n+\"px \"+r+\"px\",t.style.backgroundSize=i+\"px \"+s+\"px\"}})}(),CloudOS.AccountMenuView=CK.AccountMenuView.extend(CW.Animatability,SC.RTLSupport,{classNames:\"cos-account-menu\",layoutRecipe:{top:0,width:100,height:44,zIndex:3,end:2},layout:{left:0,right:0,top:0,bottom:0},_hasAccountIconView:NO,accountMenuItems:function(){var e=[];return e.push({title:\"AccountMenu.AccountSettings\".loc(),tooltip:\"AccountMenu.AccountSettings\".loc(),target:\"CloudOS\",action:\"showAccountSettings\"}),e.push({title:\"AccountMenu.SignOut\".loc(),tooltip:\"AccountMenu.SignOut\".loc(),target:\"CloudOS\",action:\"performLogout\"}),e}.property().cacheable(),init:function(e){e(),CW.notificationCenter.subscribeToNotification(\"relocalize\",this,\"relocalize\"),this.invokeLast(this.userDidChange)}.enhance(),userDidChange:function(){COS.authController.get(\"user\")&&this.createPhotoIconView\n(),this.get(\"accountButton\").notifyPropertyChange(\"availableTitles\")}.observes(\"COS.authController.user\"),relocalize:function(){var e=this.get(\"accountButton\");this.notifyPropertyChange(\"accountMenuItems\"),e.notifyPropertyChange(\"availableTitles\"),e.notifyPropertyChange(\"toolTip\"),this.get(\"helpButton\").notifyPropertyChange(\"toolTip\")},childViews:[\"accountButton\",\"dividerView\",\"helpButton\"],accountMenuSize:null,accountMenuSizeBinding:\".accountButton.measuredSize\",relayoutChildren:function(){if(!this.get(\"_hasAccountIconView\"))return;var e=this.get(\"accountMenuSize\"),t=e?e.width:0,n=this.get(\"frame\"),r=SC.Locale.getPath(\"currentLocale.isRTL\"),i=Math.min(n.width+36-28,t+65),s=this.get(\"accountIconView\"),o=r?\"left\":\"right\";s.adjust(o,i)}.observes(\"accountMenuSize\"),preferredWidth:function(){var e=arguments.callee.base.apply(this,arguments);return this.get(\"_hasAccountIconView\")&&(e+=40),e}.property(\"_hasAccountIconView\",\"accountButtonPreferredWidth\",\"frame\").cacheable(),isVisible:function(){return CloudOSBootstrap.isOnSupportedMobile||CloudOS.authController.get(\"isNotAuthenticated\")?NO:YES}.property(\"CloudOS.authController.isNotAuthenticated\"),createPhotoIconView:function(){var e=this.createChildView(CloudOS.PhotoIconView);this.set(\"accountIconView\",e),this.appendChild(e),this.set(\"_hasAccountIconView\",YES)}}),CloudOS.AppFrameView=SC.View.extend(CW.Animatability,{tagName:\"iframe\",useStaticLayout:YES,isAppFrameView:YES,minWidth:0,minHeight:0,app:null,usingPrevCreatedIframe:NO,init:function(){arguments.callee.base.apply(this,arguments);var e=this.get(\"app\"),t=e.get(\"name\"),n=SC.$&&\nSC.$(\"iframe#\"+t)[0];n&&!n.oldIframe&&(this.set(\"currentIframe\",n),this.set(\"usingPrevCreatedIframe\",YES),e.set(\"route\",n.getAttribute(\"route\")),this.setupExistingIframeView())},updateLayerLocation:function(){if(this.get(\"usingPrevCreatedIframe\")){var e=this.get(\"layer\");return e||this.createLayer(),this.set(\"layerLocationNeedsUpdate\",NO),this}return arguments.callee.base.apply(this,arguments)},setupExistingIframeView:function(){this.beginPropertyChanges(),this.parentViewDidChange(),this.layoutDidChange(),this.endPropertyChanges(),this.invokeLast(function(){var e=this.get(\"pane\");e&&e.get(\"isPaneAttached\")&&this._notifyDidAppendToDocument()})},_getFrameUrl:function(){var e=this.get(\"app\"),t=e.get(\"route\"),n=t?\"#\"+t:\"\",r=URI(e.get(\"path\"));return r.search(SC.merge(URI(r).query(!0),URI(window.location.search).query(!0))),r.toString()+n},createLayer:function(){if(this.get(\"layer\"))return this;var e=this.get(\"currentIframe\"),t=this.get(\"app\");if(e){var n=t.preferredLocale(),r=t.getAppDomain(),i=window.location.origin;return e.getAttribute(\"locale\")!==n||i!==r?(CK.setValueInLocalStorage(\"preferredLocaleFor.\"+t.get(\"name\"),n),SC.debug(\"Reloading the app iframe since the domain from which the app should be loaded is %@ and the window domain is %@\",r,i),e.setAttribute(\"src\",this._getFrameUrl()),e.isLoaded=!1):SC.debug(\"Using previously created iframe for app: %@ with src: %@\",t.get(\"name\"),t.get(\"path\")),this.set(\"layer\",e),e.className=SC.A(this.get(\"classNames\")).join(\" \"),this._notifyDidCreateLayer(),this}return arguments.callee.base.apply(this,arguments)},adjustIframePositioning:\nfunction(){if(!this.get(\"usingPrevCreatedIframe\"))return;var e=CloudOS.bannerManager.get(\"bannerHeight\"),t=this.$(),n=this.getPath(\"app.isActive\");t&&t.position().top!==e&&n&&t.stop(!0,!0).animate({top:e},{duration:CloudOS.BANNER_ANIMATION_DURATION,complete:function(){$(this).css({height:\"calc(100% - %@px)\".fmt(e)})}})}.observes(\"CloudOS.bannerManager.bannerHeight\",\"*pane.frame\",\"app.appInfo.isActive\"),render:function(e){var t=this.get(\"app\"),n=this._getFrameUrl();SC.buildMode===\"debug\"&&(n=URI(n).addSearch(\"isLoadedByCloudOS\",\"true\")),e.attr(\"src\",n),SC.browser.isIE9OrLower||e.attr(\"title\",t.get(\"displayName\")),e.attr(\"name\",t.get(\"name\")),e.attr(\"tabindex\",\"0\"),e.attr(\"frameBorder\",0),e.attr(\"width\",\"100%\"),e.attr(\"height\",\"100%\"),SC.debug(\"Created iframe for %@\",n)},update:function(){},didCreateLayer:function(){var e=this.getPath(\"app.name\"),t=this.get(\"layer\");SC.Benchmark.start(e),t.isLoaded?this._iframeDidLoad():(SC.Benchmark.start(\"Waiting for iframe to load\",e),SC.Event.add(t,\"load\",this,this._iframeDidLoad))},_iframeDidLoad:function(){SC.run(function(){var e=CloudOS.authController,t=this.get(\"contentWindow\"),n=this.get(\"app\"),r=n.get(\"name\"),i=n.get(\"loadReason\"),s=e.get(\"isAtLeastPartiallyAuthenticated\"),o=e.get(\"isNotAuthenticated\"),u=n.get(\"requiresAuth\"),a,f=this.get(\"usingPrevCreatedIframe\");f&&SC.info('Total time to load iframe for app \"%@\" including time taken to load CloudOS is %@ms',r,SC.getCurrentTimeForPerformance()-SC.benchmarkPreloadEvents.headStart),t&&(!u||u&&s)?(f||SC.Benchmark.end(\"Waiting for iframe to load\",r),SC.Benchmark.start(\"Waiting for application to become visible\"\n,r),n.set(\"isLoaded\",YES),n.passMessage(\"_applicationShouldInvokeMain\",CloudOS._cloudOSAPIMethodNames,COS.cloudOSStateForApp(r),i,n.benchmarks()),SC.Benchmark.start(\"Waiting for startup data\",r),n.get(\"startupDataHasBeenLoaded\")&&SC.Benchmark.end(\"Waiting for startup data\",r)):(o?SC.warn(\"User is no longer logged in.\"):SC.warn(\"contentWindow was not found on the iframe for “%@”\",r),n.set(\"isFailed\",YES),CloudOS.statechart.sendAction(\"applicationDidFailToBecomeReady\"))},this)},contentWindow:function(){var e=this.get(\"layer\");return e?e.contentWindow:null}.property(),destroy:function(){return this.set(\"currentIframe\",null),this.set(\"usingPrevCreatedIframe\",NO),SC.Event.remove(this.get(\"layer\"),\"load\",this,this._iframeDidLoad),this.get(\"layer\")&&(this.get(\"layer\").src=\"about:blank;\"),arguments.callee.base.apply(this,arguments)},focus:function(){var e=this.get(\"contentWindow\"),t=this.get(\"app\"),n=t.get(\"name\");if(!e)return;try{SC.debug(\"Now focusing on application %@\",n),e.focus(),t.passMessage(\"_hasReceivedFocus\")}catch(r){SC.error(\"Focusing failed for %@. Exception text: %@\",n,r)}}}),CloudOS.SetupInstructions=CK.AccountMenuView.extend(CW.Animatability,SC.RTLSupport,{classNames:[\"cos-account-menu\",\"cos-setup-instructions\"],isInAuthPane:YES,childViews:[\"accountButton\",\"dividerView\",\"helpButton\"],layoutRecipe:{top:0,width:100,height:44,zIndex:2,end:2},layout:{left:0,right:0,top:0,bottom:0},accountButton:SC.ButtonView.design(SC.AutoResize,SC.RTLSupport,{themeName:\"icloud-controls\",classNames:[\"account-menu\",\"borderless\"],layoutRecipe:{top:-6,bottom:0,end:38},autoResizePadding:0,controlSize\n:SC.HUGE_CONTROL_SIZE,title:function(){return\"AuthSetupInstructions.Text\".loc()}.property(),action:function(){window.open(\"AuthSetupInstructions.URL\".loc(),\"blank\")},click:function(e){var t=this.get(\"layer\");if(!t)return;return SC.Event.trigger(t,\"mousedown\"),SC.Event.trigger(t,\"mouseup\"),YES},keyDown:function(e){return e.which===SC.Event.KEY_RETURN||e.which===32?this.click():NO}}),buttonWidthDidChange:function(){var e=this.getPath(\"accountButton.calculatedWidth\");this.adjust(\"width\",39+e)}.observes(\"accountButton.calculatedWidth\")}),CloudOS.LinksSection=SC.View.extend(CW.Animatability,{getAllLinkElements:function(){if(SC.$())return this.$(\"a\")},layout:{left:0,right:0,height:87,bottom:0},classNames:[\"auth-footer\"],iCloudLiteSignUp:!1,iCloudLiteSignUpBinding:\"CloudOS.authController.iCloudLiteSignUp\",displayProperties:[\"linksHTML\",\"iCloudLiteSignUp\"],isMobile:CloudOSBootstrap.isOnSupportedMobile,render:function(e,t){this.set(\"_links\",{CreateAppleId:{url:\"\",target:null,action:function(){CloudOS.statechart.sendEvent(\"signUp\")}},SystemStatus:{url:\"AuthFooter.SystemStatus.URL\".loc(),target:\"_blank\"},Privacy:{url:\"AuthFooter.Privacy.URL\".loc(),target:\"_blank\"},TOS:{url:\"AuthFooter.TOS.URL\".loc(),target:\"_blank\"}});var n=this.get(\"linksHTML\");if(t){var r='<a tabindex=\"0\" class=\"logo\" href = \"'+\"AuthFooter.AppleLogo.Link.URL\".loc()+'\" target = \"blank\" title=\"Apple.com\"></a>'+'<div class=\"links\">'+n+\"</div>\";e=e.begin(\"div\").addClass(\"footer-contents\"),e.push(r),e=e.end()}else this._lastRenderedLinksHTML!==n&&e.$(\".links\").html(n);var i=this.get(\"iCloudLiteSignUp\");i||e.setClass(\"multiline\"\n,this.get(\"linkLines\").length>1||this.isMobile),e.setClass(\"links-hidden\",i),this._lastRenderedLinksHTML=n},focusOnCorrectLink:function(e){var t=this.getAllLinkElements();if(!t.length)return;t[e].focus()},placeFocusOnLinks:function(){var e=this.getAllLinkElements();if(!e.length)return;this.getPath(\"receivedFirstResponderFrom.layer\")===this.getPath(\"previousValidKeyView.layer\")&&(this.focusOnCorrectLink(0),this.set(\"receivedFirstResponderFrom\",null))},isFirstResponderDidChange:function(){this.get(\"isFirstResponder\")&&this.focusOnCorrectLink(0)}.observes(\"isFirstResponder\"),didCreateLayer:function(){this.notifyPropertyChange(\"linkLines\")},didAppendToDocument:function(){var e=this.$('* [name=\"CreateAppleId\"]'),t=this;e&&e.click(function(){var e,n=this.name;t._links&&t._links[n]&&(e=t._links[n].action),e&&e.call(this)})},parentViewDidResize:function(){arguments.callee.base.apply(this,arguments),this._measuredLinkSizes={},this.notifyPropertyChange(\"linkLines\")},_measuredLinkSizes:{},_separatorHTML:'&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"footer-link-separator\"></span>&nbsp;&nbsp;&nbsp;&nbsp;',linkLines:function(){var e=this.$(\".links\")[0],t=this.getPath(\"parentView.frame\").width-40;if(!e)return[];var n=[],r=this.isMobile?[\"TOS\",\"Privacy\"]:[\"SystemStatus\",\"Privacy\",\"TOS\"],i,s,o,u=this._measuredLinkSizes,a={items:[],width:0},f=[a],l=this._separatorHTML,c,h=!1,p=this.get(\"_shouldShowCreateLink\");p&&r.unshift(\"CreateAppleId\");for(s=0;s<r.length;s++)i=r[s],o=this._links[i],n.push('<a href=\"'+o.url+'\" target=\"'+o.target+'\" name=\"'+i+'\">'+(\"AuthFooter.\"+i+\".Text\").loc().split(\" \").join(\"&nbsp;\"\n)+\"</a>\");SC.prepareStringMeasurement(e),u[l]||(h=!0,u[l]=SC.measureString(l,YES).width);var d=u[l],v='<span class=\"copyright\">%@</span>',m=v.fmt(\"AuthFooter.CopyrightText\".loc((new Date).getFullYear()));if(this.get(\"isMobile\")){var g=SC.measureString(m,YES).width;if(g>t){var y=\"AuthFooter.CopyrightText.NarrowMobile.Line\",b=v.fmt((y+1).loc((new Date).getFullYear())),w=v.fmt((y+2).loc());n.unshift(b,w)}else n.unshift(m)}else n.push(m);c=n.length;for(s=0;s<c;s++)o=n[s],u[o]||(h||(h=!0,SC.prepareStringMeasurement(e)),u[o]=SC.measureString(o,YES).width),f.length>0&&(a.width+=d),a.items.push(o),a.width+=u[o];return h&&SC.teardownStringMeasurement(),this.adjustLines(f,t,u,d),f}.property(\"_shouldShowCreateLink\").cacheable(),adjustLines:function(e,t,n,r){var i=!1,s=t,o,u=e;for(idx=0;idx<e.length;idx++)line=e[idx],line.width>s&&line.items.length>1&&(idx===0&&(e.unshift({items:[],width:0}),idx++),o=e[idx-1],link=line.items.shift(),line.width-=n[link],line.items.length>0&&(line.width-=r),o.items.length>0&&(o.width+=r),o.items.push(link),o.width+=n[link],u=this.adjustLines(e,t,n,r));return u},linksHTML:function(){var e=this.get(\"linkLines\"),t=this._separatorHTML;return e.map(function(e){return\"<div class='line'>\"+e.items.join(t)+\"</div>\"}).join(\"\")}.property(\"linkLines\").cacheable(),isFederatedFlowUIStartedBinding:\"CloudOS.appleAuthWidgetController.isFederatedFlowUIStarted\",isAuthWidgetLoadedBinding:\"CloudOS.authController.isAuthWidgetLoaded\",isNotAuthenticatedBinding:\"CloudOS.authController.isNotAuthenticated\",accountCreationEnabledBinding:\"CloudOS.initializationController.accountCreationEnabled\"\n,_shouldShowCreateLink:function(){var e=this.get(\"isAuthWidgetLoaded\"),t=this.get(\"isNotAuthenticated\"),n=this.get(\"accountCreationEnabled\"),r=this.get(\"isFederatedFlowUIStarted\");return n&&e&&t&&!r}.property(\"accountCreationEnabled\",\"isAuthWidgetLoaded\",\"isNotAuthenticated\",\"isFederatedFlowUIStarted\").cacheable()}),CloudOS.BackButton=SC.View.extend(SC.AutoResize,CW.Animatability,{supportsAutoResize:YES,autoResizeText:function(){return\"Auth.Button.Back\".loc()}.property(),classNames:[\"cloudos-mini-links\",\"cancel-link\"],autoResizeLayerBinding:SC.Binding.oneWay(\"*layer\"),autoResizePadding:{width:1,height:0},isVisible:function(){var e=CloudOS.authController;return e.postLoginRedirectUrl&&!e.get(\"isAuthenticated\")&&!CloudOSBootstrap.isTermsAndConditionUrl}.property(\"CloudOS.authController.postLoginRedirectUrl\",\"CloudOS.authController.isAuthenticated\").cacheable(),render:function(e,t){if(t){var n='<div><a aria-hidden=\"true\" target = \"blank\">'+this.get(\"autoResizeText\")+\"</a></div>\";e.push(n)}},mouseDown:function(){return YES},mouseUp:function(){var e=CloudOS.authController,t=e.get(\"postLoginRedirectUrl\");return t&&e.shouldUsePostLoginRedirectUrl()&&CloudOS.authPane.hide(function(){CK.reloadWithReason(\"postLoginRedirectUrl\",t)}.bind(this)),YES},touchStart:function(e){this.mouseUp(e)}}),CloudOS.AuthBadge=SC.View.extend({childViews:[\"backButton\",\"linksSection\",\"setupInstructions\"],backButton:CloudOS.BackButton.design(CloudOS.AdjustViewBasedOnIframe,{layout:{centerX:0,centerY:207,height:25,zIndex:5},iframeBinding:\"*pane.authWidgetFrame\",distanceFromIframe:CloudOSBootstrap.isOnSupportedMobile?-10\n:62}),linksSection:CloudOS.LinksSection.design({isVisibleBinding:SC.Binding.transform(function(e,t){return CloudOSBootstrap.isOnSupportedMobile?!CloudOS.appleAuthWidgetController.get(\"isRepairStarted\"):YES}).from(\"CloudOS.appleAuthWidgetController.isRepairStarted\")}),setupInstructions:CloudOS.SetupInstructions.design({isVisible:!CloudOSBootstrap.isOnSupportedMobile})}),CloudOS.HSASpinnerView=SC.View.extend(SC.AutoResize,{text:function(){return\"HSA2.VerifyIdentity.Loading\".loc()}.property(),icon:\"spinner\",classNames:\"hsa-spinner\",shouldResizeWidth:NO,shouldResizeHeight:YES,supportsAutoResize:YES,autoResizeLayer:function(){if(!this.get(\"layer\"))return;return this.$(\".text\")[0]}.property(\"layer\"),autoResizeText:function(){return this.get(\"text\")}.property(\"text\"),autoResizePadding:{width:26,height:4},render:function(e,t,n){e(t,n),t.push('<div class = \"container\">','<div class= \"icon-container\"> <div class=\"%@ spinner\"/></div>'.fmt(this.get(\"icon\")),'<div style= \"max-width:%@px;\" class=\"text\">'.fmt(this.getPath(\"layout.maxWidth\")-26),this.get(\"text\"),\"</div>\",\"</div>\")}.enhance()}),CloudOS.HSAQuickAccessButton=SC.ButtonView.extend(SC.AutoResize,SC.FlowedLayout,{classNames:[\"quick-access-button\"],themeName:\"borderless\",shouldResizeWidth:NO,shouldResizeHeight:YES,layoutDirection:SC.LAYOUT_VERTICAL,canWrap:NO,text:null,iconClass:null,appName:null,route:null,isSpinnerVisible:NO,childViews:[\"spinner\"],displayProperties:[\"iconClass\",\"text\",\"isSpinnerVisible\"],autoResizeText:function(e,t){return this.get(\"isSpinnerVisible\")?\"\":this.get(\"text\")}.property(\"text\",\"isSpinnerVisible\").cacheable\n(),autoResizeLayer:function(){return this.get(\"layer\")}.property(\"layer\").cacheable(),autoResizePadding:function(e,t){return{height:this.$(\".display-icon\").height()+2}}.property(),render:function(e,t){var n=this.get(\"renderDelegate\");n&&this.get(\"renderDelegate\").addSizeClassName(this.get(\"renderDelegateProxy\"),e),e.push(\"<div class='display-icon \"+this.get(\"iconClass\")+\"' style='display:inline-block'></div>\"),this.get(\"isSpinnerVisible\")||e.push(\"<div class='display-text'>\"+this.get(\"text\")+\"</div>\")},update:function(e){var t=e.find(\".display-text\"),n=t.length>0,r=this.get(\"isSpinnerVisible\");r?t.hide():t.show()},spinner:CloudOS.HSASpinnerView.design({layout:{height:22,top:45},init:function(){arguments.callee.base.apply(this,arguments),this.adjust(\"maxWidth\",this.getPath(\"parentView.layout.maxWidth\"))},isVisibleBinding:\"*parentView.isSpinnerVisible\",flowSpacing:{top:48}}),action:function(){this.set(\"isSpinnerVisible\",YES),CloudOS.hsaController.set(\"isAppLoading\",YES),CW.notificationCenter.subscribeToNotification(\"App Loaded\",this,\"postAppLoadSetup\"),CloudOS.statechart.sendAction(\"showApp\",{appName:this.get(\"appName\"),route:this.get(\"route\")})},postAppLoadSetup:function(e,t){e===this.get(\"appName\")&&(this.set(\"isSpinnerVisible\",NO),CloudOS.hsaController.set(\"isAppLoading\",NO)),t&&CloudOS.get(\"authPane\").hide(),CW.notificationCenter.unsubscribeFromNotification(\"App Loaded\",this,\"postAppLoadSetup\")}}),CloudOS.HSAQuickAccessSection=SC.View.extend(SC.FlowedLayout,{classNames:[\"quick-access-section\"],childViews:[\"title\",\"buttonsSection\"],layoutDirection:SC.LAYOUT_VERTICAL,shouldResizeHeight\n:YES,canWrap:NO,isEnabledBinding:SC.Binding.not(\"CloudOS.hsaController.isAppLoading\"),title:SC.LabelView.design(CloudOS.HorizontalCenterAlign,SC.AutoResize,{classNames:[\"title\"],textAlign:SC.ALIGN_CENTER,controlSize:SC.LARGE_CONTROL_SIZE,shouldResizeWidth:NO,shouldResizeHeight:YES,layout:{height:25,maxWidth:400},flowSpacing:{top:10},value:function(){return\"HSA2.VerifyIdentity.Footer.Title\".loc()}.property()}),buttonsSection:SC.View.design(SC.FlowedLayout,CloudOS.HorizontalCenterAlign,{flowSpacing:{top:3},layout:{height:69,maxWidth:600},isEnabledBinding:\"*parentView.isEnabled\",canWrap:NO,childViews:[\"fmip\",\"applePay\",\"appleWatch\"],init:function(){var e=CloudOS.get(\"isCloudOSLocaleRTLOriented\"),t=this.get(\"childViews\");e&&this.set(\"childViews\",t.reverse()),arguments.callee.base.apply(this,arguments)},fmip:CloudOS.HSAQuickAccessButton.design({isEnabledBinding:\"*parentView.isEnabled\",layout:{maxWidth:150},text:function(){return\"HSA2.VerifyIdentity.Footer.FindMyIphone\".loc()}.property(),iconClass:\"fmip\",appName:\"find\"}),applePay:CloudOS.HSAQuickAccessButton.design({isEnabledBinding:\"*parentView.isEnabled\",layout:{maxWidth:130},text:function(){return\"HSA2.VerifyIdentity.Footer.ApplePay\".loc()}.property(),iconClass:\"apple-pay\",appName:\"settings\",route:\"devices/applePay\"}),appleWatch:CloudOS.HSAQuickAccessButton.design({isEnabledBinding:\"*parentView.isEnabled\",layout:{maxWidth:150},text:function(){return\"HSA2.VerifyIdentity.Footer.AppleWatch\".loc()}.property(),iconClass:\"apple-watch\",appName:\"settings\",route:\"devices/appleWatch\"})})}),CloudOS.HSABadge=SC.View.extend({childViews:[\"accountMenu\"\n,\"hsaFooter\",\"backButton\"],accountMenu:CloudOS.AccountMenuView.extend({accountMenuItems:function(){var e=[];return e.push({title:\"AccountMenu.AccountSettings\".loc(),tooltip:\"AccountMenu.AccountSettings\".loc(),target:\"CloudOS\",action:\"showAccountSettings\"}),e.push({title:\"AccountMenu.SignOut\".loc(),tooltip:\"AccountMenu.SignOut\".loc(),target:\"CloudOS\",action:\"performLogout\"}),e}.property().cacheable()}),hsaFooter:SC.View.design(CloudOS.AdjustViewBasedOnIframe,{isVisible:function(){return!CloudOS.authController.getPath(\"user.isLiteAccount\")&&!CloudOSBootstrap.isOnSupportedMobile}.property(\"CloudOS.authController.user.isLiteAccount\").cacheable(),classNames:[\"footer\"],layout:{centerX:0,top:0,height:160,width:600,zIndex:5},childViews:[\"quickAccessSection\"],distanceFromIframe:21,iframeBinding:\"*pane.authWidgetFrame\",quickAccessSection:CloudOS.HSAQuickAccessSection.design(CloudOS.HorizontalCenterAlign)}),backButton:CloudOS.BackButton.design(CloudOS.AdjustViewBasedOnIframe,{layout:{centerX:0,top:0,height:25,zIndex:6},iframeBinding:\"*pane.authWidgetFrame\",distanceFromIframe:160})}),CloudOS.FirstRunBadge=SC.View.extend({childViews:[\"footer\",\"setupInstructions\"],isVisible:NO,footer:CloudOS.LinksSection.design(),setupInstructions:CloudOS.SetupInstructions.design()}),CloudOS.ManagedAppleIdBadge=SC.View.extend({childViews:[\"accountMenu\",\"footer\"],setupInstructions:CloudOS.SetupInstructions.design(),accountMenu:CloudOS.AccountMenuView.extend({accountMenuItems:function(){var e=[];return e.push({title:\"AccountMenu.SignOut\".loc(),tooltip:\"AccountMenu.SignOut\".loc(),target:\"CloudOS\",action:\"performLogout\"\n}),e}.property().cacheable()}),footer:CloudOS.LinksSection.design()});var ANIMATION_TIME_FRAME=200;CloudOS.AuthPane=SC.Pane.extend(COS.IsShowingSupport,CW.Animatability,{classNames:\"login-pane\",layout:{left:0,top:CloudOS.noticeController.get(\"cloudOSTopOffset\"),right:0,bottom:0,minWidth:COS.MIN_WIDTH,minHeight:COS.MIN_HEIGHT,zIndex:5,opacity:0},init:function(){arguments.callee.base.apply(this,arguments),CloudOS.set(\"authPane\",this),CW.notificationCenter.subscribeToNotification(\"icloudNoticeVisibilityChanged\",this,\"icloudNoticeVisibilityChanged\"),CW.notificationCenter.subscribeToNotification(\"focusAuthWidgetFrame\",this,\"focusAuthWidgetFrame\")},append:function(e,t){arguments.callee.base.apply(this,arguments),this.show(e,t)},remove:function(e){ret=arguments.callee.base,this.hide(function(){CloudOS.get(\"authPane\")===this&&CloudOS.set(\"authPane\",null),CloudOS.appleAuthWidgetController&&(CloudOS.appleAuthWidgetController.__contentView=null),e&&e(),ret.call(this)}.bind(this),!1,!0)},hideAuthPaneAndShowSpinner:function(e,t){this.hide(function(){CloudOS.workspaceController.showCentralSpinner(e)},t)},hideSpinnerAndShowAuthPane:function(e,t){CloudOS.workspaceController.hideCentralSpinner(function(){this.show(e,t)}.bind(this))},focusAuthWidgetFrame:function(){this.authWidgetFrame!==null&&(this.authWidgetFrame._iframeView.$().attr(\"tabindex\",-1),this.authWidgetFrame._iframeView.$().focus())},icloudNoticeVisibilityChanged:function(){var e=CloudOS.noticeController.get(\"cloudOSTopOffset\");this.adjust(\"top\",e),e?this.adjust(\"minHeight\",this.getPath(\"layout.minHeight\")-e):this.adjust(\"minHeight\"\n,COS.MIN_HEIGHT)},bannerHeightObserver:function(){this.adjust(\"top\",CloudOS.bannerManager.get(\"bannerHeight\"))}.observes(\"CloudOS.bannerManager.bannerHeight\"),childViews:[\"containerView\"],authWidgetFrame:null,containerView:SC.ContainerView.design(COS.IsShowingSupport,{nowShowingBinding:\"*pane.nowShowing\",authBadge:CloudOS.AuthBadge.design(),hsaBadge:CloudOS.HSABadge.design(),firstRunBadge:CloudOS.FirstRunBadge.design(),managedAppleIdBadge:CloudOS.ManagedAppleIdBadge.design()}),windowSizeDidChange:function(e,t){var n=arguments.callee.base.apply(this,arguments),r=this.get(\"authWidgetFrame\");return r&&!r.get(\"shouldRepairFlowBeFullScreen\")&&(r.adjust(\"width\",Math.min(640,Math.max(t.width,COS.MIN_WIDTH))),r.adjust(\"height\",Math.min(480,Math.max(t.height,COS.MIN_HEIGHT)))),n},show:function(e,t){this.get(\"isAnimating\")&&this.stopAnimation();if(this.get(\"isVisible\")&&this.getPath(\"layout.opacity\")===1){e&&e();return}this.set(\"isVisible\",!0);var n=function(t){e&&e()},r=this;t?n(this):this.animate(\"opacity\",1,ANIMATION_TIME_FRAME,{onstop:function(){n(this.view)}})},hide:function(e,t,n){this.get(\"isAnimating\")&&this.stopAnimation();if(!this.get(\"isVisible\")&&this.getPath(\"layout.opacity\")===0){e&&e();return}var r=function(t){t&&!n&&t.set(\"isVisible\",!1),e&&e(),t.adjust(\"opacity\",0)},i=this;t?r(this):this.animate(\"opacity\",0,ANIMATION_TIME_FRAME,{onstop:function(){r(this.view)}})}}),CloudOS.LOW_PRIORITY_BANNER=1,CloudOS.MEDIUM_PRIORITY_BANNER=2,CloudOS.HIGH_PRIORITY_BANNER=3,CloudOS.BANNER_TYPE_QUOTA_EXCEEDED=\"QuotaExceeded\",CloudOS.BANNER_TYPE_QUOTA_ALMOST_EXCEEDED=\"QuotaAlmostExceeded\"\n,CloudOS.CloudOSBannerView=SC.View.extend(CW.Animatability,{layout:{left:0,right:0,top:0,bottom:0,minWidth:COS.MIN_WIDTH},classNames:[\"cloudos-banner\"],title:null,description:null,escapeHTML:YES,localize:NO,optionalLink:null,iconType:\"warning\",acceptsFirstResponder:YES,ariaRole:\"banner\",priority:CloudOS.MEDIUM_PRIORITY_BANNER,displayProperties:\"title description iconType optionalLink\".w(),init:function(){arguments.callee.base.apply(this,arguments),CW.notificationCenter.subscribeToNotification(\"relocalize\",this,\"relocalize\")},render:function(e,t){var n=SC.RenderContext.escapeHTML,r=this.get(\"title\"),i=this.get(\"description\"),s=this.get(\"optionalLink\"),o=s?s.text:\"\",u=s?s.url:\"\",a=s?s.action:\"\",f=this.get(\"iconType\"),l=this.get(\"localize\");(!r||!i)&&SC.warn(\"Trying to create a banner without a title and a description.\"),l&&(r=r.loc(),i=i.loc(),o=o.loc(),u=u.loc()),this.get(\"escapeHTML\")&&(r=n(r),i=n(i),o=n(o),u=n(u));if(t)e=e.begin(\"div\").addClass(\"container\"),e.push('<div class=\"icon-container\"><div class=\"icon %@\"></div></div>'.fmt(f)),e=e.begin(\"div\").addClass(\"text\"),e.push('<span class=\"title\">'+r+\"</span>\"),e.push('<span class=\"description\">'+i+\"</span>\"),s&&(a?e=e.begin(\"a\").addClass(\"optional-link button\").push(o).end():e=e.begin(\"a\").addClass(\"optional-link\").attr(\"target\",\"_blank\").attr(\"href\",u).push(o).end()),e.end().end();else{e.$(\".icon\").resetClassNames().addClass([\"icon\",f]),e.$(\".title\").html(r),e.$(\".description\").html(i);var c=e.$(\".optional-link\")[0];if(s){var h=e.$(\".optional-link\");c?(h.html(o),u&&h.html(o).attr(\"href\",u)):(e.$(\".text\").append('<a class=\"optional-link\" target=\"_blank\">'+\no+\"</a>\"),u?h.attr(\"href\",u):a&&e.$(\".optional-link\").addClass(\"button\"))}else e.$(\".optional-link\").remove();this.invokeLast(\"resize\")}},resize:function(){if(!this.get(\"isVisibleInWindow\"))return;var e=this.$(\".container\").outerHeight(YES)>CloudOS.SINGLE_LINE_BANNER_HEIGHT?CloudOS.MULTI_LINE_BANNER_HEIGHT:CloudOS.SINGLE_LINE_BANNER_HEIGHT;CloudOS.bannerManager.setIfChanged(\"bannerHeight\",e)},paneWindowResized:function(){this.invokeLast(function(){this.resize()})}.observes(\"*pane.frame\"),didAppendToDocument:function(){this.resize();var e=CloudOS.bannerManager.get(\"isBannerVisible\");e&&this.get(\"layer\").focus()},willLoseFirstResponder:function(){var e=CloudOS.bannerManager.get(\"isBannerVisible\");e&&this.resignFirstResponder()},hide:function(){this.invokeLater(function(){this.set(\"isVisible\",NO)},CloudOS.BANNER_ANIMATION_DURATION)},show:function(){this.invokeLater(function(){this.set(\"isVisible\",YES)},CloudOS.BANNER_ANIMATION_DURATION)},relocalize:function(){this.get(\"localize\")&&this.notifyPropertyChange(\"title\")},click:function(e){if(this.get(\"isVisible\")&&$(e.target).closest(\"a\").length){var t=this.getPath(\"optionalLink.action\");t&&t()}},mouseDown:function(e){return this.get(\"isVisible\")&&$(e.target).closest(\"a\").length&&this.$(\".optional-link\").addClass(\"active\"),YES},mouseUp:function(e){return this.get(\"isVisible\")&&$(e.target).closest(\"a\").length&&this.$(\".optional-link\").removeClass(\"active\"),NO}}),CloudOS.EnvironmentSashPane=SC.Pane.extend(SC.RTLSupport,{layoutRecipe:{bottom:0,width:124,height:124,end:0},classNames:\"environment-sash\",displayProperties:[\"environment\"],childViews\n:[\"banner\"],environmentBinding:\"COS.authController.environment\",currentAppBinding:\"CloudOS.appController.currentApp\",isRepairStartedBinding:\"CloudOS.appleAuthWidgetController.isRepairStarted\",isVisible:function(e,t){var n=this._isVisible;if(t!==undefined)n=this._isVisible=t;else if(SC.none(n)){var r=this.get(\"currentApp\");CloudOSBootstrap.isOnSupportedMobile&&!r?n=!this.get(\"isRepairStarted\"):n=!r||CloudOSBootstrap.isCloudOSMini}return n}.property(\"isRepairStarted\",\"currentApp\"),banner:SC.LabelView.extend(SC.AutoResize,SC.RTLSupport,{shouldResizeWidth:NO,shouldAutoFitText:YES,maxFontSize:14,minFontSize:8,environmentBinding:\".owner.environment\",layoutRecipe:{top:58,width:174,start:-31},value:function(){return this.get(\"environment\")+\" - \"+SC.masteringNumber}.property(\"environment\"),mouseDown:function(){return YES},mouseUp:function(){return this.parentView.remove(),YES},touchStart:function(){return YES},touchEnd:function(){this.mouseUp()}})}),CloudOS.SectionedTermsView=SC.View.extend({childViews:[\"titleListView\",\"contentView\"],classNames:[\"sectioned-terms-view\"],sections:null,selectedSection:null,titleListView:SC.View.extend({childViews:[\"headerView\",\"listView\"],isVisibleBinding:SC.Binding.oneWay(\".parentView.selectedSection\").bool().not(),headerView:SC.View.design({useStaticLayout:!0,classNames:[\"sectioned-terms-title-header\"],childViews:[\"title\",\"caption\"],title:SC.LabelView.extend({useStaticLayout:!0,localize:YES,value:\"TermsAndConditions.Content.Label.Important\"}),caption:SC.LabelView.extend({useStaticLayout:!0,localize:YES,valueBinding:SC.Binding.transform(function(e,t){return e?\"TermsAndConditions.China.Content.Label.PleaseRead\"\n:\"TermsAndConditions.Content.Label.PleaseRead\"}).from(\"CloudOS.tosController.isCountryChina\")})}),listView:SC.View.extend({displayProperties:[\"sections\"],useStaticLayout:!0,classNames:[\"sectioned-terms-title-list\"],sectionsBinding:SC.Binding.oneWay(\".parentView.parentView.sections\"),_updateChildViews:function(){this.removeAllChildren();var e=this.get(\"sections\");if(e)for(i=0,len=e.length;i<len;i++){var t=this.createChildView(CloudOS.SectionedTermsTitleView,{section:e[i]});this.appendChild(t)}}.observes(\"*sections\",\"*sections.[]\")})}),contentView:SC.LabelView.extend({classNames:[\"sectioned-terms-content\"],escapeHTML:NO,isTextSelectable:YES,selectedSectionBinding:SC.Binding.oneWay(\".parentView.selectedSection\"),isVisibleBinding:SC.Binding.oneWay(\".selectedSection\").bool(),valueBinding:SC.Binding.oneWay(\"*selectedSection.content\")}),_sectionsContentDidChange:function(){this.notifyPropertyChange(\"sections\")}.observes(\"*sections\",\"*sections.[]\")}),CloudOS.SectionedTermsTitleView=SC.LabelView.extend({useStaticLayout:YES,classNames:[\"sectioned-terms-title-view\"],section:null,valueBinding:SC.Binding.oneWay(\"*section.title\"),didCreateLayer:function(){SC.Event.add(this.get(\"layer\"),\"ontouchstart\"in window?\"touchend\":\"click\",this,\"_didClick\")},willDestroyLayer:function(){SC.Event.remove(this.get(\"layer\"),\"ontouchstart\"in window?\"touchend\":\"click\",this,\"_didClick\")},_didClick:function(){this.setPath(\"parentView.parentView.parentView.selectedSection\",this.get(\"section\"))}}),CloudOS.TermsAndConditionsAcceptanceConfirmationPane=SC.Pane.extend({classNames:[\"terms-and-conditions-acceptance-pane\"\n],layout:{left:0,top:CloudOS.noticeController.get(\"cloudOSTopOffset\"),right:0,bottom:0,minWidth:COS.MIN_WIDTH,minHeight:COS.MIN_HEIGHT,zIndex:5},childViews:[\"title\",\"description\"],defaultResponder:CloudOS.statechart,childViews:[\"container\"],container:SC.ContainerView.design({classNames:[\"badge-container-view\"],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(),contentView:SC.View.design({classNames:[\"generic-badge-view\"],childViews:[\"loadedView\"],loadedView:SC.View.design(SC.StaticLayout,{useStaticLayout:!0,classNames:[\"generic-badge-loaded-view\"],childViews:[\"title\",\"description\",\"buttonsView\"],title:SC.LabelView.design(SC.StaticLayout,{classNames:[\"badge-title\"],useStaticLayout:!0,controlSize:SC.HUGE_CONTROL_SIZE,value:\"Terms.Acceptance.Title\".loc()}),description:SC.LabelView.design(SC.StaticLayout,{classNames:[\"badge-description\"],useStaticLayout:!0,controlSize:SC.LARGE_CONTROL_SIZE,value:function(){var e=CloudOS.authController.get(\"userHasAcceptedTerms\"),t=URI(window.location.href).hash().split(\"/\").lastObject()===\"gc\";return e?t?ret=\"Terms.GoldenGate.Acceptance.Description\".loc():ret=\"Terms.Acceptance.Description\".loc():t?ret=\"Terms.GoldenGate.Acceptance.UpToDate.Description\".loc():ret=\"Terms.Acceptance.UpToDate.Description\".loc(),ret}.property(\"CloudOS.authController.userHasAcceptedTerms\")}),buttonsView:SC.View.design(SC.StaticLayout,{classNames:[\"badge-buttons\"],useStaticLayout:!0,childViews:CloudOSBootstrap.isOnSupportedMobile?\"signOutButton\".w():\"okButton\"\n.w(),signOutButton:SC.ButtonView.extend({themeName:\"borderless\",classNames:[\"badge-button\"],isVisible:CloudOSBootstrap.isOnSupportedMobile,useStaticLayout:YES,title:\"Terms.Acceptance.SignOut\".loc(),action:function(){CloudOS.statechart.sendAction(\"signOut\")}}),okButton:SC.ButtonView.extend({themeName:\"borderless\",classNames:[\"badge-button\"],isVisible:!CloudOSBootstrap.isOnSupportedMobile,useStaticLayout:YES,title:\"Button.OK\".loc(),action:function(){this.get(\"pane\").remove(),CloudOS.statechart.gotoState(\"active.springboard\")}})})})})})}),CloudOS.TermsInterstitialView=SC.View.extend({classNames:[\"sectioned-terms-view\"],childViews:[\"innerContainer\"],innerContainer:SC.View.design({useStaticLayout:!0,classNames:[\"interstitial-container\"],childViews:[\"logo\",\"para1\",\"para2\"],logo:SC.ImageView.design({useStaticLayout:!0,classNames:[\"icloud-logo-container\"],value:\"icloud-logo\"}),para1:SC.LabelView.design({classNames:[\"para1\"],useStaticLayout:!0,escapeHTML:!1,value:\"TermsAndConditions.Interstitial.Paragraph1\".loc()}),para2:SC.LabelView.design({classNames:[\"para2\"],useStaticLayout:!0,escapeHTML:!1,value:\"TermsAndConditions.Interstitial.Paragraph2\".loc()})})}),CloudOS.TOSContentButtonView=SC.ButtonView.extend(SC.AutoResize,{useStaticLayout:!0,themeName:\"borderless\",controlSize:SC.LARGE_CONTROL_SIZE,targetBinding:SC.Binding.oneWay(\".parentView.parentView.controller\")}),CloudOS.TOSContent=SC.View.extend({classNames:[\"tos-content\"],tosSectionsBinding:SC.Binding.oneWay(\".controller.sections\"),selectedSectionBinding:SC.Binding.from(\".controller.selectedSection\"),showDownloadButtonInContentContainer\n:NO,isShowingInterstitialPageBinding:SC.Binding.from(\".controller.isShowingInterstitialPage\"),childViews:[\"titleView\",\"contentContainer\",\"buttonBar\"],titleView:SC.LabelView.design(SC.AutoResize,{useStaticLayout:!0,shouldAutoResize:NO,shouldAutoFitText:YES,maxFontSize:28,minFontSize:18,autoResizePadding:0,autoFitTextFramePadding:{width:1,height:0},isShowingInterstitialPageBinding:\".parentView.isShowingInterstitialPage\",classNames:[\"title\"],localize:YES,isCountryChinaBinding:\"CloudOS.tosController.isCountryChina\",value:function(){var e=this.get(\"isShowingInterstitialPage\"),t,n=this.getPath(\"parentView.selectedSection.versionKey\")===\"acceptedICloudTerms\",r=this.get(\"isCountryChina\");return e?t=\"TermsAndConditions.Interstitial.Title\":n&&r?t=\"TermsAndConditions.China.TermsSection.Title\":t=\"TermsAndConditions.Title\",t}.property(\"isShowingInterstitialPage\",\".parentView.selectedSection\",\"isCountryChina\")}),contentContainer:SC.View.design({classNames:[\"content-container\"],layout:{top:70,bottom:60},childViews:[\"interstitialView\",\"termsView\",\"downloadButton\"],interstitialView:CloudOS.TermsInterstitialView.design({isVisibleBinding:SC.Binding.oneWay(\".parentView.parentView.isShowingInterstitialPage\")}),termsView:CloudOS.SectionedTermsView.design({isVisibleBinding:SC.Binding.oneWay(\".parentView.parentView.isShowingInterstitialPage\").not(),layout:function(){return{bottom:this.getPath(\"parentView.parentView.showDownloadButtonInContentContainer\")?30:0}}.property(\"parentView.parentView.showDownloadButtonInContentContainer\"),sectionsBinding:SC.Binding.oneWay(\".parentView.parentView.tosSections\"\n),selectedSectionBinding:SC.Binding.from(\".parentView.parentView.selectedSection\")}),downloadButton:CloudOS.TOSContentButtonView.design(SC.RTLSupport,{useStaticLayout:NO,layoutRecipe:{start:20,bottom:0,height:50},controlSize:SC.REGULAR_CONTROL_SIZE,isVisibleBinding:SC.Binding.oneWay(\".parentView.parentView.showDownloadButtonInContentContainer\"),title:\"TermsAndConditions.Button.Download\",localize:YES,action:\"handleDownload\"})}),buttonBar:SC.View.design({classNames:[\"button-bar\"],classNameBindings:[\"isDownloadButtonVisible:has-left-aligned-button\",\"isShowingInterstitialPage:has-only-two-buttons\"],childViews:[\"disagreeButton\",\"agreeButton\",\"downloadButton\",\"backButton\",\"continueButton\"],layout:{bottom:0,height:60,right:5,left:5},align:SC.ALIGN_RIGHT,sectionIsSelectedBinding:SC.Binding.oneWay(\".parentView.selectedSection\").bool(),isShowingInterstitialPageBinding:SC.Binding.oneWay(\".parentView.isShowingInterstitialPage\"),isDownloadButtonVisible:function(){return!this.get(\"sectionIsSelected\")&&!this.getPath(\"parentView.showDownloadButtonInContentContainer\")&&!this.get(\"isShowingInterstitialPage\")}.property(\"sectionIsSelected\",\"parentView.showDownloadButtonInContentContainer\",\"isShowingInterstitialPage\"),downloadButton:CloudOS.TOSContentButtonView.design({isVisibleBinding:SC.Binding.oneWay(\".parentView.isDownloadButtonVisible\"),title:\"TermsAndConditions.Button.Download\",localize:YES,action:\"handleDownload\",measuredSizeChanged:function(){this.invokeLater(function(){var e=this.get(\"parentView\").$().width(),t=this.$().outerWidth(YES),n=this.getPath(\"parentView.disagreeButton\").$().outerWidth\n(YES),r=this.getPath(\"parentView.agreeButton\").$().outerWidth(YES),i=t+n+r>e;this.setPath(\"parentView.parentView.showDownloadButtonInContentContainer\",i)},100)}.observes(\"measuredSize\",\"SC.device.orientation\")}),disagreeButton:CloudOS.TOSContentButtonView.design({isVisible:function(){var e=this.get(\"parentView\");return!e.get(\"sectionIsSelected\")&&!e.get(\"isShowingInterstitialPage\")}.property(\"parentView.sectionIsSelected\",\"parentView.isShowingInterstitialPage\"),title:\"Button.Disagree\",localize:YES,action:\"handleDisagree\"}),agreeButton:CloudOS.TOSContentButtonView.design({isVisible:function(){var e=this.get(\"parentView\");return!e.get(\"sectionIsSelected\")&&!e.get(\"isShowingInterstitialPage\")}.property(\"parentView.sectionIsSelected\",\"parentView.isShowingInterstitialPage\"),classNames:[\"default-button\"],title:\"Button.Agree\",localize:YES,action:\"handleAgree\"}),backButton:CloudOS.TOSContentButtonView.design({isVisible:function(){var e=this.get(\"parentView\");return e.get(\"sectionIsSelected\")&&!e.get(\"isShowingInterstitialPage\")}.property(\"parentView.sectionIsSelected\",\"parentView.isShowingInterstitialPage\"),title:\"Button.GoBack\",localize:YES,action:\"handleBack\"}),continueButton:CloudOS.TOSContentButtonView.design({isVisibleBinding:SC.Binding.oneWay(\".parentView.isShowingInterstitialPage\"),title:\"Button.Continue\",localize:YES,action:\"handleContinueToTerms\"})})});";