Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/pam.js
//{"name":"pam","version":"1.2.146","created":"2021-09-06T10:54:47.935Z"}
import t from"./ractive.js";import{Router as e}from"./libs.js";import{napiTracker as s,serviceRequest as n,eventer as r,windowApi as a,burgerTracker as o}from"./napi.js";import i from"./napiAdapter.js";import{productModel as l,ipmService as c,settingsService as d,soundService as p}from"./napiExtensions.js";import{nls as u,moment as h}from"./i18n.js";var g=".pam_wizzard {\n  display: block;\n  text-align: center;\n  padding: 0;\n}\n.pam_wizzard__icon {\n  margin: 0 auto;\n  display: block;\n  font-size: calc(100px + 10vh);\n}\n.pam_wizzard li {\n  width: 30%;\n  display: inline-block;\n  margin: 0 1%;\n  vertical-align: top;\n}\n.pam_flex {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-around;\n  align-content: center;\n}\n.pam_flex.pam_-check {\n  height: 100%;\n}\n.pam_title {\n  max-width: 540px;\n  margin: 0 auto;\n}\n.pam_description {\n  max-width: 520px;\n  margin: auto;\n  margin-top: 14px;\n  opacity: 0.7;\n}\n.pam_onboarding_screen {\n  min-width: 600px;\n  width: 100%;\n  text-align: center;\n}\n.pam_onboarding_carousel {\n  position: relative;\n  height: 350px;\n  margin-bottom: 30px;\n}\n.pam_carousel_padding {\n  padding-top: 45px;\n}\n.pam-onboarding-modal .modal {\n  width: 600px;\n}\n.pam-onboarding-modal-button {\n  margin-bottom: 20px;\n}\n.pam_wizzard_icon_rectangle {\n  margin-top: -30px;\n  margin-bottom: -30px;\n  font-size: calc(160px + 10vh);\n}\n.pam_create-pwd {\n  position: relative;\n  width: 100%;\n}\n.pam .pam_create-pwd__btn {\n  min-width: 300px;\n}\n.pam_syncing {\n  position: relative;\n  width: 100%;\n}\n.pam_onboarding__result {\n  min-height: 30px;\n}\n.pam_issues__key {\n  width: 64px;\n  height: 64px;\n  background: #2d364c;\n  border-radius: 50%;\n  position: absolute;\n  left: 0;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n[dir='rtl'] .pam_issues__key {\n  left: auto;\n  right: 0;\n}\n.pam_issues__number {\n  position: absolute;\n  top: -10px;\n  right: -2px;\n  width: 32px;\n  height: 32px;\n  border-radius: 50%;\n  background: #d0011b;\n  color: #fff;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n[dir='rtl'] .pam_issues__number {\n  right: auto;\n  left: -2px;\n}\n.pam_issues {\n  width: 490px;\n  padding: 0 0 0 85px;\n  margin: 0 auto;\n  position: relative;\n}\n[dir='rtl'] .pam_issues {\n  padding: 0 85px 0 0;\n}\n.pam_issues strong {\n  font-weight: 700;\n  color: #d0021b;\n}\n.pam_issues__promo {\n  position: relative;\n  max-width: 574px;\n  padding: 25px;\n  border: 1px solid #efe0ad;\n  border-radius: 20px;\n  background: #fffcea;\n  font-size: 14px;\n  color: #4e4e4e;\n  margin: 15px auto;\n}\n.pam_issues__promo:before {\n  display: block;\n  content: '';\n  position: absolute;\n  top: -18px;\n  right: 84px;\n  border-bottom: 18px solid #fffcea;\n  border-left: 18px solid transparent;\n  width: 0;\n  height: 0;\n  z-index: 1;\n}\n.pam_issues__promo:after {\n  display: block;\n  content: '';\n  position: absolute;\n  top: -21px;\n  right: 83px;\n  border-bottom: 20px solid #efe0ad;\n  border-left: 20px solid transparent;\n  width: 0;\n  height: 0;\n}\n.pam_issues__promo h3 {\n  font-size: 16px;\n  color: #ff7800;\n  margin-bottom: 10px;\n}\n.pam_pendingdeletes {\n  flex-direction: row;\n}\n.pam_pendingdeletes__cta {\n  min-height: 80px;\n}\n.pam_install-extension {\n  display: flex;\n  align-items: center;\n  height: 23vh;\n}\n.pam_install-extension .pam_browser {\n  font-size: 16px;\n}\n.pam_install-extension .pam_browser .pam_browser_icon {\n  margin-right: 15px;\n  font-size: 60px;\n}\n.pam_install-extension .pam_browser .pam_browser_label {\n  font-weight: bold;\n}\n[dir='rtl'] .pam_install-extension .pam_browser .pam_browser_icon {\n  margin-left: 15px;\n  margin-right: 0;\n}\n#import-ok-state-icon {\n  width: 150px;\n  height: 150px;\n}\n#import-ok-state-icon path {\n  stroke-width: 5px;\n  fill: none;\n}\n.pam_importedpasswords {\n  font-weight: 600;\n}\n.longgrid {\n  display: flex;\n  position: relative;\n  flex-direction: row;\n  margin-left: -1.6%;\n  margin-right: -1.6%;\n}\n.longgrid .filtered_out {\n  display: none;\n}\n.longgrid__1,\n.longgrid__2,\n.longgrid__3,\n.longgrid__4,\n.longgrid__5,\n.longgrid__6 {\n  margin: 0 1.6%;\n  position: relative;\n}\n.longgrid__1.-margins,\n.longgrid__2.-margins,\n.longgrid__3.-margins,\n.longgrid__4.-margins,\n.longgrid__5.-margins,\n.longgrid__6.-margins {\n  margin-bottom: 1.6%;\n  margin-top: 1.6%;\n}\n.longgrid__1 {\n  width: 12.9%;\n  max-width: 12.9%;\n  min-width: 12.9%;\n  flex-grow: 1;\n}\n.longgrid__2 {\n  width: 30.1%;\n  max-width: 30.1%;\n  min-width: 30.1%;\n  flex-grow: 2;\n}\n.longgrid__3 {\n  width: 47.3%;\n  max-width: 47.3%;\n  min-width: 47.3%;\n  flex-grow: 3;\n}\n.longgrid__4 {\n  width: 64.5%;\n  max-width: 64.5%;\n  min-width: 64.5%;\n  flex-grow: 4;\n}\n.longgrid__5 {\n  width: 81.7%;\n  max-width: 81.7%;\n  min-width: 81.7%;\n  flex-grow: 5;\n}\n.longgrid__6 {\n  width: 98.9%;\n  max-width: 98.9%;\n  min-width: 98.9%;\n  flex-grow: 6;\n}\n.longgrid.-wrap {\n  flex-wrap: wrap;\n}\n[dir=rtl] .longgrid.-wrap {\n  flex-wrap: wrap;\n}\n.pam_login_modal_form,\n.pam_master_password_form,\n.pam_account_password_form {\n  width: 380px;\n  margin: auto;\n}\n.pam_login_modal_form .pam_settings_input_reveal_secret_cont,\n.pam_master_password_form .pam_settings_input_reveal_secret_cont,\n.pam_account_password_form .pam_settings_input_reveal_secret_cont {\n  position: relative;\n}\n.pam_login_modal_form .input__row,\n.pam_master_password_form .input__row,\n.pam_account_password_form .input__row {\n  height: 60px;\n}\n.visible {\n  display: block;\n}\n.hidden {\n  display: none;\n}\nstrong {\n  font-weight: 700;\n}\n.pam_filter {\n  text-align: right;\n  top: 60px;\n  right: 30px;\n  z-index: 4;\n  position: absolute;\n}\n.pam_filter.pam_-info {\n  display: none;\n}\n.pam_filter__ok {\n  padding: 6px 0;\n}\n.pam_filter__icon {\n  font-size: 1.3em;\n  margin: -0.2em 5px 0 0;\n}\n.pam_header.pam_top-menu-header {\n  height: 162px;\n}\n.pam_list {\n  margin-top: 52px;\n}\n.pam_list .longgrid .-add .cube__label:before {\n  content: '+';\n  padding-right: 0.5em;\n  font-size: 1.1em;\n}\n.pam_item .cube__icon {\n  opacity: 1;\n}\n.pam_ul:before,\n.pam_ul:after {\n  content: '';\n  display: table;\n  clear: both;\n}\n.pam .pam_item {\n  height: 80px;\n  min-height: 80px;\n  min-width: 0;\n}\n.pam .pam_item .pam_state_badge {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  transition: all 0.15s ease-in-out;\n}\n.pam_tip__container span {\n  display: inline-block;\n}\n.pam_tip__container img,\n.pam_tip__container span {\n  vertical-align: middle;\n}\n.pam_single_line {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.pam_hidden_href:hover {\n  text-decoration: underline;\n  cursor: pointer;\n}\n.pam_panel_container {\n  display: flex;\n}\n.pam_panel_button {\n  white-space: nowrap;\n}\n.pam_panel_text,\n.pam_panel_ipm {\n  width: 100%;\n  height: 72px;\n  position: relative;\n  margin: 1% 0 18px;\n}\n.pam .pam_score {\n  opacity: 1;\n  padding-left: 8px;\n  padding-right: 8px;\n  margin-right: 8px;\n  margin-left: 3px;\n  text-transform: uppercase;\n  font-weight: 700;\n}\n.pam_colors {\n  display: inline-block;\n  vertical-align: middle;\n}\n.pam_color {\n  width: 100%;\n  height: 100%;\n  border-radius: 100px;\n  background-color: #5591f7;\n  display: inline-block;\n  text-align: center;\n}\n.pam_color__text {\n  fill: #fff;\n  font-family: inherit;\n  font-size: 0.5em;\n  text-anchor: middle;\n  text-shadow: 0 1px 0 rgba(0,0,0,0.4);\n}\n.pam_card_icon {\n  width: 50px;\n  height: 50px;\n  display: inline-block;\n  text-align: center;\n  vertical-align: middle;\n  font-size: 50px;\n}\n.-preview {\n  display: inline-block;\n  width: 50px;\n  height: 50px;\n  vertical-align: middle;\n  font-size: 40px;\n}\n.-preview .pam_note {\n  line-height: 50px;\n}\n.avs .pam_icon {\n  border-radius: 50%;\n  overflow: hidden;\n}\n.avs .pam_icon_image {\n  width: 100%;\n  height: 100%;\n  margin-top: -50px;\n  opacity: 0;\n  transition: opacity 0.2s;\n  border-radius: 0;\n}\n.avs .pam_icon_image.loaded {\n  opacity: 1;\n}\n.avs .pam_icon_image.notransition {\n  transition: none;\n}\n.avs .pam_icon_image.nomargin {\n  margin-top: 0;\n}\ninput.pam_color {\n  width: 24px;\n  height: 24px;\n  border: solid 2px #fff;\n  margin: 0 5px 0 -2px;\n  cursor: pointer;\n  -webkit-appearance: none;\n}\ninput.pam_color:focus,\ninput.pam_color:checked {\n  border-color: #2c3156;\n  outline: 0;\n}\n.pam_edit__title {\n  display: inline-block;\n  vertical-align: middle;\n  margin-left: 10px;\n  width: 365px;\n}\n.avs .modal {\n  max-height: 100%;\n}\n.avs .modal.pam_form {\n  height: 70%;\n}\n.avs .nui_main.nui_main_standalone .modal.pam_form {\n  height: 100%;\n}\n.avs .modal__scroll {\n  padding-top: 0px;\n  padding-bottom: 0px;\n}\n.pam_detail_modal {\n  padding: 0 !important;\n}\n.pam_detail_modal .modal__wrap {\n  width: initial !important;\n  max-height: 90% !important;\n}\n.pam_detail_modal .modal__header,\n.pam_detail_modal .modal__footer,\n.pam_detail_modal .modal {\n  min-width: initial;\n  width: 500px;\n}\n.pam_detail_modal .pam_form {\n  text-align: initial;\n  width: 500px;\n}\n.pam_detail_modal .btn__split {\n  white-space: nowrap;\n}\n.pam_detail_modal .btn__split .btn {\n  border-radius: 0;\n}\n.pam .pam_label {\n  display: block;\n  padding: 20px 0 0;\n}\n.pam .pam_label__sub {\n  padding: 5px 0 0;\n}\n.pam_value {\n  -webkit-user-select: text;\n  min-height: 20px;\n  font-size: 16px;\n}\n.pam_value:read-only {\n  opacity: 1;\n  cursor: default;\n  border: 0;\n  border-left-width: 0;\n  box-shadow: none;\n  padding: 4px 0;\n  height: auto;\n}\np.pam_value:read-only {\n  padding: 0;\n}\n.pam_input_actions_row {\n  display: flex;\n  justify-content: space-between;\n}\n.pam_pwd {\n  float: left;\n  flex-grow: 3;\n  position: relative;\n  z-index: 2;\n}\n.pam_pwd:read-only {\n  margin-right: 10px;\n}\n.pam_pwd__wrap {\n  display: flex;\n  position: relative;\n  margin-top: -2px;\n}\n.pam_pwd__wrap.pam_-edit {\n  margin-top: 0;\n}\n.pam_pwd__twin {\n  position: absolute;\n  z-index: 1;\n  bottom: 0;\n  left: 0;\n}\n.pam_copied {\n  pointer-events: none;\n  overflow: hidden;\n  max-width: 0;\n  min-width: 0;\n  padding-left: 0;\n  padding-right: 0;\n  border-right: none !important;\n  transition: width 0.5s, max-width 0.5s, min-width 0.5s, padding-left 0.5s, padding-right 0.5s;\n  position: absolute;\n  right: 100%;\n}\n.pam_copied_open {\n  padding-left: 10;\n  padding-right: 10;\n  max-width: 160px;\n}\n.pam_history {\n  position: absolute;\n  top: 18px;\n  right: 0;\n}\n.pam_note {\n  color: #fff;\n}\n.pam .pam_textarea {\n  height: 150px;\n}\n.pam .pam_textarea:read-only {\n  resize: none;\n  height: 46px;\n}\n.pam_round-corner {\n  border-radius: inherit;\n}\n.pam_row {\n  position: relative;\n  width: 100%;\n  min-height: 36px;\n}\n.pam_show {\n  position: absolute;\n  top: 4px;\n  left: 50%;\n  margin-left: 118px;\n}\n.pam_hints {\n  position: absolute;\n  left: 52%;\n  margin-left: 150px;\n  top: 0;\n  bottom: auto;\n  right: 0;\n  color: #fff;\n  background-color: rgba(0,0,0,0.95);\n  text-align: initial;\n  padding: 10px 12px;\n  border-radius: 3px;\n}\n.pam .pam_lock {\n  bottom: auto;\n  top: 3px !important;\n}\n.pam_section_title {\n  display: none;\n}\n.pam_no-accounts {\n  font-size: 27vh;\n  margin: 0 auto 3vh;\n  display: block;\n}\n.pam_progress {\n  position: relative;\n  height: 48px;\n  margin-bottom: 10px;\n  margin-top: 5px;\n  color: #2d364c;\n}\n.pam_progress progress[value] {\n  position: absolute;\n  appearance: none;\n  background: #fff;\n  width: 100%;\n  height: 48px;\n}\n.pam_progress progress[value]::-webkit-progress-bar {\n  border: solid 3px #787c9f;\n  background-color: #bbbdce;\n}\n.pam_progress progress[value]::-webkit-progress-value {\n  background-color: #eeeff4;\n}\n.pam_progress__spinner {\n  margin-right: 12px;\n  margin-top: -2px;\n  border-left-color: rgba(120,124,159,0.7);\n  border-bottom-color: rgba(120,124,159,0.7);\n  border-right-color: rgba(120,124,159,0.7);\n}\n.pam_progress__percentage {\n  position: absolute;\n  top: 13px;\n  left: 20px;\n}\n.pam_progress__count {\n  position: absolute;\n  top: 13px;\n  right: 20px;\n}\n[dir=rtl] .pam_login_modal_form .icon,\n[dir=rtl] .pam_master_password_form .icon,\n[dir=rtl] .pam_account_password_form .icon {\n  padding-right: 4px;\n}\n[dir=rtl] .pam .pam_item .pam_state_badge {\n  box-shadow: initial;\n}\n[dir=rtl] .pam_detail_modal .btn__split .btn {\n  border-radius: 0;\n  border: 1px solid;\n}\n[dir=rtl] .pam_detail_modal .btn__split .icon {\n  margin: 0;\n}\n[dir=rtl] .pam_detail_modal .btn__split .pam_copied_open {\n  border: 1px solid !important;\n}\n[dir=rtl] .pam_filter {\n  text-align: left;\n  left: 30px;\n  right: auto;\n}\n[dir=rtl] .pam_filter__icon {\n  margin-right: 0;\n  margin-left: 5px;\n}\n[dir=rtl] .pam_login {\n  padding-right: 8px;\n  padding-left: 50px;\n}\n[dir=rtl] .pam_show {\n  right: 50%;\n  left: auto;\n  margin-right: 118px;\n  margin-left: 0;\n}\n[dir=rtl] .pam_hints {\n  right: 52%;\n  margin-right: 150px;\n  margin-left: 0;\n  left: 0;\n}\n[dir=rtl] .pam_edit__title {\n  margin-left: initial;\n  margin-right: 10px;\n}\n[dir=rtl] .pam_analyze {\n  right: auto;\n  left: 15px;\n}\n[dir=rtl] .pam_copied {\n  right: auto;\n  left: 100%;\n}\n.pam_error_label {\n  width: 100%;\n  height: 2em;\n}\n.pam_error_label.-hidden {\n  display: none;\n}\n.pam_error_label p {\n  border-radius: 2px;\n}\n.pam_sensitive_modal .modal__wrap {\n  flex-grow: 1;\n  max-height: 100% !important;\n}\n";const m={onboarding:class{static get origin(){return"Direct"}static viewIntro(){this.trackUserInteraction("Intro","View")}static clickExtensionInstall(t){this.track("Click extension install",t)}static skipExtensionInstall(t){this.track("Skip extension install",t?"Default browser":"Non-default browser")}static extensionInstalled(t){this.track("Extension installed",t?"Default browser":"Non-default browser")}static importStarted(){this.track("Import started")}static importFinsihed(){this.track("Import finished")}static importCancelled(){this.track("Import cancelled")}static showPendingBrowserDelete(){this.track("Pending browser delete","Show in onboarding")}static resolvedPendingBrowserDelete(){this.track("Pending browser delete","Request resolved")}static skipPendingBrowserDelete(){this.track("Pending browser delete","Request skipped")}static track(t,e){s.event("Passwords-Onboarding",t,e||"")}static trackUserInteraction(t,e){n("app.pam.TrackActivityToBurger",{category:"User Interaction",action:"Onboarding / "+t,label:e,origin:this.origin})}},panel:class{static showPendingBrowserDelete(){this.track("Pending browser delete","Show in list")}static resolvedPendingBrowserDelete(){this.track("Pending browser delete","Request resolved")}static clickExtensionInstall(t){this.track("Click extension install",t)}static extensionInstalled(t){this.track("Extension installed",t?"Default browser":"Non-default browser")}static track(t,e){s.event("Passwords-Panel",t,e||"")}},vault:class{static lockedManually(){this.track("Locked","Manually")}static track(t,e){s.event("Passwords-Vault",t,e||"")}},account:class{static createNew(){this.track("Create new")}static edited(){this.track("Edited")}static deleted(){this.track("Deleted")}static passwordCopied(){this.track("Password copied")}static passwordRevealed(){this.track("Password revealed")}static websiteLinkClicked(){this.track("Website link clicked")}static track(t,e){s.event("Passwords-Account",t,e||"")}},secureNote:class{static createNew(){this.track("Create new")}static edited(){this.track("Edited")}static deleted(){this.track("Deleted")}static track(t,e){s.event("Passwords-Secure note",t,e||"")}},creditCard:class{static viewDetail(){n("app.pam.TrackActivityToBurger",{category:"User Interaction",action:"View detail",label:"Card"})}static createNew(){this.track("Create new")}static edited(){this.track("Edited")}static deleted(){this.track("Deleted")}static track(t,e){s.event("Passwords-Credit Card",t,e||"")}},view:class{static changed(t){let e="";switch(t){case"passwordGuardian":e="PasswordGuardian";break;case"accounts":e="Logins";break;case"creditCards":e="CreditCards";break;case"secureNotes":e="SecureNotes"}s.view("pam/"+e)}}},f=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"Button",a:{cssCls:[{t:2,r:"cssCls"}],attr:[{t:2,r:"attr"}],href:[{t:2,r:"href"}],wraped:[{t:2,r:"wraped"}],disabled:[{t:2,r:"disabled"}]},v:{domClick:"click"},f:[{t:16}]}]},data:function(){return{attr:null,cssCls:"",disabled:!1,href:null,wraped:!1,eventDelay:300}},onconfig(){this.container&&this.container.component.name.match(/^(ButtonDrop|ButtonDropSplit)$/)&&this.set("wraped",!0),this.on("click",(t=>{this.set("disabled",!0),t.enableButton=()=>this.set("disabled",!1),this.fire("domClick",t)}))}}),_=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"pam_onboarding_screen"},f:[{t:7,e:"div",a:{class:"pam_onboarding_carousel"},f:[{t:7,e:"div",a:{class:"nui_carousel__flex pam_carousel_padding"},f:[{t:7,e:"SvgIcon",a:{name:"pam-onboarding-tour-4",cssCls:"pam_wizzard__icon"}}," ",{t:7,e:"div",f:[{t:7,e:"h2",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.intro.tour4.title")'}}]}," ",{t:7,e:"p",a:{class:"pam_description"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.intro.tour4.description")'}}]}]}]}]}," ",{t:7,e:"ApiButton",a:{cssCls:"-large pam-onboarding-modal-button"},v:{domClick:"start"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.intro.start")'}}]}]}]},components:{ApiButton:f}});const w={chrome:{stringId:"passwords.install.chrome",cssClass:"chrome",extensionSupported:!0},firefox:{stringId:"passwords.install.firefox",cssClass:"firefox",extensionSupported:!0},"safe zone":{stringId:"passwords.install.safeZone",cssClass:"safezone",extensionSupported:!1},"safe zone browser":{stringId:"passwords.install.safeZone",cssClass:"safezone",extensionSupported:!1},edge:{stringId:"passwords.install.edge",cssClass:"edge",extensionSupported:!1},msedge:{stringId:"passwords.install.edge",cssClass:"edge",extensionSupported:!0},asb:{stringId:"passwords.install.asb",cssClass:"safezone",extensionSupported:!0}};function v(e){return w[e]&&w[e].stringId?t.localization.nls(w[e].stringId):e.substr(0,1).toLocaleUpperCase()+e.substr(1)}function y(t){var e=Object.keys(w).filter((t=>w[t].extensionSupported));return t.filter((t=>e.includes(t.browser))).filter((t=>!t.extension)).sort(((t,s)=>t.default?-1:s.default?1:e.indexOf(t.browser)<e.indexOf(s.browser)?-1:1))}const b=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"pam_browser"},f:[{t:7,e:"SvgIcon",a:{name:[{t:2,r:"cssClass"}],cssCls:"pam_browser_icon"}}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_browser_label"},f:[{t:2,x:{r:["nls","stringId"],s:"_0(_1)"}}]}],n:50,r:"stringId"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"pam_browser_label"},f:[{t:2,r:"name"}]}],r:"stringId"}]}]},css:".pam_browser {\n  display: inline-flex;\n  margin-right: 20px;\n  align-items: center;\n  flex-direction: row;\n  font-weight: 700;\n  font-size: 14px;\n}\n.pam_browser .pam_browser_icon {\n  margin-right: 7px;\n  font-size: 30px;\n}\n.pam_browser .pam_browser_label {\n  font-weight: bold;\n}\n[dir=rtl] .pam_browser {\n  margin-right: 0;\n  margin-left: 20px;\n}\n[dir=rtl] .pam_browser .pam_browser_icon {\n  margin-right: 0;\n  margin-left: 7px;\n}\n",data:()=>({browserId:null,name:null,cssClass:null}),oninit(){this.observe("browserId",(()=>this.update())),this.update()},update(){var t=this.get("browserId");t&&(this.set("name",v(t)),this.set("cssClass",function(t){var e=null;return w[t]&&w[t].cssClass&&(e=w[t].cssClass),e}(t)))}});class x{find(t){if(!this.previousBrowserStatus)return this.previousBrowserStatus=t,null;var e=this.previousBrowserStatus.filter((t=>!t.extension)).map((t=>t.browser)),s=t.find((t=>t.extension&&-1!==e.indexOf(t.browser)));return this.previousBrowserStatus=t,s}}function S(){/module=pam/.test(location.search)?n("app.windowManager.ShowWindow",{url:"https://local.avast.com/MainWindow.html?module=pam",id:"pam",type:"CEF",width:1010,height:674,setAsForegroundWnd:!0,title:"Avast Password Manager",iconSmall:215,iconBig:215,appUserModelRelaunchIcon:215,appUserModelID:"avast.pam"}):n("app.windowManager.FocusMainWindow")}const C=[],P=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.creatingStorage")'}}]}}]}]}],n:50,r:"isLoadingNextStep"},{t:4,n:51,f:[{t:7,e:"h3",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.installBrowsersExtensions.desc")'}}]}," ",{t:7,e:"div",a:{class:"pam_install-extension"},f:[{t:7,e:"browser",a:{browserId:[{t:2,r:"browser.id"}]}}]}," ",{t:7,e:"div",a:{class:"pam_pendingdeletes__cta"},f:[{t:7,e:"Button",a:{cssCls:"-primary -large",eventDelay:"5000"},v:{domClick:"installExtension"},f:[{t:3,x:{r:["nls","browser.name"],s:'_0("passwords.installBrowsersExtensions.activate",_1)'}}]}," ",{t:7,e:"br"}," ",{t:7,e:"button",a:{type:"button",class:"a g-margin-top--10","data-test":"pam_ext-install-skip"},v:{click:{n:"skipBrowser",d:[{t:2,r:"browser.id"}]}},f:[{t:3,x:{r:["nls","browser.name"],s:'_0("passwords.installBrowsersExtensions.skip",_1)'}}]}]}],r:"isLoadingNextStep"}]},components:{browser:b},data:()=>({browser:{id:"",name:"",isDefault:null},isLoadingNextStep:!1}),oninit(){this.recentlyInstalledExtensionFinder=new x,this.on("installExtension",(()=>{var t=this.get("browser");m.onboarding.clickExtensionInstall(t.id),n("av.command","install_pam_plugin(browser="+t.id+",cn=User%20extension%20install,cs=Onboarding)").catch((t=>console.error("install_pam_plugin",t)))})),this.on("skipBrowser",((t,e)=>{var s=this.get("browser");m.onboarding.skipExtensionInstall(s.isDefault),C.push(e),this.updateBrowserToInstallExtension()})),this.updateBrowserToInstallExtension(),this.browsersStatusChangedOff=r.on("app.pam.onStatusChanged.browserStatus",(()=>this.updateBrowserToInstallExtension()))},updateBrowserToInstallExtension(){return n("app.pam.GetBrowserStatus").then((t=>{var e=this.recentlyInstalledExtensionFinder.find(t);console.log("recentlyInstalled",e),e&&(S(),m.onboarding.extensionInstalled(e.default));var s=y(t).filter((t=>C.indexOf(t.browser)<0));s.length>0?this.set("browser",{id:s[0].browser,name:v(s[0].browser),isDefault:s[0].default}):(this.fire("done"),this.set("isLoadingNextStep",!0))})).catch((t=>console.error("app.pam.GetBrowserStatus",t)))},onteardown(){this.browsersStatusChangedOff&&this.browsersStatusChangedOff()}});var E,k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},A={exports:{}};E=A,function(){function t(t){if(void 0===t)throw new Error('Pathformer [constructor]: "element" parameter is required');if(t.constructor===String&&!(t=document.getElementById(t)))throw new Error('Pathformer [constructor]: "element" parameter is not related to an existing ID');if(!(t instanceof window.SVGElement||t instanceof window.SVGGElement||/^svg$/i.test(t.nodeName)))throw new Error('Pathformer [constructor]: "element" parameter must be a string or a SVGelement');this.el=t,this.scan(t)}var e,s,n,r;function a(t,s,n){e(),this.isReady=!1,this.setElement(t,s),this.setOptions(s),this.setCallback(n),this.isReady&&this.init()}t.prototype.TYPES=["line","ellipse","circle","polygon","polyline","rect"],t.prototype.ATTR_WATCH=["cx","cy","points","r","rx","ry","x","x1","x2","y","y1","y2"],t.prototype.scan=function(t){for(var e,s,n,r=t.querySelectorAll(this.TYPES.join(",")),a=0;a<r.length;a++)s=(0,this[(e=r[a]).tagName.toLowerCase()+"ToPath"])(this.parseAttr(e.attributes)),n=this.pathMaker(e,s),e.parentNode.replaceChild(n,e)},t.prototype.lineToPath=function(t){var e={},s=t.x1||0,n=t.y1||0,r=t.x2||0,a=t.y2||0;return e.d="M"+s+","+n+"L"+r+","+a,e},t.prototype.rectToPath=function(t){var e={},s=parseFloat(t.x)||0,n=parseFloat(t.y)||0,r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;if(t.rx||t.ry){var o=parseInt(t.rx,10)||-1,i=parseInt(t.ry,10)||-1;o=Math.min(Math.max(o<0?i:o,0),r/2),i=Math.min(Math.max(i<0?o:i,0),a/2),e.d="M "+(s+o)+","+n+" L "+(s+r-o)+","+n+" A "+o+","+i+",0,0,1,"+(s+r)+","+(n+i)+" L "+(s+r)+","+(n+a-i)+" A "+o+","+i+",0,0,1,"+(s+r-o)+","+(n+a)+" L "+(s+o)+","+(n+a)+" A "+o+","+i+",0,0,1,"+s+","+(n+a-i)+" L "+s+","+(n+i)+" A "+o+","+i+",0,0,1,"+(s+o)+","+n}else e.d="M"+s+" "+n+" L"+(s+r)+" "+n+" L"+(s+r)+" "+(n+a)+" L"+s+" "+(n+a)+" Z";return e},t.prototype.polylineToPath=function(t){var e,s,n={},r=t.points.trim().split(" ");if(-1===t.points.indexOf(",")){var a=[];for(e=0;e<r.length;e+=2)a.push(r[e]+","+r[e+1]);r=a}for(s="M"+r[0],e=1;e<r.length;e++)-1!==r[e].indexOf(",")&&(s+="L"+r[e]);return n.d=s,n},t.prototype.polygonToPath=function(e){var s=t.prototype.polylineToPath(e);return s.d+="Z",s},t.prototype.ellipseToPath=function(t){var e={},s=parseFloat(t.rx)||0,n=parseFloat(t.ry)||0,r=parseFloat(t.cx)||0,a=parseFloat(t.cy)||0,o=r-s,i=a,l=parseFloat(r)+parseFloat(s),c=a;return e.d="M"+o+","+i+"A"+s+","+n+" 0,1,1 "+l+","+c+"A"+s+","+n+" 0,1,1 "+o+","+c,e},t.prototype.circleToPath=function(t){var e={},s=parseFloat(t.r)||0,n=parseFloat(t.cx)||0,r=parseFloat(t.cy)||0,a=n-s,o=r,i=parseFloat(n)+parseFloat(s),l=r;return e.d="M"+a+","+o+"A"+s+","+s+" 0,1,1 "+i+","+l+"A"+s+","+s+" 0,1,1 "+a+","+l,e},t.prototype.pathMaker=function(t,e){var s,n,r=document.createElementNS("http://www.w3.org/2000/svg","path");for(s=0;s<t.attributes.length;s++)n=t.attributes[s],-1===this.ATTR_WATCH.indexOf(n.name)&&r.setAttribute(n.name,n.value);for(s in e)r.setAttribute(s,e[s]);return r},t.prototype.parseAttr=function(t){for(var e,s={},n=0;n<t.length;n++){if(e=t[n],-1!==this.ATTR_WATCH.indexOf(e.name)&&-1!==e.value.indexOf("%"))throw new Error("Pathformer [parseAttr]: a SVG shape got values in percentage. This cannot be transformed into 'path' tags. Please use 'viewBox'.");s[e.name]=e.value}return s},a.LINEAR=function(t){return t},a.EASE=function(t){return-Math.cos(t*Math.PI)/2+.5},a.EASE_OUT=function(t){return 1-Math.pow(1-t,3)},a.EASE_IN=function(t){return Math.pow(t,3)},a.EASE_OUT_BOUNCE=function(t){var e=1-Math.cos(t*(.5*Math.PI)),s=Math.pow(e,1.5),n=Math.pow(1-t,2);return 1-n+(1-Math.abs(Math.cos(s*(2.5*Math.PI))))*n},a.prototype.setElement=function(t,e){var s,n;if(void 0===t)throw new Error('Vivus [constructor]: "element" parameter is required');if(t.constructor===String&&!(t=document.getElementById(t)))throw new Error('Vivus [constructor]: "element" parameter is not related to an existing ID');if(this.parentEl=t,e&&e.file){n=this,s=function(){var t=document.createElement("div");t.innerHTML=this.responseText;var s=t.querySelector("svg");if(!s)throw new Error("Vivus [load]: Cannot find the SVG in the loaded file : "+e.file);n.el=s,n.el.setAttribute("width","100%"),n.el.setAttribute("height","100%"),n.parentEl.appendChild(n.el),n.isReady=!0,n.init(),n=null};var r=new window.XMLHttpRequest;return r.addEventListener("load",s),r.open("GET",e.file),void r.send()}switch(t.constructor){case window.SVGSVGElement:case window.SVGElement:case window.SVGGElement:this.el=t,this.isReady=!0;break;case window.HTMLObjectElement:n=this,(s=function(e){if(!n.isReady){if(n.el=t.contentDocument&&t.contentDocument.querySelector("svg"),!n.el&&e)throw new Error("Vivus [constructor]: object loaded does not contain any SVG");n.el&&(t.getAttribute("built-by-vivus")&&(n.parentEl.insertBefore(n.el,t),n.parentEl.removeChild(t),n.el.setAttribute("width","100%"),n.el.setAttribute("height","100%")),n.isReady=!0,n.init(),n=null)}})()||t.addEventListener("load",s);break;default:throw new Error('Vivus [constructor]: "element" parameter is not valid (or miss the "file" attribute)')}},a.prototype.setOptions=function(t){var e=["delayed","sync","async","nsync","oneByOne","scenario","scenario-sync"],s=["inViewport","manual","autostart"];if(void 0!==t&&t.constructor!==Object)throw new Error('Vivus [constructor]: "options" parameter must be an object');if((t=t||{}).type&&-1===e.indexOf(t.type))throw new Error("Vivus [constructor]: "+t.type+" is not an existing animation `type`");if(this.type=t.type||e[0],t.start&&-1===s.indexOf(t.start))throw new Error("Vivus [constructor]: "+t.start+" is not an existing `start` option");if(this.start=t.start||s[0],this.isIE=-1!==window.navigator.userAgent.indexOf("MSIE")||-1!==window.navigator.userAgent.indexOf("Trident/")||-1!==window.navigator.userAgent.indexOf("Edge/"),this.duration=r(t.duration,120),this.delay=r(t.delay,null),this.dashGap=r(t.dashGap,1),this.forceRender=t.hasOwnProperty("forceRender")?!!t.forceRender:this.isIE,this.reverseStack=!!t.reverseStack,this.selfDestroy=!!t.selfDestroy,this.onReady=t.onReady,this.map=[],this.frameLength=this.currentFrame=this.delayUnit=this.speed=this.handle=null,this.ignoreInvisible=!!t.hasOwnProperty("ignoreInvisible")&&!!t.ignoreInvisible,this.animTimingFunction=t.animTimingFunction||a.LINEAR,this.pathTimingFunction=t.pathTimingFunction||a.LINEAR,this.delay>=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},a.prototype.setCallback=function(t){if(t&&t.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=t||function(){}},a.prototype.mapping=function(){var t,e,s,n,a,o,i,l;for(l=o=i=0,e=this.el.querySelectorAll("path"),t=0;t<e.length;t++)s=e[t],this.isInvisible(s)||(a={el:s,length:Math.ceil(s.getTotalLength())},isNaN(a.length)?window.console&&console.warn&&console.warn("Vivus [mapping]: cannot retrieve a path element length",s):(this.map.push(a),s.style.strokeDasharray=a.length+" "+(a.length+2*this.dashGap),s.style.strokeDashoffset=a.length+this.dashGap,a.length+=this.dashGap,o+=a.length,this.renderPath(t)));for(o=0===o?1:o,this.delay=null===this.delay?this.duration/3:this.delay,this.delayUnit=this.delay/(e.length>1?e.length-1:1),this.reverseStack&&this.map.reverse(),t=0;t<this.map.length;t++){switch(a=this.map[t],this.type){case"delayed":a.startAt=this.delayUnit*t,a.duration=this.duration-this.delay;break;case"oneByOne":a.startAt=i/o*this.duration,a.duration=a.length/o*this.duration;break;case"sync":case"async":case"nsync":a.startAt=0,a.duration=this.duration;break;case"scenario-sync":s=a.el,n=this.parseAttr(s),a.startAt=l+(r(n["data-delay"],this.delayUnit)||0),a.duration=r(n["data-duration"],this.duration),l=void 0!==n["data-async"]?a.startAt:a.startAt+a.duration,this.frameLength=Math.max(this.frameLength,a.startAt+a.duration);break;case"scenario":s=a.el,n=this.parseAttr(s),a.startAt=r(n["data-start"],this.delayUnit)||0,a.duration=r(n["data-duration"],this.duration),this.frameLength=Math.max(this.frameLength,a.startAt+a.duration)}i+=a.length,this.frameLength=this.frameLength||this.duration}},a.prototype.drawer=function(){var t=this;if(this.currentFrame+=this.speed,this.currentFrame<=0)this.stop(),this.reset();else{if(!(this.currentFrame>=this.frameLength))return this.trace(),void(this.handle=s((function(){t.drawer()})));this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy()}this.callback(this),this.instanceCallback&&(this.instanceCallback(this),this.instanceCallback=null)},a.prototype.trace=function(){var t,e,s,n;for(n=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength,t=0;t<this.map.length;t++)e=(n-(s=this.map[t]).startAt)/s.duration,e=this.pathTimingFunction(Math.max(0,Math.min(1,e))),s.progress!==e&&(s.progress=e,s.el.style.strokeDashoffset=Math.floor(s.length*(1-e)),this.renderPath(t))},a.prototype.renderPath=function(t){if(this.forceRender&&this.map&&this.map[t]){var e=this.map[t],s=e.el.cloneNode(!0);e.el.parentNode.replaceChild(s,e.el),e.el=s}},a.prototype.init=function(){this.frameLength=0,this.currentFrame=0,this.map=[],new t(this.el),this.mapping(),this.starter(),this.onReady&&this.onReady(this)},a.prototype.starter=function(){switch(this.start){case"manual":return;case"autostart":this.play();break;case"inViewport":var t=this,e=function(){t.isInViewport(t.parentEl,1)&&(t.play(),window.removeEventListener("scroll",e))};window.addEventListener("scroll",e),e()}},a.prototype.getStatus=function(){return 0===this.currentFrame?"start":this.currentFrame===this.frameLength?"end":"progress"},a.prototype.reset=function(){return this.setFrameProgress(0)},a.prototype.finish=function(){return this.setFrameProgress(1)},a.prototype.setFrameProgress=function(t){return t=Math.min(1,Math.max(0,t)),this.currentFrame=Math.round(this.frameLength*t),this.trace(),this},a.prototype.play=function(t,e){if(this.instanceCallback=null,t&&"function"==typeof t)this.instanceCallback=t,t=null;else if(t&&"number"!=typeof t)throw new Error("Vivus [play]: invalid speed");return e&&"function"==typeof e&&!this.instanceCallback&&(this.instanceCallback=e),this.speed=t||1,this.handle||this.drawer(),this},a.prototype.stop=function(){return this.handle&&(n(this.handle),this.handle=null),this},a.prototype.destroy=function(){var t,e;for(this.stop(),t=0;t<this.map.length;t++)(e=this.map[t]).el.style.strokeDashoffset=null,e.el.style.strokeDasharray=null,this.renderPath(t)},a.prototype.isInvisible=function(t){var e,s=t.getAttribute("data-ignore");return null!==s?"false"!==s:!!this.ignoreInvisible&&!(e=t.getBoundingClientRect()).width&&!e.height},a.prototype.parseAttr=function(t){var e,s={};if(t&&t.attributes)for(var n=0;n<t.attributes.length;n++)s[(e=t.attributes[n]).name]=e.value;return s},a.prototype.isInViewport=function(t,e){var s=this.scrollY(),n=s+this.getViewportH(),r=t.getBoundingClientRect(),a=r.height,o=s+r.top;return o+a*(e=e||0)<=n&&o+a>=s},a.prototype.getViewportH=function(){var t=this.docElem.clientHeight,e=window.innerHeight;return t<e?e:t},a.prototype.scrollY=function(){return window.pageYOffset||this.docElem.scrollTop},e=function(){a.prototype.docElem||(a.prototype.docElem=window.document.documentElement,s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},n=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t)})},r=function(t,e){var s=parseInt(t,10);return s>=0?s:e},E.exports=a}();const I=A.exports,D=t.extend({template:{v:3,t:[{t:7,e:"h3",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.importBrowsersPasswords.desc")'}}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.importing")'}}]}}," ",{t:2,r:"importingPasswordNumber"}," / ",{t:2,r:"browsersPasswordsCount"}]}],n:50,r:"isImportRunning"},{t:4,n:51,f:[{t:4,n:50,x:{r:["showSuccessScreen"],s:"_0"},f:[{t:7,e:"svg",a:{version:"1.1",class:"color-ok -text",id:"import-ok-state-icon",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 500 500"},f:[{t:7,e:"path",a:{d:"M250.3,10.1c132.5,0,239.9,107.4,239.9,239.9S382.8,489.9,250.3,489.9S10.5,382.5,10.5,250\n\t\t\t\tS117.9,10.1,250.3,10.1z"}}," ",{t:7,e:"path",a:{d:"M103.6,254.2l101,101l195.5-195.5"}}]}]}],r:"isImportRunning"}]}," ",{t:7,e:"div",a:{class:"pam_onboarding__result"},f:[{t:4,f:[{t:4,f:[{t:4,f:[{t:7,e:"p",a:{"data-test":"pam_pwd_import_skip_lbl"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.importBrowsersPasswords.canceling")'}}]}],n:50,r:"skipping"},{t:4,n:51,f:[{t:4,n:50,x:{r:["disableSkip"],s:"!_0"},f:[{t:7,e:"button",a:{type:"button",class:"a","data-test":"pam_pwd-import-skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.importBrowsersPasswords.skip")'}}]}]}],r:"skipping"}],n:50,r:"allowSkip"}],n:50,r:"isImportRunning"},{t:4,n:51,f:[{t:4,f:[{t:7,e:"p",a:{class:"pam_importedpasswords color-ok -text"},f:[{t:3,x:{r:["nls","browsersPasswordsCount"],s:'_0("passwords.onboardingFinish.importedPasswords",_1)'}}]}],n:50,r:"showSuccessScreen"}],r:"isImportRunning"}]}]},data:()=>({browsersPasswordsCount:"-",importingPasswordNumber:"-",isImportRunning:!0,allowSkip:!0,showSuccessScreen:!1,disableSkip:!1,skipping:!1}),oninit(){let t=!0;this.importProgressOff=r.on("app.pam.onStatusChanged.importProgress",(t=>{console.log("onStatusChanged.mportProgress",t),this.set("browsersPasswordsCount",t.browserpasswordscount),this.set("importingPasswordNumber",t.importedcount),t.browserpasswordscount==t.importedcount&&this.set("disableSkip",!0)})),m.onboarding.importStarted(),this.importBrowserPasswords().then((()=>{this.set("isImportRunning",!1),this.done(this.get("importingPasswordNumber")),t&&(m.onboarding.importFinsihed(),this.done(this.get("importingPasswordNumber")))})),this.on("skip",(()=>{this.set("skipping",!0),t=!1,m.onboarding.importCancelled(),this.stopImportBrowserPasswords().then((()=>{this.done(0)}))}))},onteardown(){this.importProgressOff&&this.importProgressOff()},importBrowserPasswords:()=>n("app.pam.ImportBrowserPasswords",6e3).then((t=>{console.log("ImportBrowserPasswords",t)})).catch((t=>{console.error("ImportBrowserPasswords",t)})),stopImportBrowserPasswords:()=>n("app.pam.StopImportBrowserPasswordsOnboarding").then((t=>{console.log("StopImportBrowserPasswordsOnboarding",t)})).catch((t=>{console.error("StopImportBrowserPasswordsOnboarding",t)})),done(t){var e=t?this.get("browsersPasswordsCount"):0;t&&this.get("showSuccessScreen")?(new I("import-ok-state-icon",{duration:70,type:"delayed",animTimingFunction:I.EASE_OUT}),setTimeout((()=>{this.fire("done",e)}),3e3)):this.fire("done",e)}}),O=t.extend({template:{v:3,t:[{t:7,e:"div",f:[{t:7,e:"h3",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.onboardingError.title")'}}]}," ",{t:7,e:"div",a:{style:"font-size: 150px; margin: 50px; color:#f5203e;"},f:[{t:7,e:"Icon",a:{name:"exclamation-sign"}}]}," ",{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("passwords.onboardingError.description")'}}]}," ",{t:7,e:"br"}]}]},oninit(){s.view("pam/Onboarding/Error")}}),M=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"nui_page__scroll g-align--center pam_flex"},f:[{t:4,f:[{t:7,e:"Intro"}],n:50,x:{r:["page"],s:'_0=="Intro"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="InstallBrowsersExtensions"'},f:[{t:7,e:"InstallBrowsersExtensions"}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="InstallBrowsersExtensions"))&&(_0=="ImportBrowsersPasswords")'},f:[" ",{t:7,e:"ImportBrowsersPasswords",a:{showSuccessScreen:"true"}}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="InstallBrowsersExtensions"))&&((!(_0=="ImportBrowsersPasswords"))&&(_0=="Error"))'},f:[" ",{t:7,e:"Error"}]}],x:{r:["page"],s:'_0=="Intro"'}}]}]},data:()=>({page:"Intro",fromSzb:window.location.href.endsWith("/szb")}),components:{Intro:_,InstallBrowsersExtensions:P,ImportBrowsersPasswords:D,Error:O},oninit(){s.view("pam/Onboarding/Intro"),m.onboarding.viewIntro(),this.get("fromSzb")&&(window.location.hash=window.location.hash.substr(0,window.location.hash.length-4)),this.on("Intro.start",(()=>n("app.pam.CreateVaultWithSystemLogin").then((()=>this.onCreateVaultDone())).catch((t=>{console.error("app.pam.CreateVaultWithSystemLogin",t),this.onCreateVaultError()})))),this.on("InstallBrowsersExtensions.done",this.onInstallExtensionsDone.bind(this)),this.on("ImportBrowsersPasswords.done",(()=>{this.fire("done",!0)}))},onCreateVaultDone(){this.get("fromSzb")?this.onInstallExtensionsDone():(this.set("page","InstallBrowsersExtensions"),s.view("pam/Onboarding/InstallBrowsersExtensions"))},onCreateVaultError(){this.set("page","Error")},onInstallExtensionsDone(){S(),this.getBrowsersPasswordsCount().then((t=>{t>0?(this.set("page","ImportBrowsersPasswords"),s.view("pam/Onboarding/ImportBrowsersPasswords")):this.fire("done",!1)}))},getBrowsersPasswordsCount:()=>n("app.pam.GetBrowserPasswordCount").then((t=>t.browserPasswordCount)).catch((t=>{console.error("GetBrowserPasswordCount",t)}))}),T=t.extend({template:{v:3,t:[{t:7,e:"kin-page",a:{heading:[{t:3,x:{r:["nls"],s:'_0("passwords")'}}],csscls:"pam",backhash:"#privacy"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{customBreadcrumbs:0,section:"privacy",moduleId:"passwords"}}]}," ",{t:7,e:"div",a:{slot:"page-content"},f:[{t:7,e:"kin-view",f:[{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"div",a:{class:"pam_onboarding_screen"},f:[{t:7,e:"div",a:{class:"pam_onboarding_carousel"},f:[{t:7,e:"div",a:{class:"nui_carousel__flex"},f:[{t:7,e:"SvgIcon",a:{name:"pam-onboarding-tour-4",cssCls:"pam_wizzard__icon"}}," ",{t:7,e:"div",f:[{t:7,e:"h2",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("global.product.AVAST_PASSWORDS")'}}]}," ",{t:7,e:"p",a:{class:"pam_description"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.intro.tour4.description")'}}]}]}]}," ",{t:7,e:"button",a:{class:"btn -large g-margin-top--30"},v:{click:{m:"openStandalonePam",a:{r:[],s:"[]"}}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.openPasswords")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_tip__container"},f:[{t:7,e:"span",a:{class:"g-align--left"},f:[{t:7,e:"img",a:{class:"g-margin-right--20",src:"data:image/png;base64,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"}}," ",{t:7,e:"span",a:{class:"span -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.openStandaloneUi.tip")'}}]}]}]}]}]}]}]}]}]},openStandalonePam(){n("app.windowManager.ShowWindow",{url:"https://local.avast.com/MainWindow.html?module=pam",id:"pam",type:"CEF",width:1010,height:674,setAsForegroundWnd:!0,title:"Avast Password Manager",iconSmall:215,iconBig:215,appUserModelRelaunchIcon:215,appUserModelID:"avast.pam"}).catch((()=>{const e=t.localization.nls("system.toasters.restart.text"),s={title:t.localization.nls("system.toasters.restart.title"),ok:t.localization.nls("system.toasters.restart.restartComputer")};return t.UI.confirm(e,s).then((()=>{n("app.system.Restart",{rebootType:"RebootFromUI"})}))}))}});var B=".pam_login {\n  display: block;\n  width: 300px;\n  margin: 0 auto;\n  padding-right: 50px;\n}\n.pam_login__wrap {\n  width: 300px;\n  position: relative;\n  margin: 0 auto;\n  text-align: center;\n}\n.pam_login__strength {\n  width: 298px;\n  margin-left: auto;\n  margin-right: auto;\n  display: block;\n}\n.pam_login__show {\n  position: absolute;\n  left: 148px;\n}\n.pam button.pam_login {\n  min-width: 300px;\n  width: auto;\n}\n.pam_error {\n  height: 22px;\n  font-weight: 700;\n}\n.pam_acknowledge {\n  width: 300px;\n  margin-left: auto;\n  margin-right: auto;\n  display: block;\n}\n.pam_acknowledge_checkbox {\n  float: left;\n  margin-top: 3px;\n}\n.pam_acknowledge_label {\n  display: block;\n  text-align: initial;\n  margin-left: 25px;\n}\n.pam_unlock {\n  width: 100%;\n  margin: 3vh 0 2vh;\n}\n.pam_unlock__field {\n  text-align: center;\n  width: 300px;\n  display: block;\n  margin: 0 auto;\n}\n.pam_unlock__icon {\n  font-size: 120px;\n  margin: 0 0 3vh;\n}\n.pam_mobile {\n  padding-top: 15px;\n}\n@media (max-width: 500px), (max-height: 500px) {\n  .animated {\n    -webkit-animation-duration: 0.8s;\n    -webkit-animation-delay: 0s;\n  }\n  #nui_titlebar {\n    background-color: #f00 !important;\n  }\n  .input {\n    height: 30px;\n  }\n  .pam_unlock__icon {\n    font-size: 80px;\n    margin-bottom: 32px;\n  }\n  .pam_title {\n    font-size: 1.7rem;\n  }\n  .pam_unlock {\n    margin-top: 20px;\n    margin-bottom: 5px;\n  }\n  .pam_unlock__field {\n    width: 260px;\n  }\n  .btn.-large {\n    font-size: 14px;\n    min-height: 36px;\n    padding: 6px 34px 5px;\n  }\n  .pam_mobile {\n    font-size: 14px;\n    margin-bottom: 32px;\n  }\n}\n[dir='rtl'] .pam_acknowledge_checkbox {\n  float: right;\n}\n[dir='rtl'] .pam_acknowledge_label {\n  margin-left: 0;\n  margin-right: 25px;\n}\n";function N(t,e={width:700,height:500,params:{}}){const s=window.btoa(JSON.stringify(e.params));n("app.windowManager.ShowModal",{url:"https://local.avast.com/MainWindow.html?module=pam&sensitiveModal="+t+"&sensitiveModalParams="+s,id:"pam_"+t,type:"CEF",width:e.width,height:e.height,setAsForegroundWnd:!0})}const L=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["g-align--center ",{t:2,x:{r:["isStandAlone"],s:'_0?"pam_unlock_standalone":""'}}]},f:[{t:7,e:"div",f:[{t:7,e:"SvgIcon",a:{name:"pam-lock",cssCls:"pam_unlock__icon"}}," ",{t:7,e:"h2",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.enterMasterPassword")'}}]}," ",{t:7,e:"br"}," ",{t:7,e:"br"}," ",{t:7,e:"button",a:{class:"btn -large"},v:{click:"showUnlockDialog"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.unlock")'}}]}]}]}," ",{t:4,f:[{t:7,e:"UnlockCefDialog"}],n:50,r:"showDialog"}]},css:B,data:()=>({}),oninit(){this.on("showUnlockDialog",(()=>{N("unlockCefDialog",{width:500,height:400,params:{type:"unlock"}})}))}});const R={MODES:{LISTVIEW:"listView",PASSWORDADD:"passwordAdd",PASSWORDEDIT:"passwordEdit",PASSWORDVIEW:"passwordView",NOTEADD:"noteAdd",NOTEEDIT:"noteEdit",NOTEVIEW:"noteView",CREDIT_CARD_ADD:"creditCardAdd",CREDIT_CARD_EDIT:"creditCardEdit",CREDIT_CARD_VIEW:"creditCardView"},VAULTSTATES:{UNKNOWN:1,NO_VAULT:2,VAULT_EXISTS:3,LOGGED:4,IDENTITY_REGISTERED:5,IDENTITY_AUTHORIZED:6,SYNC_START_PENDING:7,SYNC_RUNNING:8,SYNC_END_PENDING:9},COLORS:["#FD4B5E","#FF8B45","#FFD83B","#3EE4BA","#A1EA53","#4DD1FF","#4898FE","#9B72FF","#F76FBF","#656C78"],PASSWORD_SCORE:{VERY_WEAK:0,WEAK:1,AVERAGE:2,STRONG:3,VERY_STRONG:4}},z=e=>{switch(+e){case R.PASSWORD_SCORE.VERY_WEAK:return{text:t.localization.nls("passwords.strength.veryWeak"),level:"veryWeak",class:"color-danger"};case R.PASSWORD_SCORE.WEAK:return{text:t.localization.nls("passwords.strength.weak"),level:"weak",class:"color-danger"};case R.PASSWORD_SCORE.AVERAGE:return{text:t.localization.nls("passwords.strength.good"),level:"good",class:"color-attention"};case R.PASSWORD_SCORE.STRONG:return{text:t.localization.nls("passwords.strength.strong"),level:"strong",class:"color-ok"};default:return{text:t.localization.nls("passwords.strength.veryStrong"),level:"veryStrong",class:"color-ok"}}},G=t.extend({template:{v:3,t:[{t:7,e:"svg",a:{class:["pam_color__circle ",{t:2,r:"cssCls"}],style:[{t:2,r:"cssInline"}]},f:[{t:7,e:"text",a:{class:"pam_color__text",x:"50%",y:"50%",dy:".35em"},f:[{t:2,r:"initials"}]}]}]},computed:{initials:function(){return this.getInitials(this.get("text"),this.get("url"))}},stripProtocol:t=>t.replace(/((ht|f)tps?:[\/]{2})?(w{3}\.)?\S*?(.*)/i,"$4"),removeNonWordChars:t=>t.replace(/[^\u00BF-\u1FFF\u2C00-\uD7FF\w]/gi,""),capitalizeFirstLetter:t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),getInitials(t,e){var s="";return t&&t.length>0?s=t:e&&e.length>0&&(s=this.stripProtocol(e)),s.length>0&&(s=this.removeNonWordChars(s),s=this.capitalizeFirstLetter(s)),s.substring(0,2)}}),W=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Initials",a:{text:[{t:2,r:"serviceName"}],url:[{t:2,r:"url"}],cssCls:"pam_color",cssInline:["background-color:",{t:2,rx:{r:"CONST.COLORS",m:[{r:["color"],s:"_0-1"}]}}]}}],n:50,r:"showInitials"},{t:4,f:[{t:7,e:"img",a:{src:[{t:2,r:"imgSrc"}],class:["pam_icon_image",{t:4,f:[" notransition"],n:50,r:"isCached"},{t:4,f:[" loaded"],n:50,r:"isLoaded"},{t:4,f:[" nomargin"],n:50,x:{r:["showInitials"],s:"!_0"}}]}}],n:50,r:"imgSrc"}]},components:{Initials:G},data:()=>({isLoaded:!1,isCached:!1,showInitials:!1,CONST:R}),oninit:function(){if(this.get("imgSrc")){var t=document.createElement("img");t.src=this.get("imgSrc"),t.onload=()=>{this.imgOnLoadTimeout||(this.imgOnLoadTimeout=setTimeout((()=>{this.set("isLoaded",!0),this._clearTimeouts()})))},this.set("isCached",t.complete||t.width+t.height>0),this.imgWaitTimeout&&(this.imgWaitTimeout=setTimeout((()=>{this.get("isLoaded")||this.set("showInitials",!0),this._clearTimeouts()}),200))}else this.set("showInitials",!0)},_clearTimeouts(){this.imgOnLoadTimeout&&(clearTimeout(this.imgOnLoadTimeout),this.imgOnLoadTimeout=void 0),this.imgWaitTimeout&&(clearTimeout(this.imgWaitTimeout),this.imgWaitTimeout=void 0)},onteardown(){this._clearTimeouts()}});function V(t){return n("app.settings.Get",{name:"avdef://config/Pam/"+t}).then((t=>t.value))}function F(t){var e=t.match(/(mac|win|ios|and|bak)-(\d+)-?(.*)/);if(e){var s=e[1],n={mac:"Mac",win:"Windows",ios:"iOS",and:"Android",bak:""}[s];const t=e[2];return{os:n,deviceName:e[3]?e[3]:n,dateAdded:t,prefix:s}}return{os:"",deviceName:t}}function U(t){return JSON.parse(JSON.stringify(t))}function H(t,e){return t.sort((function(s,n){const r=s[e],a=n[e],o="string"==typeof r,i="string"==typeof a;return o&&i?r.localeCompare(a):(console.error("sortAlphabetically cannot sort",t,"by property",e),o||i?o?1:-1:0)})),t}function j(t){var e="";if("string"==typeof t)e=t;else if("function"==typeof t.select&&"string"==typeof t.value)e=t.value;else if(t instanceof HTMLElement)e=t.innerText;else{if("function"!=typeof t.toString)return Promise.reject({error:"invalid argument",detail:t});e=t.toString()}return new Promise((function(t,s){try{var n="rtl"==document.documentElement.getAttribute("dir"),r=document.createElement("textarea");r.style.fontSize="12pt",r.style.position="absolute",r.style.width="128px",n?r.style.right="-4096px":r.style.left="-4096px",r.tabIndex=-1,r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy")||s("clipboard is disabled"),document.body.removeChild(r),t()}catch(a){s(a)}}))}const J={copy:j,clear:function(){return j("​")}},Q=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"span",a:{class:["btn -secondary pam_copied",{t:4,f:[" pam_copied_open"],n:50,r:"showCopyConfirmation"}]},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("global.copied")'}}]}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary -icon-only",title:[{t:3,x:{r:["nls"],s:'_0("passwords.password.copyToClipboard")'}}]},v:{click:"click"},f:[{t:7,e:"Icon",a:{name:"copy"}}]}]},data:function(){return{text:"",showCopyConfirmation:!1}},oninit(){this.on("click",(()=>{var t=this.get("text");J.copy(t).then((()=>{this.set("showCopyConfirmation",!0),window.setTimeout((()=>this.set("showCopyConfirmation",!1)),1500)}))}))}}),K=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"button",a:{class:[{t:2,r:"cssCls"}," btn -secondary -icon-only"],title:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("global.hide")'}}],n:50,r:"isRevealed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("global.show")'}}],r:"isRevealed"}]},v:{click:"toggle"},f:[{t:7,e:"Icon",a:{name:["eye",{t:4,f:["-hide"],n:50,r:"isRevealed"}]}}]}]},data:function(){return{isRevealed:!1,onChange:null,cssCls:""}},oninit(){this.on("toggle",(()=>this.set("isRevealed",!this.get("isRevealed"))))}}),Z=t.extend({isolated:!0,template:"{{#if hasFeature}}{{yield}}{{/if}}",data:()=>({feature:null,hasFeature:!1}),oninit(){V(this.get("feature")).then((t=>this.set("hasFeature",t))).catch((t=>console.error("Failed to fetch feature flag.",t)))}}),q=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"div",a:{class:["pam_error_label ",{t:4,f:["-hidden"],n:50,x:{r:["error"],s:"!_0"}}]},f:[{t:7,e:"p",a:{class:"color-danger -bg"},f:[{t:2,r:"error"}]}]}]},data(){}});const Y=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"pam_password-problem color-light-grey -bg"},f:[{t:7,e:"button",a:{type:"button",class:"drop-clickable"},v:{mouseover:{n:"setHover",a:[!0]},mouseout:{n:"setHover",a:[!1]},click:"toggleDrop"},f:[{t:7,e:"div",a:{class:"guardian-icon-cont"},f:[{t:7,e:"Icon",a:{name:"guardian",cssCls:"guardian guardian-icon"}}," ",{t:7,e:"Icon",a:{name:"guardian-shield",cssCls:["guardian-icon color-",{t:2,r:"passwordState"},{t:2,x:{r:["isHover"],s:'_0?"-secondary":""'}}," -text"]}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"guardian-shield-error",cssCls:"guardian-icon"}}],n:50,x:{r:["passwordState"],s:'_0==="critical"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["passwordState"],s:'_0==="attention"'},f:[{t:7,e:"Icon",a:{name:"guardian-shield-warning",cssCls:"guardian-icon"}}]},{t:4,n:50,x:{r:["passwordState"],s:'!(_0==="attention")'},f:[" ",{t:7,e:"Icon",a:{name:"guardian-shield-ok",cssCls:"guardian-icon"}}]}],x:{r:["passwordState"],s:'_0==="critical"'}}]}," ",{t:7,e:"div",a:{class:["password-state color-",{t:2,r:"passwordState"},{t:2,x:{r:["isHover"],s:'_0?"-secondary":""'}}," -text"]},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.title.leaked")'}}],n:50,x:{r:["passwordMainProblem"],s:'_0==="isLeaked"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["passwordMainProblem"],s:'_0==="isDuplicateToLeaked"'},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.title.duplicateToLeak")'}}]},{t:4,n:50,x:{r:["passwordMainProblem"],s:'(!(_0==="isDuplicateToLeaked"))&&(_0==="isDuplicate")'},f:[" ",{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.title.duplicate")'}}]},{t:4,n:50,x:{r:["passwordMainProblem"],s:'(!(_0==="isDuplicateToLeaked"))&&((!(_0==="isDuplicate"))&&(_0==="isWeak"))'},f:[" ",{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.title.weak")'}}]}],x:{r:["passwordMainProblem"],s:'_0==="isLeaked"'}}]}," ",{t:7,e:"div",a:{class:["drop-arrow ",{t:2,x:{r:["isExpanded"],s:'_0?"-is-expanded":""'}}]},f:[{t:7,e:"Icon",a:{name:"arrow-more"}}]}]}," ",{t:7,e:"div",a:{class:["drop-content text -small ",{t:2,x:{r:["isExpanded"],s:'_0?"-is-expanded":""'}}]},f:[{t:4,f:[{t:7,e:"div",f:[{t:3,x:{r:["nls","passwordLeakTime"],s:'_0("passwords.passwordGuardian.passwordProblem.desc1.leaked",_1)'}}," ",{t:3,x:{r:["nls","password.serviceName"],s:'_0("passwords.passwordGuardian.passwordProblem.desc2.leaked",_1)'}}]}],n:50,x:{r:["passwordMainProblem"],s:'_0==="isLeaked"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["passwordMainProblem"],s:'_0==="isDuplicateToLeaked"'},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls","password.leakDuplicateWith.0.serviceName"],s:'_0("passwords.passwordGuardian.passwordProblem.desc1.duplicateToLeaked",_1)'}}," ",{t:3,x:{r:["nls","password.serviceName"],s:'_0("passwords.passwordGuardian.passwordProblem.desc2.leaked",_1)'}}]}]},{t:4,n:50,x:{r:["passwordMainProblem"],s:'(!(_0==="isDuplicateToLeaked"))&&(_0==="isDuplicate")'},f:[" ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.desc1.pt1.duplicate")'}}," ",{t:7,e:"strong",f:[{t:7,e:"button",a:{class:"a"},v:{click:{n:"viewPasswordDuplicates",d:[{t:2,r:"password"}]}},f:[{t:3,x:{r:["nls","password.duplicateWith.length"],s:'_0("passwords.passwordGuardian.passwordProblem.desc1.pt2.duplicate",_1)'}}]}]}," ",{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.desc2.duplicate")'}}," ",{t:3,x:{r:["nls","password.serviceName"],s:'_0("passwords.passwordGuardian.passwordProblem.desc3.duplicate",_1)'}}]}]},{t:4,n:50,x:{r:["passwordMainProblem"],s:'(!(_0==="isDuplicateToLeaked"))&&((!(_0==="isDuplicate"))&&(_0==="isWeak"))'},f:[" ",{t:7,e:"div",f:[{t:3,x:{r:["nls","password.serviceName"],s:'_0("passwords.passwordGuardian.passwordProblem.desc.weak",_1)'}}]}]}],x:{r:["passwordMainProblem"],s:'_0==="isLeaked"'}}," ",{t:7,e:"button",a:{type:"button",class:["btn -",{t:2,r:"passwordState"}]},v:{click:"logIn"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordProblem.logIn")'}}]}]}]}],n:50,r:"passwordMainProblem"}]},css:".pam_password-problem {\n  margin-top: 15px;\n  border-radius: 3px;\n  box-shadow: 0 2px 4px 0 rgba(44,49,86,0.2);\n}\n.pam_password-problem .drop-clickable {\n  cursor: pointer;\n  display: flex;\n  padding: 10px 15px;\n  width: 100%;\n  text-align: left;\n  text-decoration: none;\n}\n.pam_password-problem .drop-clickable .drop-arrow {\n  transform: rotate(90deg);\n  width: 14px;\n  height: 14px;\n  margin-top: 12px;\n}\n.pam_password-problem .drop-clickable .drop-arrow.-is-expanded {\n  transform: rotate(-90deg);\n}\n.pam_password-problem .drop-clickable .password-state {\n  text-transform: uppercase;\n  font-size: 18px;\n  font-weight: bold;\n  padding-top: 8px;\n  flex-grow: 1;\n}\n.pam_password-problem .drop-clickable .guardian-icon-cont {\n  font-size: 37px;\n  position: relative;\n  width: 37px;\n  height: 37px;\n  margin-left: 10px;\n}\n.pam_password-problem .drop-clickable .guardian-icon-cont .guardian-icon {\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n.pam_password-problem .drop-clickable .guardian-icon-cont .guardian-icon.guardian {\n  opacity: 0.3;\n}\n.pam_password-problem .drop-content {\n  display: none;\n  padding: 0 47px 10px 63px;\n  margin-top: -10px;\n}\n.pam_password-problem .drop-content .btn {\n  margin-top: 15px;\n  margin-bottom: 5px;\n}\n.pam_password-problem .drop-content.-is-expanded {\n  display: block;\n}\n[dir=rtl] .pam_password-problem .drop-clickable {\n  text-align: right;\n}\n[dir=rtl] .pam_password-problem .drop-clickable .guardian-icon {\n  left: 0;\n}\n[dir=rtl] .drop-content {\n  padding: 0 63px 10px 47px;\n}\n",data:()=>({password:{},passwordMainProblem:void 0,passwordLeakTime:void 0,passwordState:void 0,isExpanded:!1,isHover:!1}),oninit(){const t=this.get("password"),e=this.parent.parent.parent.findComponent("PasswordGuardian").getVulnerablePasswordById(t.itemUID);e&&this._setPasswordGuardianData(e),"PasswordGuardian"===this.parent.parent.component.name&&this.set("isExpanded",!0),this.on("toggleDrop",(()=>{this.toggle("isExpanded")})),this.on("setHover",((t,e)=>{this.set("isHover",e)})),this.on("logIn",(()=>{const t=this.get("password");this.fire("closePasswordDetail"),n("app.pam.OpenUrlInBrowserAndShowToaster",{url:t.url,serviceName:t.serviceName,id:t.itemUID}).catch((t=>{console.error("app.pam.OpenUrlInBrowserAndShowToaster error: ",JSON.stringify(t))}))}))},_setPasswordGuardianData(t){this.set({"password.leakTimestamp":t.leakTimestamp,"password.leakDuplicateWith":t.leakDuplicateWith,"password.duplicateWith":t.duplicateWith,"password.isWeak":t.isWeak}),this._setPasswordState(t),this._setPasswordLeakTime(t)},_setPasswordState(t){const e=this._getPasswordMainProblem(t);switch(this.set("passwordMainProblem",e),e){case"isLeaked":case"isDuplicateToLeaked":this.set("passwordState","critical"),this.set("isExpanded",!0);break;case"isDuplicate":case"isWeak":this.set("passwordState","attention");break;default:this.set("passwordState","ok")}},_setPasswordLeakTime(e){if(e.leakTimestamp>0){const s=t.localization.moment(e.leakTimestamp);this.set("passwordLeakTime",s.format("ll"))}},_getPasswordMainProblem:t=>function(t){return!0===t.isLeaked}(t)?"isLeaked":function(t){return t.leakDuplicateWith.length>0}(t)?"isDuplicateToLeaked":function(t){return t.duplicateWith.length>0}(t)?"isDuplicate":function(t){return t.isWeak}(t)?"isWeak":void 0});var X,$,tt,et,st,nt={exports:{}},rt={},at={},ot={},it=(it=it||function(t,e){var s={},n=s.lib={},r=function(){},a=n.Base={extend:function(t){r.prototype=this;var e=new r;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,s=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var r=0;r<t;r++)e[n+r>>>2]|=(s[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<s.length)for(r=0;r<t;r+=4)e[n+r>>>2]=s[r>>>2];else e.push.apply(e,s);return this.sigBytes+=t,this},clamp:function(){var e=this.words,s=this.sigBytes;e[s>>>2]&=4294967295<<32-s%4*8,e.length=t.ceil(s/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var s=[],n=0;n<e;n+=4)s.push(4294967296*t.random()|0);return new o.init(s,e)}}),i=s.enc={},l=i.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++){var r=e[n>>>2]>>>24-n%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n+=2)s[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(s,e/2)}},c=i.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++)s.push(String.fromCharCode(e[n>>>2]>>>24-n%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n++)s[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(s,e)}},d=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var s=this._data,n=s.words,r=s.sigBytes,a=this.blockSize,i=r/(4*a);if(e=(i=e?t.ceil(i):t.max((0|i)-this._minBufferSize,0))*a,r=t.min(4*e,r),e){for(var l=0;l<e;l+=a)this._doProcessBlock(n,l);l=n.splice(0,e),s.sigBytes-=r}return new o.init(l,r)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,s){return new t.init(s).finalize(e)}},_createHmacHelper:function(t){return function(e,s){return new u.HMAC.init(t,s).finalize(e)}}});var u=s.algo={};return s}(Math))||function(t,e){var s={},n=s.lib={},r=function(){},a=n.Base={extend:function(t){r.prototype=this;var e=new r;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,s=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var r=0;r<t;r++)e[n+r>>>2]|=(s[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<s.length)for(r=0;r<t;r+=4)e[n+r>>>2]=s[r>>>2];else e.push.apply(e,s);return this.sigBytes+=t,this},clamp:function(){var e=this.words,s=this.sigBytes;e[s>>>2]&=4294967295<<32-s%4*8,e.length=t.ceil(s/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var s=[],n=0;n<e;n+=4)s.push(4294967296*t.random()|0);return new o.init(s,e)}}),i=s.enc={},l=i.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++){var r=e[n>>>2]>>>24-n%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n+=2)s[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(s,e/2)}},c=i.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++)s.push(String.fromCharCode(e[n>>>2]>>>24-n%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n++)s[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(s,e)}},d=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var s=this._data,n=s.words,r=s.sigBytes,a=this.blockSize,i=r/(4*a);if(e=(i=e?t.ceil(i):t.max((0|i)-this._minBufferSize,0))*a,r=t.min(4*e,r),e){for(var l=0;l<e;l+=a)this._doProcessBlock(n,l);l=n.splice(0,e),s.sigBytes-=r}return new o.init(l,r)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,s){return new t.init(s).finalize(e)}},_createHmacHelper:function(t){return function(e,s){return new u.HMAC.init(t,s).finalize(e)}}});var u=s.algo={};return s}(Math);$=(st=(X=it).lib).WordArray,tt=st.Hasher,et=[],st=X.algo.SHA1=tt.extend({_doReset:function(){this._hash=new $.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var s=this._hash.words,n=s[0],r=s[1],a=s[2],o=s[3],i=s[4],l=0;80>l;l++){if(16>l)et[l]=0|t[e+l];else{var c=et[l-3]^et[l-8]^et[l-14]^et[l-16];et[l]=c<<1|c>>>31}c=(n<<5|n>>>27)+i+et[l],c=20>l?c+(1518500249+(r&a|~r&o)):40>l?c+(1859775393+(r^a^o)):60>l?c+((r&a|r&o|a&o)-1894007588):c+((r^a^o)-899497514),i=o,o=a,a=r<<30|r>>>2,r=n,n=c}s[0]=s[0]+n|0,s[1]=s[1]+r|0,s[2]=s[2]+a|0,s[3]=s[3]+o|0,s[4]=s[4]+i|0},_doFinalize:function(){var t=this._data,e=t.words,s=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(s/4294967296),e[15+(n+64>>>9<<4)]=s,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=tt.clone.call(this);return t._hash=this._hash.clone(),t}}),X.SHA1=tt._createHelper(st),X.HmacSHA1=tt._createHmacHelper(st);it=it||function(t,e){var s={},n=s.lib={},r=function(){},a=n.Base={extend:function(t){r.prototype=this;var e=new r;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,s=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var r=0;r<t;r++)e[n+r>>>2]|=(s[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<s.length)for(r=0;r<t;r+=4)e[n+r>>>2]=s[r>>>2];else e.push.apply(e,s);return this.sigBytes+=t,this},clamp:function(){var e=this.words,s=this.sigBytes;e[s>>>2]&=4294967295<<32-s%4*8,e.length=t.ceil(s/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var s=[],n=0;n<e;n+=4)s.push(4294967296*t.random()|0);return new o.init(s,e)}}),i=s.enc={},l=i.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++){var r=e[n>>>2]>>>24-n%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n+=2)s[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(s,e/2)}},c=i.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++)s.push(String.fromCharCode(e[n>>>2]>>>24-n%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n++)s[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(s,e)}},d=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var s=this._data,n=s.words,r=s.sigBytes,a=this.blockSize,i=r/(4*a);if(e=(i=e?t.ceil(i):t.max((0|i)-this._minBufferSize,0))*a,r=t.min(4*e,r),e){for(var l=0;l<e;l+=a)this._doProcessBlock(n,l);l=n.splice(0,e),s.sigBytes-=r}return new o.init(l,r)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,s){return new t.init(s).finalize(e)}},_createHmacHelper:function(t){return function(e,s){return new u.HMAC.init(t,s).finalize(e)}}});var u=s.algo={};return s}(Math);!function(){var t=it,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,s=t.sigBytes,n=this._map;t.clamp(),t=[];for(var r=0;r<s;r+=3)for(var a=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,o=0;4>o&&r+.75*o<s;o++)t.push(n.charAt(a>>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var s=t.length,n=this._map;(r=n.charAt(64))&&(-1!=(r=t.indexOf(r))&&(s=r));for(var r=[],a=0,o=0;o<s;o++)if(o%4){var i=n.indexOf(t.charAt(o-1))<<o%4*2,l=n.indexOf(t.charAt(o))>>>6-o%4*2;r[a>>>2]|=(i|l)<<24-a%4*8,a++}return e.create(r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,s,n,r,a,o){return((t=t+(e&s|~e&n)+r+o)<<a|t>>>32-a)+e}function s(t,e,s,n,r,a,o){return((t=t+(e&n|s&~n)+r+o)<<a|t>>>32-a)+e}function n(t,e,s,n,r,a,o){return((t=t+(e^s^n)+r+o)<<a|t>>>32-a)+e}function r(t,e,s,n,r,a,o){return((t=t+(s^(e|~n))+r+o)<<a|t>>>32-a)+e}for(var a=it,o=(l=a.lib).WordArray,i=l.Hasher,l=a.algo,c=[],d=0;64>d;d++)c[d]=4294967296*t.abs(t.sin(d+1))|0;l=l.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var o=0;16>o;o++){var i=t[l=a+o];t[l]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}o=this._hash.words;var l=t[a+0],d=(i=t[a+1],t[a+2]),p=t[a+3],u=t[a+4],h=t[a+5],g=t[a+6],m=t[a+7],f=t[a+8],_=t[a+9],w=t[a+10],v=t[a+11],y=t[a+12],b=t[a+13],x=t[a+14],S=t[a+15],C=e(C=o[0],k=o[1],E=o[2],P=o[3],l,7,c[0]),P=e(P,C,k,E,i,12,c[1]),E=e(E,P,C,k,d,17,c[2]),k=e(k,E,P,C,p,22,c[3]);C=e(C,k,E,P,u,7,c[4]),P=e(P,C,k,E,h,12,c[5]),E=e(E,P,C,k,g,17,c[6]),k=e(k,E,P,C,m,22,c[7]),C=e(C,k,E,P,f,7,c[8]),P=e(P,C,k,E,_,12,c[9]),E=e(E,P,C,k,w,17,c[10]),k=e(k,E,P,C,v,22,c[11]),C=e(C,k,E,P,y,7,c[12]),P=e(P,C,k,E,b,12,c[13]),E=e(E,P,C,k,x,17,c[14]),C=s(C,k=e(k,E,P,C,S,22,c[15]),E,P,i,5,c[16]),P=s(P,C,k,E,g,9,c[17]),E=s(E,P,C,k,v,14,c[18]),k=s(k,E,P,C,l,20,c[19]),C=s(C,k,E,P,h,5,c[20]),P=s(P,C,k,E,w,9,c[21]),E=s(E,P,C,k,S,14,c[22]),k=s(k,E,P,C,u,20,c[23]),C=s(C,k,E,P,_,5,c[24]),P=s(P,C,k,E,x,9,c[25]),E=s(E,P,C,k,p,14,c[26]),k=s(k,E,P,C,f,20,c[27]),C=s(C,k,E,P,b,5,c[28]),P=s(P,C,k,E,d,9,c[29]),E=s(E,P,C,k,m,14,c[30]),C=n(C,k=s(k,E,P,C,y,20,c[31]),E,P,h,4,c[32]),P=n(P,C,k,E,f,11,c[33]),E=n(E,P,C,k,v,16,c[34]),k=n(k,E,P,C,x,23,c[35]),C=n(C,k,E,P,i,4,c[36]),P=n(P,C,k,E,u,11,c[37]),E=n(E,P,C,k,m,16,c[38]),k=n(k,E,P,C,w,23,c[39]),C=n(C,k,E,P,b,4,c[40]),P=n(P,C,k,E,l,11,c[41]),E=n(E,P,C,k,p,16,c[42]),k=n(k,E,P,C,g,23,c[43]),C=n(C,k,E,P,_,4,c[44]),P=n(P,C,k,E,y,11,c[45]),E=n(E,P,C,k,S,16,c[46]),C=r(C,k=n(k,E,P,C,d,23,c[47]),E,P,l,6,c[48]),P=r(P,C,k,E,m,10,c[49]),E=r(E,P,C,k,x,15,c[50]),k=r(k,E,P,C,h,21,c[51]),C=r(C,k,E,P,y,6,c[52]),P=r(P,C,k,E,p,10,c[53]),E=r(E,P,C,k,w,15,c[54]),k=r(k,E,P,C,i,21,c[55]),C=r(C,k,E,P,f,6,c[56]),P=r(P,C,k,E,S,10,c[57]),E=r(E,P,C,k,g,15,c[58]),k=r(k,E,P,C,b,21,c[59]),C=r(C,k,E,P,u,6,c[60]),P=r(P,C,k,E,v,10,c[61]),E=r(E,P,C,k,d,15,c[62]),k=r(k,E,P,C,_,21,c[63]);o[0]=o[0]+C|0,o[1]=o[1]+k|0,o[2]=o[2]+E|0,o[3]=o[3]+P|0},_doFinalize:function(){var e=this._data,s=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;s[r>>>5]|=128<<24-r%32;var a=t.floor(n/4294967296);for(s[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),s[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(s.length+1),this._process(),s=(e=this._hash).words,n=0;4>n;n++)r=s[n],s[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),a.MD5=i._createHelper(l),a.HmacMD5=i._createHmacHelper(l)}(Math),function(){var t,e=it,s=(t=e.lib).Base,n=t.WordArray,r=(t=e.algo).EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var s=(i=this.cfg).hasher.create(),r=n.create(),a=r.words,o=i.keySize,i=i.iterations;a.length<o;){l&&s.update(l);var l=s.update(t).finalize(e);s.reset();for(var c=1;c<i;c++)l=s.finalize(l),s.reset();r.concat(l)}return r.sigBytes=4*o,r}});e.EvpKDF=function(t,e,s){return r.create(s).compute(t,e)}}(),it.lib.Cipher||function(t){var e=(h=it).lib,s=e.Base,n=e.WordArray,r=e.BufferedBlockAlgorithm,a=h.enc.Base64,o=h.algo.EvpKDF,i=e.Cipher=r.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,s){this.cfg=this.cfg.extend(s),this._xformMode=t,this._key=e,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(t){return{encrypt:function(e,s,n){return("string"==typeof s?g:u).encrypt(t,e,s,n)},decrypt:function(e,s,n){return("string"==typeof s?g:u).decrypt(t,e,s,n)}}}});e.StreamCipher=i.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=h.mode={},c=function(t,e,s){var n=this._iv;n?this._iv=undefined:n=this._prevBlock;for(var r=0;r<s;r++)t[e+r]^=n[r]},d=(e.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}})).extend();d.Encryptor=d.extend({processBlock:function(t,e){var s=this._cipher,n=s.blockSize;c.call(this,t,e,n),s.encryptBlock(t,e),this._prevBlock=t.slice(e,e+n)}}),d.Decryptor=d.extend({processBlock:function(t,e){var s=this._cipher,n=s.blockSize,r=t.slice(e,e+n);s.decryptBlock(t,e),c.call(this,t,e,n),this._prevBlock=r}}),l=l.CBC=d,d=(h.pad={}).Pkcs7={pad:function(t,e){for(var s,r=(s=(s=4*e)-t.sigBytes%s)<<24|s<<16|s<<8|s,a=[],o=0;o<s;o+=4)a.push(r);s=n.create(a,s),t.concat(s)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},e.BlockCipher=i.extend({cfg:i.cfg.extend({mode:l,padding:d}),reset:function(){i.reset.call(this);var t=(e=this.cfg).iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var s=e.createEncryptor;else s=e.createDecryptor,this._minBufferSize=1;this._mode=s.call(e,this,t&&t.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var p=e.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),u=(l=(h.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?n.create([1398893684,1701076831]).concat(t).concat(e):e).toString(a)},parse:function(t){var e=(t=a.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var s=n.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return p.create({ciphertext:t,salt:s})}},e.SerializableCipher=s.extend({cfg:s.extend({format:l}),encrypt:function(t,e,s,n){n=this.cfg.extend(n);var r=t.createEncryptor(s,n);return e=r.finalize(e),r=r.cfg,p.create({ciphertext:e,key:s,iv:r.iv,algorithm:t,mode:r.mode,padding:r.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,s,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(s,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}})),h=(h.kdf={}).OpenSSL={execute:function(t,e,s,r){return r||(r=n.random(8)),t=o.create({keySize:e+s}).compute(t,r),s=n.create(t.words.slice(e),4*s),t.sigBytes=4*e,p.create({key:t,iv:s,salt:r})}},g=e.PasswordBasedCipher=u.extend({cfg:u.cfg.extend({kdf:h}),encrypt:function(t,e,s,n){return s=(n=this.cfg.extend(n)).kdf.execute(s,t.keySize,t.ivSize),n.iv=s.iv,(t=u.encrypt.call(this,t,e,s.key,n)).mixIn(s),t},decrypt:function(t,e,s,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),s=n.kdf.execute(s,t.keySize,t.ivSize,e.salt),n.iv=s.iv,u.decrypt.call(this,t,e,s.key,n)}})}(),function(){for(var t=it,e=t.lib.BlockCipher,s=t.algo,n=[],r=[],a=[],o=[],i=[],l=[],c=[],d=[],p=[],u=[],h=[],g=0;256>g;g++)h[g]=128>g?g<<1:g<<1^283;var m=0,f=0;for(g=0;256>g;g++){var _=(_=f^f<<1^f<<2^f<<3^f<<4)>>>8^255&_^99;n[m]=_,r[_]=m;var w=h[m],v=h[w],y=h[v],b=257*h[_]^16843008*_;a[m]=b<<24|b>>>8,o[m]=b<<16|b>>>16,i[m]=b<<8|b>>>24,l[m]=b,b=16843009*y^65537*v^257*w^16843008*m,c[_]=b<<24|b>>>8,d[_]=b<<16|b>>>16,p[_]=b<<8|b>>>24,u[_]=b,m?(m=w^h[h[h[y^w]]],f^=h[h[f]]):m=f=1}var x=[0,1,2,4,8,16,32,64,128,27,54];s=s.AES=e.extend({_doReset:function(){for(var t=(s=this._key).words,e=s.sigBytes/4,s=4*((this._nRounds=e+6)+1),r=this._keySchedule=[],a=0;a<s;a++)if(a<e)r[a]=t[a];else{var o=r[a-1];a%e?6<e&&4==a%e&&(o=n[o>>>24]<<24|n[o>>>16&255]<<16|n[o>>>8&255]<<8|n[255&o]):(o=n[(o=o<<8|o>>>24)>>>24]<<24|n[o>>>16&255]<<16|n[o>>>8&255]<<8|n[255&o],o^=x[a/e|0]<<24),r[a]=r[a-e]^o}for(t=this._invKeySchedule=[],e=0;e<s;e++)a=s-e,o=e%4?r[a]:r[a-4],t[e]=4>e||4>=a?o:c[n[o>>>24]]^d[n[o>>>16&255]]^p[n[o>>>8&255]]^u[n[255&o]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,o,i,l,n)},decryptBlock:function(t,e){var s=t[e+1];t[e+1]=t[e+3],t[e+3]=s,this._doCryptBlock(t,e,this._invKeySchedule,c,d,p,u,r),s=t[e+1],t[e+1]=t[e+3],t[e+3]=s},_doCryptBlock:function(t,e,s,n,r,a,o,i){for(var l=this._nRounds,c=t[e]^s[0],d=t[e+1]^s[1],p=t[e+2]^s[2],u=t[e+3]^s[3],h=4,g=1;g<l;g++){var m=n[c>>>24]^r[d>>>16&255]^a[p>>>8&255]^o[255&u]^s[h++],f=n[d>>>24]^r[p>>>16&255]^a[u>>>8&255]^o[255&c]^s[h++],_=n[p>>>24]^r[u>>>16&255]^a[c>>>8&255]^o[255&d]^s[h++];u=n[u>>>24]^r[c>>>16&255]^a[d>>>8&255]^o[255&p]^s[h++],c=m,d=f,p=_}m=(i[c>>>24]<<24|i[d>>>16&255]<<16|i[p>>>8&255]<<8|i[255&u])^s[h++],f=(i[d>>>24]<<24|i[p>>>16&255]<<16|i[u>>>8&255]<<8|i[255&c])^s[h++],_=(i[p>>>24]<<24|i[u>>>16&255]<<16|i[c>>>8&255]<<8|i[255&d])^s[h++],u=(i[u>>>24]<<24|i[c>>>16&255]<<16|i[d>>>8&255]<<8|i[255&p])^s[h++],t[e]=m,t[e+1]=f,t[e+2]=_,t[e+3]=u},keySize:8});t.AES=e._createHelper(s)}(),function(){var t=it,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,s=t.sigBytes,n=this._map;t.clamp(),t=[];for(var r=0;r<s;r+=3)for(var a=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,o=0;4>o&&r+.75*o<s;o++)t.push(n.charAt(a>>>6*(3-o)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var s=t.length,n=this._map;(r=n.charAt(64))&&(-1!=(r=t.indexOf(r))&&(s=r));for(var r=[],a=0,o=0;o<s;o++)if(o%4){var i=n.indexOf(t.charAt(o-1))<<o%4*2,l=n.indexOf(t.charAt(o))>>>6-o%4*2;r[a>>>2]|=(i|l)<<24-a%4*8,a++}return e.create(r,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){var t,e=(t=it).lib.WordArray;(t=t.enc).Utf16=t.Utf16BE={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n+=2)s.push(String.fromCharCode(e[n>>>2]>>>16-n%4*8&65535));return s.join("")},parse:function(t){for(var s=t.length,n=[],r=0;r<s;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return e.create(n,2*s)}},t.Utf16LE={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n+=2)s.push(String.fromCharCode((e[n>>>2]>>>16-n%4*8&65535)<<8&4278255360|(e[n>>>2]>>>16-n%4*8&65535)>>>8&16711935));return s.join("")},parse:function(t){for(var s=t.length,n=[],r=0;r<s;r++){var a=n,o=r>>>1,i=a[o],l=t.charCodeAt(r)<<16-r%2*16;a[o]=i|l<<8&4278255360|l>>>8&16711935}return e.create(n,2*s)}}}();it=it||function(t,e){var s={},n=s.lib={},r=function(){},a=n.Base={extend:function(t){r.prototype=this;var e=new r;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,s=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var r=0;r<t;r++)e[n+r>>>2]|=(s[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<s.length)for(r=0;r<t;r+=4)e[n+r>>>2]=s[r>>>2];else e.push.apply(e,s);return this.sigBytes+=t,this},clamp:function(){var e=this.words,s=this.sigBytes;e[s>>>2]&=4294967295<<32-s%4*8,e.length=t.ceil(s/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var s=[],n=0;n<e;n+=4)s.push(4294967296*t.random()|0);return new o.init(s,e)}}),i=s.enc={},l=i.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++){var r=e[n>>>2]>>>24-n%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n+=2)s[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(s,e/2)}},c=i.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++)s.push(String.fromCharCode(e[n>>>2]>>>24-n%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n++)s[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(s,e)}},d=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(i){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var s=this._data,n=s.words,r=s.sigBytes,a=this.blockSize,i=r/(4*a);if(e=(i=e?t.ceil(i):t.max((0|i)-this._minBufferSize,0))*a,r=t.min(4*e,r),e){for(var l=0;l<e;l+=a)this._doProcessBlock(n,l);l=n.splice(0,e),s.sigBytes-=r}return new o.init(l,r)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,s){return new t.init(s).finalize(e)}},_createHmacHelper:function(t){return function(e,s){return new u.HMAC.init(t,s).finalize(e)}}});var u=s.algo={};return s}(Math);!function(){var t=it,e=(r=t.lib).WordArray,s=r.Hasher,n=[],r=t.algo.SHA1=s.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var s=this._hash.words,r=s[0],a=s[1],o=s[2],i=s[3],l=s[4],c=0;80>c;c++){if(16>c)n[c]=0|t[e+c];else{var d=n[c-3]^n[c-8]^n[c-14]^n[c-16];n[c]=d<<1|d>>>31}d=(r<<5|r>>>27)+l+n[c],d=20>c?d+(1518500249+(a&o|~a&i)):40>c?d+(1859775393+(a^o^i)):60>c?d+((a&o|a&i|o&i)-1894007588):d+((a^o^i)-899497514),l=i,i=o,o=a<<30|a>>>2,a=r,r=d}s[0]=s[0]+r|0,s[1]=s[1]+a|0,s[2]=s[2]+o|0,s[3]=s[3]+i|0,s[4]=s[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,s=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(s/4294967296),e[15+(n+64>>>9<<4)]=s,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=s._createHelper(r),t.HmacSHA1=s._createHmacHelper(r)}(),function(){var t=it,e=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(t,s){t=this._hasher=new t.init,"string"==typeof s&&(s=e.parse(s));var n=t.blockSize,r=4*n;s.sigBytes>r&&(s=t.finalize(s)),s.clamp();for(var a=this._oKey=s.clone(),o=this._iKey=s.clone(),i=a.words,l=o.words,c=0;c<n;c++)i[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher;return t=e.finalize(t),e.reset(),e.finalize(this._oKey.clone().concat(t))}})}(),function(){var t,e=it,s=(t=e.lib).Base,n=t.WordArray,r=(t=e.algo).HMAC,a=t.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var s=this.cfg,a=r.create(s.hasher,t),o=n.create(),i=n.create([1]),l=o.words,c=i.words,d=s.keySize;for(s=s.iterations;l.length<d;){var p=a.update(e).finalize(i);a.reset();for(var u=p.words,h=u.length,g=p,m=1;m<s;m++){g=a.finalize(g),a.reset();for(var f=g.words,_=0;_<h;_++)u[_]^=f[_]}o.concat(p),c[0]++}return o.sigBytes=4*d,o}});e.PBKDF2=function(t,e,s){return a.create(s).compute(t,e)}}();var lt,ct,dt,pt;it=it||function(t,e){var s={},n=s.lib={},r=function(){},a=n.Base={extend:function(t){r.prototype=this;var e=new r;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,s=t.words,n=this.sigBytes;if(t=t.sigBytes,this.clamp(),n%4)for(var r=0;r<t;r++)e[n+r>>>2]|=(s[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<s.length)for(r=0;r<t;r+=4)e[n+r>>>2]=s[r>>>2];else e.push.apply(e,s);return this.sigBytes+=t,this},clamp:function(){var e=this.words,s=this.sigBytes;e[s>>>2]&=4294967295<<32-s%4*8,e.length=t.ceil(s/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var s=[],n=0;n<e;n+=4)s.push(4294967296*t.random()|0);return new o.init(s,e)}}),i=s.enc={},l=i.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++){var r=e[n>>>2]>>>24-n%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n+=2)s[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(s,e/2)}},c=i.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var s=[],n=0;n<t;n++)s.push(String.fromCharCode(e[n>>>2]>>>24-n%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,s=[],n=0;n<e;n++)s[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(s,e)}},d=i.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},p=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var s=this._data,n=s.words,r=s.sigBytes,a=this.blockSize,i=r/(4*a);if(e=(i=e?t.ceil(i):t.max((0|i)-this._minBufferSize,0))*a,r=t.min(4*e,r),e){for(var l=0;l<e;l+=a)this._doProcessBlock(n,l);l=n.splice(0,e),s.sigBytes-=r}return new o.init(l,r)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});n.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,s){return new t.init(s).finalize(e)}},_createHmacHelper:function(t){return function(e,s){return new u.HMAC.init(t,s).finalize(e)}}});var u=s.algo={};return s}(Math);!function(t){for(var e=it,s=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,a=[],o=[],i=function(t){return 4294967296*(t-(0|t))|0},l=2,c=0;64>c;){var d;t:{d=l;for(var p=t.sqrt(d),u=2;u<=p;u++)if(!(d%u)){d=!1;break t}d=!0}d&&(8>c&&(a[c]=i(t.pow(l,.5))),o[c]=i(t.pow(l,1/3)),c++),l++}var h=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(t,e){for(var s=this._hash.words,n=s[0],r=s[1],a=s[2],i=s[3],l=s[4],c=s[5],d=s[6],p=s[7],u=0;64>u;u++){if(16>u)h[u]=0|t[e+u];else{var g=h[u-15],m=h[u-2];h[u]=((g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3)+h[u-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+h[u-16]}g=p+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&d)+o[u]+h[u],m=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&a^r&a),p=d,d=c,c=l,l=i+g|0,i=a,a=r,r=n,n=g+m|0}s[0]=s[0]+n|0,s[1]=s[1]+r|0,s[2]=s[2]+a|0,s[3]=s[3]+i|0,s[4]=s[4]+l|0,s[5]=s[5]+c|0,s[6]=s[6]+d|0,s[7]=s[7]+p|0},_doFinalize:function(){var e=this._data,s=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return s[r>>>5]|=128<<24-r%32,s[14+(r+64>>>9<<4)]=t.floor(n/4294967296),s[15+(r+64>>>9<<4)]=n,e.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=n._createHelper(r),e.HmacSHA256=n._createHmacHelper(r)}(Math),ct=(lt=it).enc.Utf8,lt.algo.HMAC=lt.lib.Base.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=ct.parse(e));var s=t.blockSize,n=4*s;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),o=r.words,i=a.words,l=0;l<s;l++)o[l]^=1549556828,i[l]^=909522486;r.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher;return t=e.finalize(t),e.reset(),e.finalize(this._oKey.clone().concat(t))}}),ot.CryptoJS=it,function(){var t;t=ot.CryptoJS;var e={arrayBuf2str:function(t){for(var e=new Uint16Array(t),s=[],n=0;n<e.length;n++)s.push(e[n]);return String.fromCharCode.apply(null,s)},str2arrayBuf:function(t){for(var e=new ArrayBuffer(2*t.length),s=new Uint16Array(e),n=0;n<t.length;n++)s[n]=t.charCodeAt(n);return e},insertIntoNative:function(t,e,s){if(!(e-t-e.length<0))for(var n=0;n<s.length;n++)e[n+t]=s[n]},arrayNativeCpy:function(t,e,s,n,r){for(var a=0;a<r;a++)t[a+e]=s[a+n]},crypto2nativeArray:function(t){for(var e=t.words,s=t.sigBytes,n=new Uint8Array(s),r=0;r<s;r++){var a=e[r>>>2]>>>24-r%4*8&255;n[r]=a}return n},uint642native:function(t){var e=new Uint8Array(8),s=0;return e[s++]=(0xff00000000000000&t)>>56,e[s++]=(0xff000000000000&t)>>48,e[s++]=(0xff0000000000&t)>>40,e[s++]=(0xff00000000&t)>>32,e[s++]=(4278190080&t)>>24,e[s++]=(16711680&t)>>16,e[s++]=(65280&t)>>8,e[s++]=255&t,e},native2int64:function(t){var e=0;return t[e++]<<56|t[e++]<<48|t[e++]<<40|t[e++]<<32|t[e++]<<24|t[e++]<<16|t[e++]<<8|t[e++]<<0},native2cryptoArray:function(e){for(var s=e.length,n=[],r=0;r<s;r++)n[r>>>2]|=(255&e[r])<<24-r%4*8;return t.lib.WordArray.create(n,s)},native2string:function(t){var e=0,s=t.length,n="";for(e=0;e<s;e++)n+=String.fromCharCode(t[e]);return n},string2native:function(t){var e=0;len=t.length,nativeArray=new Uint8Array(len);for(e=0;e<len;e++)nativeArray[e]=t.charCodeAt(e);return nativeArray},hex2dec:function(t){return parseInt(t,16)}};at.DataConvertor=e}(),function(){var t=at.DataConvertor,e=ot.CryptoJS,s={magics:"01F00F45225233128895DD8165FF00AA",vers:1,versK:2,iter:10,keysize:8,KeyIDndigits:8,hashsIsIdentical:function(t,e){var s=t.length;if(s!=e.length)return!1;for(;s--;)if(t[s]!==e[s])return!1;return!0},exchangeException:function(t){this.error=t,this.name="exchange-crypto"},decryptArrayBuffer:function(t,e){var s=new Uint8Array(t);return this.decryptMessage(s,e)},decryptMessage:function(s,n){if(s.length<33)throw new this.exchangeException(1);if(s[0]!=this.vers)throw new this.exchangeException(2);var r=t.native2cryptoArray(s.subarray(1,9)),a=e.PBKDF2(n,r,{keySize:this.keysize,iterations:this.iter}),o=s.subarray(9,17),i=t.native2int64(o),l=t.native2cryptoArray(s.subarray(17,33)),c=t.native2cryptoArray(s.subarray(33,17+i));cipherParams=e.lib.CipherParams.create({ciphertext:c});var d=e.AES.decrypt(cipherParams,a,{iv:l,mode:e.mode.CBC,padding:e.pad.Pkcs7}),p=t.crypto2nativeArray(d),u=t.native2cryptoArray(p);if(0!=i){var h=s.subarray(17+i,17+i+32);t.native2cryptoArray(h);var g=e.algo.HMAC.create(e.algo.SHA256,a);g.update(u);var m=t.crypto2nativeArray(g.finalize());if(0==this.hashsIsIdentical(m,h))throw new this.exchangeException(3)}return t.crypto2nativeArray(d)},encryptMessage:function(s,n){var r=16+s.length-s.length%16,a=65+r,o=new Uint8Array(a),i=t.native2cryptoArray(s);o[0]=this.vers;var l=e.lib.WordArray.random(8);t.insertIntoNative(1,o,t.crypto2nativeArray(l));var c=t.uint642native(r+16);t.insertIntoNative(9,o,c);var d=e.lib.WordArray.random(16);t.insertIntoNative(17,o,t.crypto2nativeArray(d));var p=e.PBKDF2(n,l,{keySize:this.keysize,iterations:this.iter}),u=e.AES.encrypt(i,p,{iv:d,mode:e.mode.CBC,padding:e.pad.Pkcs7});t.insertIntoNative(33,o,t.crypto2nativeArray(u.ciphertext));var h=e.algo.HMAC.create(e.algo.SHA256,p);h.update(i);var g=t.crypto2nativeArray(h.finalize());return t.insertIntoNative(a-32,o,g),o},decryptMessagewithKey:function(n,r){if(n.length<33)throw new this.exchangeException(1);if(n[0]!=this.versK)throw new this.exchangeException(2);var a=t.native2cryptoArray(n.subarray(1,9)),o=s.HkdfExtract(a,r),i=s.HkdfExpand(o,"",4*this.keysize),l=n.subarray(9,17),c=t.native2int64(l),d=t.native2cryptoArray(n.subarray(17,33)),p=t.native2cryptoArray(n.subarray(33,17+c));cipherParams=e.lib.CipherParams.create({ciphertext:p});var u=e.AES.decrypt(cipherParams,i,{iv:d,mode:e.mode.CBC,padding:e.pad.Pkcs7}),h=t.crypto2nativeArray(u),g=t.native2cryptoArray(h);if(0!=c){var m=n.subarray(17+c,17+c+32);t.native2cryptoArray(m);var f=e.algo.HMAC.create(e.algo.SHA256,i);f.update(g);var _=t.crypto2nativeArray(f.finalize());if(0==this.hashsIsIdentical(_,m))throw new this.exchangeException(3)}return t.crypto2nativeArray(u)},encryptMessageWithKey:function(n,r){var a=16+n.length-n.length%16,o=65+a,i=new Uint8Array(o),l=t.native2cryptoArray(n);i[0]=this.versK;var c=e.lib.WordArray.random(8);t.insertIntoNative(1,i,t.crypto2nativeArray(c));var d=t.uint642native(a+16);t.insertIntoNative(9,i,d);var p=e.lib.WordArray.random(16);t.insertIntoNative(17,i,t.crypto2nativeArray(p));var u=s.HkdfExtract(c,r),h=s.HkdfExpand(u,"",4*this.keysize),g=e.AES.encrypt(l,h,{iv:p,mode:e.mode.CBC,padding:e.pad.Pkcs7});t.insertIntoNative(33,i,t.crypto2nativeArray(g.ciphertext));var m=e.algo.HMAC.create(e.algo.SHA256,h);m.update(l);var f=t.crypto2nativeArray(m.finalize());return t.insertIntoNative(o-32,i,f),i},deriveKey:function(t){var s=e.PBKDF2(t,e.enc.Hex.parse(this.magics),{keySize:this.keysize,iterations:this.iter});return e.enc.Base64.stringify(s)},keyID:function(s,n){for(var r=e.enc.Base64.parse(s),a=n,o=new Uint8Array(8),i=o.length-1;i>=0;i--)o[i]=255&a,a>>=8;for(var l=t.crypto2nativeArray(e.HmacSHA1(t.native2cryptoArray(o),r)),c=15&l[l.length-1],d=(((127&l[c])<<24|(255&l[c+1])<<16|(255&l[c+2])<<8|255&l[c+3])%[10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e9][this.KeyIDndigits-1]).toString();d.length<this.KeyIDndigits;)d+="0";return d},HkdfExtract:function(s,n){var r=[],a=e.enc.Base64.parse(n);if(0==s.length){var o=new Uint8Array(32);o.fill(0),r=t.native2cryptoArray(o)}else r=s;var i=e.algo.HMAC.create(e.algo.SHA256,r);return i.update(a),i.finalize()},HkdfExpand:function(s,n,r){for(var a=0,o=Math.ceil(r/32),i=t.crypto2nativeArray(e.enc.Base64.parse(n)),l=32*o,c=32+i.length+1,d=new Uint8Array(l),p=new Uint8Array(c),u=0;u<o;u++){t.arrayNativeCpy(p,0,d,a,32),t.arrayNativeCpy(p,32,i,0,i.length),p[c-1]=u+1;var h=e.algo.HMAC.create(e.algo.SHA256,s);if(0==u){var g=new Uint8Array(p.length-32);t.arrayNativeCpy(g,0,p,32,p.length-32),h.update(t.native2cryptoArray(g))}else h.update(t.native2cryptoArray(p));a=32*u;var m=t.crypto2nativeArray(h.finalize());t.arrayNativeCpy(d,a,m,0,m.length)}var f=new Uint8Array(r);return t.arrayNativeCpy(f,0,d,0,r),t.native2cryptoArray(f)}};rt.ExchangeCrypto=s}(),function(){var t=rt.ExchangeCrypto,e=at.DataConvertor,s=ot.CryptoJS;function n(t){return"object"!=typeof t}var r=function(){this._encryptMap={}};function a(t){var e={};["readyState","response","responseText","responseType","responseURL","status","statusText"].forEach((function(s){try{e[s]=t[s].toString()}catch(n){"responseText"!==s&&(e[s]="<exception:"+n.toString()+">")}}));try{var s=new Uint8Array(t.response);e.responseBytes=s.toString(),e.responseBytes.length>42&&(e.responseBytes=e.responseBytes.substring(0,35)+"... ("+s.length+")")}catch(n){}return e.response.length>42&&(e.response=e.response.substring(0,35)+"... ("+e.response.length+")"),e.headers=t.getAllResponseHeaders(),e.headers.length>88&&(e.headers=e.headers.substring(0,80)+"..."),JSON.stringify(e)}r.prototype.setPassword=function(e,s){if(void 0===s)return this.setPassword("http://localhost",e);s?this._encryptMap[e.toLowerCase()]=t.deriveKey(s):delete this._encryptMap[e.toLowerCase()]},r.prototype.encryptMsg=function(s,r){if(!s)return s;if(n(s)){var a=e.string2native(s);return t.encryptMessageWithKey(a,r)}return t.encryptMessageWithKey(s,r)},r.prototype.decryptMsg=function(e,s){return void 0===e?null:t.decryptMessagewithKey(e,s)},r.prototype.decryptMsgToString=function(s,n){if(void 0===s)return null;var r=t.decryptMessagewithKey(s,n);return e.native2string(r)},r.prototype.xhr=function(e,s,r){var o;if(void 0===r){for(var i in this._encryptMap)if(0==e.url.toLowerCase().indexOf(i)){o=this._encryptMap[i];break}}else r&&(o=t.deriveKey(r));var l=new XMLHttpRequest,c=e.options;c||(c={});var d=e.data&&n(e.data),p=e.data?"POST":"GET";if(c.method&&(p=c.method),l.open(p,e.url,!0,c.user,c.password),s&&(l.onreadystatechange=function(){if(4==l.readyState){var t={};for(var n in l)try{("function"!=typeof l[n]&&"object"!=typeof l[n]||"response"===n&&c.responseType)&&(t[n]=l[n])}catch(X){}if(t.responseURL||(t.responseURL=e.url),null==l.response)return t.response=null,t.responseText=null,void s(t);if(o)if("0"!==l.getResponseHeader("Content-Length")&&(l.response.byteLength>0||l.response.length>0))try{var r,i=new Uint8Array(l.response);r=d?this.decryptMsgToString(i,o):this.decryptMsg(i,o),t.response=r,t.responseText=t.response}catch(p){return void s({status:200===l.status?526:l.status,response:p,responseURL:e.url,requestString:a(l)})}else t.response=null,t.responseText=null;s(t)}}.bind(this)),c.timeout&&(l.timeout=c.timeout),o?l.responseType="arraybuffer":c.responseType&&(l.responseType=c.responseType),o&&e.data){e.data=this.encryptMsg(e.data,o);var u="undefined"!=typeof navigator?navigator.appVersion.match(/([0-9]+)[0-9.]*[ ]Safari/):null;u&&2==u.length&&5==u[1]&&(e.data=e.data.buffer)}o&&l.setRequestHeader("X-AVAST-APP-ID",t.keyID(o,0));try{l.send(e.data)}catch(X){s&&s({status:400,response:X.toString(),responseURL:e.url})}},nt.exports=r,pt=nt.exports.DataConvertor=e,dt=nt.exports.CryptoJS=s}();class ut{constructor(){this.versionproto=3,this.CryptoJS=dt,this.DataConvertor=pt}hashsIsIdentical(t,e){var s=t.length;if(s!=e.length)return!1;for(;s--;)if(t[s]!==e[s])return!1;return!0}decryptMessageWithKey(t,e){var s=this.CryptoJS.enc.Base64.parse(e),n=this.CryptoJS.enc.Base64.parse(t),r=this.DataConvertor.crypto2nativeArray(n);if(r.length<33)throw new Error("Decryption failed - Invalid format");if(r[0]!=this.versionproto)throw new Error("Decryption failed - Invalid version");var a=r.subarray(9,17),o=this.DataConvertor.native2int64(a),i=this.DataConvertor.native2cryptoArray(r.subarray(17,33)),l=this.DataConvertor.native2cryptoArray(r.subarray(33,17+o)),c=this.CryptoJS.lib.CipherParams.create({ciphertext:l}),d=this.CryptoJS.AES.decrypt(c,s,{iv:i,mode:this.CryptoJS.mode.CBC,padding:this.CryptoJS.pad.Pkcs7}),p=this.DataConvertor.crypto2nativeArray(d),u=this.DataConvertor.native2cryptoArray(p);if(0!=o){var h=r.subarray(17+o,17+o+32),g=this.CryptoJS.algo.HMAC.create(this.CryptoJS.algo.SHA256,s);g.update(u);var m=this.DataConvertor.crypto2nativeArray(g.finalize());if(0==this.hashsIsIdentical(m,h))throw new Error("Decryption failed - HMAC/ integrity corrupted")}return d.toString(this.CryptoJS.enc.Utf8)}encryptMessageWithKey(t,e){var s=this.CryptoJS.enc.Utf8.parse(t),n=this.CryptoJS.enc.Base64.parse(e),r=16+s.sigBytes-s.sigBytes%16,a=65+r,o=new Uint8Array(a);o[0]=this.versionproto;var i=this.CryptoJS.lib.WordArray.random(8);this.DataConvertor.insertIntoNative(1,o,this.DataConvertor.crypto2nativeArray(i));var l=this.DataConvertor.uint642native(r+16);this.DataConvertor.insertIntoNative(9,o,l);var c=this.CryptoJS.lib.WordArray.random(16);this.DataConvertor.insertIntoNative(17,o,this.DataConvertor.crypto2nativeArray(c));const d={iv:c,mode:this.CryptoJS.mode.CBC,padding:this.CryptoJS.pad.Pkcs7},p=this.CryptoJS.AES.encrypt(s,n,d);this.DataConvertor.insertIntoNative(33,o,this.DataConvertor.crypto2nativeArray(p.ciphertext));var u=this.CryptoJS.algo.HMAC.create(this.CryptoJS.algo.SHA256,n);u.update(s);var h=this.DataConvertor.crypto2nativeArray(u.finalize());return this.DataConvertor.insertIntoNative(a-32,o,h),this.CryptoJS.enc.Base64.stringify(this.DataConvertor.native2cryptoArray(o))}}const ht=new class{constructor(){this.apiVersion=1,this.key=null,this.crypto=new ut,this.masterPasswordCryptoEnabled=!1,this.dataCryptoEnabled=!1}initPamCrypto(){n("app.pam.InitSession",{av:3}).then((t=>{if(t&&t.s1&&t.av)switch(this.key=t.s1,this.apiVersion=t.av,this.apiVersion){case 1:this.masterPasswordCryptoEnabled=!1,this.dataCryptoEnabled=!1;break;case 2:this.masterPasswordCryptoEnabled=!0,this.dataCryptoEnabled=!1;break;case 3:this.masterPasswordCryptoEnabled=!0,this.dataCryptoEnabled=!0;break;default:this.masterPasswordCryptoEnabled=!1,this.dataCryptoEnabled=!1}else console.error("app.pam.InitSession","Invalid response")})).catch((t=>{console.error("app.pam.InitSession",JSON.stringify(t))}))}encrypt(t){const e=this.crypto.encryptMessageWithKey(t,this.key);return t="",e}decrypt(t){const e=this.crypto.decryptMessageWithKey(t,this.key);return t="",e}};const gt=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"div",a:{class:[{t:2,r:"classes"}]},f:[{t:7,e:"canvas",a:{width:"350",height:"28",id:[{t:2,r:"canvasId"}]}}]}]},css:".input__row {\n  text-align: start;\n}\n",data:function(){return{value:"",canvasId:"passwordCanvas",classes:""}},oncomplete(){const t=document.getElementById(this.get("canvasId")).getContext("2d");t.font="14px Arial",t.fillStyle="#fff",t.fillText(this.get("value"),0,20)}}),mt=t.extend({data:()=>({loading:!0,processing:!1,CONST:R,passwordStrength:"",password:null,initialPasswordData:null,showPassword:!1,showPasswordHistory:!1,submitted:!1,isServiceNameAndUrlEmpty:!0,isPasswordEmpty:!0,mode:R.MODES.VIEW,iconLoaded:!1,apiError:""}),components:{ButtonCopyToClipboard:Q,ButtonRevealSecret:K,PasswordIcon:W,ErrorLabel:q,WithFeature:Z,PasswordProblem:Y,SensitiveInput:gt},template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"modal"},f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}]}," ",{t:7,e:"div",a:{class:"modal__footer"}}],n:50,r:"loading"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"modal pam_form"},f:[" ",{t:7,e:"figure",a:{class:"pam_icon -preview"},f:[{t:7,e:"PasswordIcon",a:{imgSrc:[{t:2,r:"password.domainIco"}],serviceName:[{t:2,r:"password.customServiceName"}],url:[{t:2,r:"password.url"}],color:[{t:2,r:"password.color"}]}}]}," ",{t:7,e:"div",a:{class:"pam_edit__title"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_colors"},f:[{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{class:"pam_color",style:["background-color:",{t:2,rx:{r:"CONST.COLORS",m:[{t:30,n:"i"}]}}],type:"radio",name:"color",id:["color-",{t:2,x:{r:["i"],s:"_0+1"}}],value:[{t:2,x:{r:["i"],s:"_0+1"}}]},v:{click:"selectColor"},m:[{t:4,f:['checked="checked"'],n:50,x:{r:["i","password.color"],s:"_0+1==_1"}}]}],i:"i",r:"CONST.COLORS"}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","iconLoaded"],s:"_0!==_1&&!_2"}},{t:4,n:51,f:[{t:7,e:"h3",a:{class:"h3 pam_single_line"},f:[{t:2,r:"password.customServiceName"}]}],x:{r:["mode","CONST.MODES.PASSWORDVIEW","iconLoaded"],s:"_0!==_1&&!_2"}}]}," ",{t:4,f:[{t:7,e:"label",a:{for:"serviceName",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.password.title")'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"pam_value pam_single_line",id:"serviceName"},f:[{t:2,r:"password.customServiceName"}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:["input -full pam_value ",{t:4,f:["-error"],n:50,x:{r:["submitted","isServiceNameAndUrlEmpty"],s:"_0&&_1"}}],name:"serviceName",id:"serviceName",value:[{t:2,r:"password.customServiceName"}],readonly:[{t:2,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}],autofocus:"true"}}],x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","password.customServiceName"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"url",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.password.url")'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"pam_value pam_single_line"},f:[{t:7,e:"span",a:{class:"pam_hidden_href",id:"url"},v:{click:{n:"openUrl",d:[{t:2,r:"password.url"}]}},f:[{t:2,r:"password.url"}]}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:["input -full pam_value ",{t:4,f:["-error"],n:50,x:{r:["submitted","isServiceNameAndUrlEmpty"],s:"_0&&_1"}}],name:"url",id:"url",value:[{t:2,r:"password.url"}]}}],x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","password.url"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"userLoginName",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.password.username")'}}]}," ",{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",name:"userLoginName",id:"userLoginName",value:[{t:2,r:"password.userLoginName"}],readonly:[{t:2,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}]}}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","password.userLoginName"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"div",a:{style:"position:relative;"},f:[{t:7,e:"label",a:{for:"password",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.password.password")'}}," ",{t:4,f:[{t:7,e:"span",a:{class:[{t:2,r:"passwordStrength.class"}," -text pam_score"]},f:[{t:2,r:"passwordStrength.text"}]}],n:50,x:{r:["password.password.length","CONST.MODES.PASSWORDEDIT","mode","CONST.MODES.PASSWORDADD"],s:"_0>0&&(_2===_1||_2===_3)"}}]}," ",{t:7,e:"div",a:{class:["pam_pwd__wrap ",{t:4,f:["submit pam_-edit"],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0!=_1"}}]},f:[{t:4,f:[{t:7,e:"SensitiveInput",a:{value:[{t:2,r:"password.password"}],canvasId:"passwordCanvas",classes:"input pam_value pam_pwd"}}],n:50,r:"showPassword"},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{id:"password",name:"password",value:[{t:2,r:"password.password"}],type:"password",class:["input pam_value pam_pwd ",{t:4,f:["-error"],n:50,x:{r:["submitted","isPasswordEmpty"],s:"_0&&_1"}}],readonly:[{t:2,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}]}}],r:"showPassword"}," ",{t:4,f:[{t:7,e:"div",a:{class:"btn__split g-margin-left--10 g-relative"},f:[{t:7,e:"ButtonCopyToClipboard",a:{text:[{t:2,r:"password.password"}]}}," ",{t:7,e:"ButtonRevealSecret",a:{isRevealed:[{t:2,r:"showPassword"}]}}]}],n:50,r:"password.password"}]}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","password.password"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"WithFeature",a:{feature:"AccountNoteFeature"},f:[{t:7,e:"label",a:{for:"note",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.label.note")'}}]}," ",{t:7,e:"textarea",o:"eventHandler",a:{name:"note",class:"input -full pam_value pam_textarea",id:"note",value:[{t:2,r:"password.note"}]},m:[{t:4,f:['twoway="false" readonly="true"'],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}]}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW","password.note"],s:"_0!==_1||_2"}}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:7,e:"ErrorLabel",a:{error:[{t:2,r:"apiError"}]}}," ",{t:4,f:[{t:7,e:"button",a:{type:"button",class:"btn",autofocus:"true"},v:{click:{n:"edit",d:[{t:2,r:"password.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.edit")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}],n:50,x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mode","CONST.MODES.PASSWORDEDIT"],s:"_0===_1"},f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"cancelEdit"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -critical g-margin-left--10"},v:{click:{n:"delete",d:[{t:2,r:"password.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.delete")'}}]}]},{t:4,n:50,x:{r:["mode","CONST.MODES.PASSWORDEDIT"],s:"!(_0===_1)"},f:[" ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}],x:{r:["mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"}}]}],r:"loading"}]},oninit(){var t=this.get("passwordId");switch(t&&s.view("pam/Account/Detail"),this.get("mode")){case R.MODES.PASSWORDADD:this.set("password.color",Math.ceil(Math.random()*R.COLORS.length)),this.set("loading",!1);break;case R.MODES.PASSWORDVIEW:t&&this.getPasswordDetail(t).then((t=>{let e=((s=t).color||(s.color=7),s);var s;this.set("password",U(e)),this.set("initialPasswordData",U(e)),e=null,this.set("loading",!1)}))}this.on("close",(()=>{this.teardown()})),this.on("edit",(()=>{this.set("showPassword",!1),s.view("pam/Account/Edit"),this.set("mode",R.MODES.PASSWORDEDIT),this._setPasswordStrength(this.get("password"))})),this.on("cancelEdit",(()=>{this.set("showPassword",!1),s.view("pam/Account/Detail"),this.clearApiError(),this.set("password",U(this.get("initialPasswordData"))),this.set("mode",R.MODES.PASSWORDVIEW)})),this.on("PasswordProblem.viewPasswordDuplicates",(()=>{this.set("mode",R.MODES.LISTVIEW)})),this.on("PasswordProblem.closePasswordDetail",(()=>{this.set("mode",R.MODES.LISTVIEW)})),this.on("selectColor",(t=>{this.set("password.color",t.node.value)})),this.on("togglePassword",(()=>{var t=!this.get("showPassword");t&&m.account.passwordRevealed(),this.set("showPassword",t)})),this.observe("password.customServiceName password.url",(()=>{var t=this.get("password.customServiceName"),e=this.get("password.url"),s=!(t.length>0||e.length>0);this.set("isServiceNameAndUrlEmpty",s)}),{init:!1}),this.observe("password.password password.userLoginName",((t,e,s)=>{let n=this.get("password");const r=!n.password||0===n.password.length;this.set("isPasswordEmpty",r);const a=this.get("mode");a!==R.MODES.PASSWORDEDIT&&a!==R.MODES.PASSWORDADD||void 0===e&&"password.userLoginName"===s||this._setPasswordStrength(n),n=null}),{init:!1}),this.on("submit",(t=>{this.set("showPassword",!1);var e=this.get("password");this.set("submitted",!0),this.get("isServiceNameAndUrlEmpty")||this.get("isPasswordEmpty")||(this.set("processing",!0),ht.dataCryptoEnabled&&(e.password=e.password?ht.encrypt(e.password):e.password,e.note=e.note?ht.encrypt(e.note):e.note),e.color=e.color?parseInt(e.color):e.color,e.customServiceName=e.customServiceName?e.customServiceName.trim():null,e.url=e.url?e.url.trim():e.url,e.userLoginName=e.userLoginName?e.userLoginName.trim():e.userLoginName,this.get("mode")===R.MODES.PASSWORDEDIT?this.updatePassword(e).then((()=>{this.clearApiError(),m.account.edited(),this.fire("edited",e),e=null})).catch((t=>{this.setApiError("UpdatePAMPassword",t)})).then((()=>{this.set("processing",!1),this.teardown()})):this.addPassword(e).then((()=>{this.set("processing",!1),this.clearApiError(),m.account.createNew(),this.fire("edited",e),e=null})).catch((t=>{this.setApiError("AddPAMPassword",t)})).then((()=>{this.set("processing",!1),this.teardown()}))),t.original.preventDefault()})),this.on("delete",((t,e)=>{this.set("showPassword",!1),this.deletePassword(e).then((()=>{this.clearApiError(),m.account.deleted(),this.fire("edited",this.get("password"))})).catch((t=>{this.setApiError("DeletePAMPassword",t)})).then((()=>{this.set("processing",!1),this.teardown()}))})),this.on("openUrl",((t,e)=>{if(m.account.websiteLinkClicked(),!e)return;let s=this.get("password");this.updatePassword(s),s=null,/^[a-zA-Z]+[:][/[/]/.test(e)||(e="https://"+e),a.browse(e)}))},getPasswordDetail:t=>n("app.pam.GetPAMPasswordDetail",{id:parseInt(t),basic:!0}).then((t=>(ht.dataCryptoEnabled&&(t.password=t.password?ht.decrypt(t.password):t.password,t.note=t.note?ht.decrypt(t.note):t.note),t))).catch((t=>{console.error("GetPAMPasswordDetail",t)})),getPAMPasswordStrength:(t,e)=>n("app.pam.GetPAMPasswordStrength",{password:ht.masterPasswordCryptoEnabled?ht.encrypt(t):t,userLoginName:e}).then((e=>(t=null,e))).catch((t=>{console.error("GetPAMPasswordStrength",t)})),updatePassword:t=>n("app.pam.UpdatePAMPassword",t).then((t=>{console.log("UpdatePAMPassword",t)})),addPassword:t=>n("app.pam.AddPAMPassword",t).then((t=>{console.log("AddPAMPassword",t)})),deletePassword:t=>n("app.pam.DeletePAMPassword",t).then((t=>{console.log("DeletePAMPassword",t)})),clearApiError(){this.set("apiError","")},setApiError(e,s){this.set("apiError",t.localization.nls("DeletePAMPassword"===e?"passwords.errorLabel.delete":"passwords.errorLabel.save")),console.error(e,s)},setIconLoaded(){this.set("iconLoaded",!0)},_setPasswordStrength(t){this.getPAMPasswordStrength(t.password,t.userLoginName).then((e=>{this.set("passwordStrength",z(e.secureScore)),t=null}))},onteardown(){this.set("showPassword",!1),this.set("password",null),this.set("initialPasswordData",null),i.emit("sensitiveModal.initPamCrypto"),setTimeout((()=>{window.app.asyncCall("window.close",(t=>{}),[])}),0)}}),ft=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"modal pam_form"},f:[{t:7,e:"div",a:{class:"pam_color -preview",style:["background-color:",{t:2,rx:{r:"CONST.COLORS",m:[{r:["note.color"],s:"_0-1"}]}}]},f:[{t:7,e:"Icon",a:{name:"securenotes",cssCls:"pam_note"}}]}," ",{t:7,e:"div",a:{class:"pam_edit__title"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_colors"},f:[{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{class:"pam_color",style:["background-color:",{t:2,rx:{r:"CONST.COLORS",m:[{t:30,n:"i"}]}}],type:"radio",name:"color",id:["color-",{t:2,x:{r:["i"],s:"_0+1"}}],value:[{t:2,x:{r:["i"],s:"_0+1"}}]},v:{click:"selectColor"},m:[{t:4,f:['checked="checked"'],n:50,x:{r:["i","note.color"],s:"_0+1==_1"}}]}],i:"i",r:"CONST.COLORS"}]}],n:50,x:{r:["CONST.MODES.NOTEEDIT","mode","CONST.MODES.NOTEADD"],s:"_1===_0||_1===_2"}},{t:4,n:51,f:[{t:7,e:"h3",a:{class:"h3 pam_single_line"},f:[{t:2,r:"note.label"}]}],x:{r:["CONST.MODES.NOTEEDIT","mode","CONST.MODES.NOTEADD"],s:"_1===_0||_1===_2"}}]}," ",{t:7,e:"label",a:{for:"title",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNote.title")'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"pam_value pam_single_line"},f:[{t:2,r:"note.label"}]}],n:50,x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:["input -full pam_value ",{t:4,f:["-error"],n:50,x:{r:["submitted","islabelEmpty"],s:"_0&&_1"}}],name:"title",id:"title",value:[{t:2,r:"note.label"}],autofocus:"true"}}],x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}}," ",{t:7,e:"label",a:{for:"note",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNote.note")'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"pam_value"},f:[{t:2,r:"note.note"}]}],n:50,x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"textarea",o:"eventHandler",a:{name:"note",class:["input -full pam_value pam_textarea ",{t:4,f:["-error"],n:50,x:{r:["submitted","isnoteEmpty"],s:"_0&&_1"}}],id:"note",value:[{t:2,r:"note.note"}]}}],x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:7,e:"ErrorLabel",a:{error:[{t:2,r:"apiError"}]}}," ",{t:4,f:[{t:7,e:"button",a:{type:"button",class:"btn",autofocus:"true"},v:{click:{n:"edit",d:[{t:2,r:"note.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.edit")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}],n:50,x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mode","CONST.MODES.NOTEEDIT"],s:"_0===_1"},f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"cancelEdit"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -critical g-margin-left--10"},v:{click:{n:"delete",d:[{t:2,r:"note.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.delete")'}}]}]},{t:4,n:50,x:{r:["mode","CONST.MODES.NOTEEDIT"],s:"!(_0===_1)"},f:[" ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}],x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"}}]}]},components:{ErrorLabel:q},data:()=>({CONST:R,processing:!1,submitted:!1,islabelEmpty:!0,isnoteEmpty:!0,note:null,initialNoteData:null,apiError:""}),oninit(){var t=this.get("noteId");switch(t&&s.view("pam/Secure note/Detail"),this.get("mode")){case R.MODES.NOTEADD:this.set("note.color",Math.ceil(Math.random()*R.COLORS.length));break;case R.MODES.NOTEVIEW:this.getNoteDetail(t).then((t=>{let e=((s=t).color||(s.color=7),s);var s;this.set("note",U(e)),this.set("initialNoteData",U(e)),e=null}))}this.on("selectColor",(t=>{this.set("note.color",t.node.value)})),this.observe("note.label note.note",((t,e,s)=>{var n=0===t.length;this.set("is"+s.split(".")[1]+"Empty",n)}),{init:!1}),this.on("edit",(()=>{s.view("pam/Secure note/Edit"),this.set("mode",R.MODES.NOTEEDIT)})),this.on("cancelEdit",(()=>{s.view("pam/Secure note/Detail"),this.clearApiError(),this.set("mode",R.MODES.NOTEVIEW),this.set("note",U(this.get("initialNoteData")))})),this.on("submit",(t=>{var e=this.get("note");ht.dataCryptoEnabled&&(e.note=e.note?ht.encrypt(e.note):e.note),e.color=parseInt(e.color),e.label=e.label.trim(),this.set("submitted",!0),this.get("islabelEmpty")||this.get("isnoteEmpty")||(this.clearApiError(),this.set("processing",!0),this.get("mode")===R.MODES.NOTEEDIT?this.updateNote(e).then((()=>{m.secureNote.edited(),this.fire("edited")})).catch((t=>this.setApiError("UpdateNote",t))).then((()=>this.set("processing",!1))):this.addNote(e).then((()=>{m.secureNote.createNew(),this.fire("edited")})).catch((t=>this.setApiError("AddNote",t))).then((()=>this.set("processing",!1)))),e=null,t.original.preventDefault()})),this.on("delete",((t,e)=>{this.clearApiError(),this.set("processing",!0),this.deleteNote(e).then((()=>{m.secureNote.deleted(),this.fire("edited")})).catch((t=>this.setApiError("DeleteNote",t))).then((()=>this.set("processing",!1)))}))},getNoteDetail:t=>n("app.pamNotes.GetNoteDetail",t).then((t=>(ht.dataCryptoEnabled&&(t.note=t.note?ht.decrypt(t.note):t.note),t))).catch((t=>{console.error("GetNoteDetail",t)})),updateNote:t=>n("app.pamNotes.UpdateNote",t).then((t=>{console.log("UpdateNote",t)})),addNote:t=>n("app.pamNotes.CreateNote",t).then((t=>{console.log("AddNote",t)})),deleteNote:t=>n("app.pamNotes.DeleteNote",t).then((t=>{console.log("DeleteNote",t)})),clearApiError(){this.set("apiError","")},setApiError(e,s){this.set("apiError",t.localization.nls("DeleteNote"===e?"passwords.errorLabel.delete":"passwords.errorLabel.save")),console.error(e,s)},onteardown(){this.set("note",null),this.set("initialNoteData",null)}});var _t=".pam_panel {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  border: solid 1px rgba(0,0,0,0.1);\n  background-color: rgba(0,0,0,0.1);\n  padding: 15px 20px;\n  margin: 1% 0 1.6%;\n}\n.pam_panel strong {\n  font-weight: 700;\n}\n.pam_panel__right {\n  white-space: nowrap;\n  padding-left: 20px;\n}\n.pam_panel div.browsers {\n  margin-top: 10px;\n}\n.pam_panel .pam_sync_stopped_cont {\n  display: flex;\n  align-items: center;\n}\n.pam_panel .pam_sync_stopped_cont .pam_sync_stopped_icon {\n  position: relative;\n  margin-right: 20px;\n}\n.pam_panel .pam_sync_stopped_cont .pam_sync_stopped_icon .pam_sync_icon {\n  font-size: 35px;\n}\n.pam_panel .pam_sync_stopped_cont .pam_sync_stopped_icon .badge {\n  position: absolute;\n  top: 20;\n  right: 0;\n}\n";const wt=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"pam_panel"},f:[{t:16}]}]},css:_t,data:()=>({attr:null,cssCls:""})}),vt=t.extend({isolated:!0,components:{Panel:wt},template:{v:3,t:[{t:7,e:"Panel",f:[{t:7,e:"div",f:[{t:7,e:"p",f:[{t:3,x:{r:["nls","device"],s:'_0("passwords.syncRequest.message",_0("passwords.syncRequest.device."+_1))'}},{t:7,e:"br"},{t:7,e:"strong",f:[{t:2,r:"deviceName"},", ",{t:3,x:{r:["nls","confirmCode"],s:'_0("passwords.syncRequest.verificationCode",_1)'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_panel__right"},f:[{t:7,e:"Button",v:{domClick:"declineIdentity"},a:{cssCls:"-critical",disabled:[{t:2,r:"isSubmitted"}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.waitingIdentity.decline")'}}]}," ",{t:7,e:"Button",v:{domClick:"approveIdentity"},a:{disabled:[{t:2,r:"isSubmitted"}]},f:[{t:3,x:{r:["nls"],s:'_0("global.allow")'}}]}]}]}]},css:_t,data:()=>({identity:null,isSubmitted:!1}),computed:{confirmCode:function(){return this.get("identity")&&this.get("identity").confirmCode},device:function(){return this.get("_parsedDescription")&&this.get("_parsedDescription").prefix},deviceName:function(){return this.get("_parsedDescription")&&this.get("_parsedDescription").deviceName},_parsedDescription:function(){return F(this.get("identity.description"))}},oninit(){this.on("approveIdentity",(()=>this.approveIdentity())),this.on("declineIdentity",(()=>this.declineIdentity()))},approveIdentity(){var t=this.get("identity");console.log("Going to approve",t),n("app.pam.ApproveIdentity",{identity:t}),this.set("isSubmitted",!0)},declineIdentity(){var t=this.get("identity");console.log("Going to decline",t),n("app.pam.DeclineIdentity",{identity:t}),this.set("isSubmitted",!0)}}),yt=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"pam_progress"},f:[{t:7,e:"progress",a:{max:[{t:2,r:"browsersPasswordsCount"}],value:[{t:2,r:"importedCount"}]}}," ",{t:7,e:"div",a:{class:"pam_progress__percentage"},f:[{t:7,e:"span",a:{class:"pam_progress__spinner spinner -tiny"}}," ",{t:3,x:{r:["nls","importedPercentage"],s:'_0("passwords.list.importProgress",_1)'}}]}," ",{t:7,e:"div",a:{class:"pam_progress__count"},f:[{t:3,x:{r:["nls","importedCount","browsersPasswordsCount"],s:'_0("passwords.list.importProgress.2",_1,_2)'}}]}]}],n:50,r:"showProgress"}]},data:()=>({browsersPasswordsCount:0,importedCount:0,importedPercentage:0,showProgress:!1}),oninit(){this.importProgressOff=r.on("app.pam.onStatusChanged.importProgress",(t=>{console.log("onStatusChanged.importProgress",t),this.set("browsersPasswordsCount",t.browserpasswordscount),this.set("importedCount",t.importedcount),this.set("importedPercentage",Math.floor(t.importedcount/t.browserpasswordscount*100)),t.browserpasswordscount>t.importedcount?(this.set("showProgress",!0),this.fire("status","importing")):(this.set("showProgress",!1),this.fire("status","finished"))}))},onteardown(){this.importProgressOff&&this.importProgressOff()}});const bt=t.extend({css:".pam_top-menu {\n  top: 110px;\n  left: 27px;\n  z-index: 4;\n  position: absolute;\n  display: flex;\n}\n.pam_top-menu .pam_state_badge {\n  margin-top: -2px;\n  width: 10px;\n  padding-left: 5px;\n}\n.pam_top-menu .pam_state_badge .exclamation-mark {\n  font-size: 13px;\n}\n",template:{v:3,t:[{t:7,e:"div",a:{class:"pam_top-menu"},f:[{t:7,e:"div",a:{class:"tab__block -margins"},f:[{t:7,e:"div",a:{class:"tab__wrap"},f:[{t:4,f:[{t:7,e:"button",a:{class:["tab ",{t:2,x:{r:["subPage"],s:'_0==="passwordGuardian"?"-active":""'}}],sid:"setSubPage:passwordGuardian"},v:{click:{n:"setSubPage",a:"passwordGuardian"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian")'}}," ",{t:4,f:[{t:7,e:"span",a:{class:"pam_state_badge badge color-critical -bg -small g-margin-left--5"},f:[{t:7,e:"div",a:{class:"exclamation-mark"},f:["!"]}]}],n:50,x:{r:["globalState"],s:'_0==="critical"'}}]}],n:50,x:{r:["isLicensed","isBusinessEdition"],s:"_0&&!_1"}}," ",{t:7,e:"button",a:{class:["tab ",{t:2,x:{r:["subPage"],s:'_0==="accounts"?"-active":""'}}],sid:"setSubPage:accounts"},v:{click:{n:"setSubPage",a:"accounts"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.logins")'}}]}," ",{t:7,e:"button",a:{class:["tab ",{t:2,x:{r:["subPage"],s:'_0==="creditCards"?"-active":""'}}],sid:"setSubPage:creditCards"},v:{click:{n:"setSubPage",a:"creditCards"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCards")'}}]}," ",{t:7,e:"button",a:{class:["tab ",{t:2,x:{r:["subPage"],s:'_0==="secureNotes"?"-active":""'}}],sid:"setSubPage:secureNotes"},v:{click:{n:"setSubPage",a:"secureNotes"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNotes")'}}]}]}]}]}]},data:()=>({globalState:void 0,isBusinessEdition:l.isAfbEdition(),isLicensed:void 0}),setGlobalstate(t){this.set("globalState",t)}});const xt=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"pam_standalone_menu"},f:[{t:7,e:"div",a:{class:["pam_standalone_menu__item ",{t:2,x:{r:["subPage"],s:'_0==="passwordGuardian"?"-active":""'}}],sid:"setSubPage:passwordGuardian"},v:{click:{n:"setSubPage",a:"passwordGuardian"}},f:[{t:7,e:"svg",a:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"28",viewBox:"0 0 20 28"},f:[{t:7,e:"path",a:{fill:"#fff","fill-rule":"evenodd",d:"M8.884.2C.427 3.36 0 9.353 0 9.353v8.429a6.13 6.13 0 0 1 1.811 3.73l.256 2.122L7.5 27.576 6.442 16.682l-3.132-.66a1.458 1.458 0 0 1-1.168-1.419v-2.317l5.77 2.779c.435.21.72.631.748 1.105l.281 4.826c.635.44 1.483.44 2.118 0l.281-4.826c.028-.474.313-.896.748-1.105l5.77-2.78v2.318c0 .684-.486 1.275-1.168 1.419l-3.132.66L12.484 27.7l5.433-3.942.272-2.247A6.13 6.13 0 0 1 20 17.781V9.35s-.427-5.992-8.884-9.15a3.201 3.201 0 0 0-2.232 0z"}}]}," ",{t:7,e:"span",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian")'}}]}]}," ",{t:7,e:"div",a:{class:["pam_standalone_menu__item ",{t:2,x:{r:["subPage"],s:'_0==="accounts"?"-active":""'}}],sid:"setSubPage:accounts"},v:{click:{n:"setSubPage",a:"accounts"}},f:[{t:7,e:"svg",a:{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 27 25"},f:[{t:7,e:"path",a:{fill:"#FFF","fill-rule":"evenodd",d:"M25.799 25.795a.7.7 0 0 1-.495.205h-4.178l-.407-.406V22.75h-2.843l-.406-.406v-2.843h-2.844l-.406-.407-1.625-1.624-.265-.263a8.901 8.901 0 0 1-3.394.668C4.004 17.875 0 13.871 0 8.939S4.004.003 8.936.003s8.936 4.004 8.936 8.936a8.911 8.911 0 0 1-.476 2.883l-.26.442 8.861 8.862.003 4.183a.686.686 0 0 1-.201.486zM5.687 3.252a2.438 2.438 0 0 1 0 4.875 2.438 2.438 0 0 1 0-4.875z"}}]}," ",{t:7,e:"span",f:[{t:3,x:{r:["nls"],s:'_0("passwords.logins")'}}]}]}," ",{t:7,e:"div",a:{class:["pam_standalone_menu__item ",{t:2,x:{r:["subPage"],s:'_0==="creditCards"?"-active":""'}}],sid:"setSubPage:creditCards"},v:{click:{n:"setSubPage",a:"creditCards"}},f:[{t:7,e:"svg",a:{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",viewBox:"0 0 22 16"},f:[{t:7,e:"path",a:{fill:"#fff","fill-rule":"evenodd",d:"M0 7h22v7.006C22 15.107 21.11 16 20.009 16H1.99C.891 16 0 15.105 0 14.006V7zm0-4V1.994C0 .893.89 0 1.991 0H20.01C21.109 0 22 .895 22 1.994V3H0z"}}]}," ",{t:7,e:"span",f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCards")'}}]}]}," ",{t:7,e:"div",a:{class:["pam_standalone_menu__item ",{t:2,x:{r:["subPage"],s:'_0==="secureNotes"?"-active":""'}}],sid:"setSubPage:secureNotes"},v:{click:{n:"setSubPage",a:"secureNotes"}},f:[{t:7,e:"svg",a:{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 25 25"},f:[{t:7,e:"path",a:{fill:"#FFF","fill-rule":"evenodd",d:"M.55 25a.548.548 0 0 1-.55-.546V.546C0 .244.246 0 .55 0H4.4a.548.548 0 0 0-.55.546v1.637H3.3v2.182h2.2V2.183h-.55V.546A.548.548 0 0 0 4.4 0h4.4a.548.548 0 0 0-.55.546v1.637H7.7v2.182h2.2V2.183h-.55V.546A.548.548 0 0 0 8.8 0h4.4a.548.548 0 0 0-.55.546v1.637h-.55v2.182h2.2V2.183h-.55V.546A.548.548 0 0 0 13.2 0h4.4a.548.548 0 0 0-.55.546v1.637h-.55v2.182h2.2V2.183h-.55V.546A.548.548 0 0 0 17.6 0h3.85c.304 0 .55.244.55.546v23.908a.548.548 0 0 1-.55.546H.55zM3 9v2h14V9H3zm0 4v2h14v-2H3zm0 4v2h10v-2H3z"}}]}," ",{t:7,e:"span",f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNotes")'}}]}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_standalone_menu__bottom"},f:[{t:7,e:"div",a:{class:"pam_standalone_menu__item"},v:{click:"lock"},f:[{t:7,e:"SvgIcon",a:{name:"pam-lock",cssCls:"pam_unlock__icon"}}," ",{t:7,e:"span",f:[{t:3,x:{r:["nls"],s:'_0("passwords.lock")'}}]}]}]}],n:50,x:{r:["hasSystemLogin"],s:"!_0"}}]}]},css:".nui_standalone .pam_standalone_menu {\n  padding-top: 10px;\n  position: absolute;\n  top: 42px;\n  left: 0;\n  bottom: 0;\n  width: 218px;\n}\n.nui_standalone .pam_standalone_menu__bottom {\n  position: absolute;\n  width: 100%;\n  bottom: 10px;\n}\n.nui_standalone .pam_standalone_menu__bottom .pam_standalone_menu__item {\n  border: 0;\n}\n.nui_standalone .pam_standalone_menu__bottom .pam_standalone_menu__item .pam_unlock__icon {\n  width: 32px;\n  height: 28px;\n  font-size: 27px;\n}\n.nui_standalone .pam_standalone_menu__item {\n  display: flex;\n  align-items: center;\n  height: 50px;\n  color: #fff;\n  opacity: 0.5;\n  cursor: pointer;\n  padding: 0 22px;\n  border-left: 7px solid transparent;\n  transition: all 0.2s;\n  font-size: var(--font-size-small);\n}\n.nui_standalone .pam_standalone_menu__item:hover {\n  opacity: 1;\n}\n.nui_standalone .pam_standalone_menu__item.-active {\n  opacity: 1;\n  border-color: var(--color-highlight);\n}\n.nui_standalone .pam_standalone_menu__item svg {\n  margin-right: 19px;\n}\n.nui_standalone .pam_standalone_menu__item i {\n  margin-right: 14px;\n}\n[dir=rtl] .nui_standalone .pam_standalone_menu {\n  right: 0;\n}\n[dir=rtl] .nui_standalone .pam_standalone_menu .pam_standalone_menu__item {\n  border-right: 7px solid transparent;\n  border-left: 0;\n}\n[dir=rtl] .nui_standalone .pam_standalone_menu .pam_standalone_menu__item.-active {\n  border-color: var(--color-highlight);\n}\n[dir=rtl] .nui_standalone .pam_standalone_menu .pam_standalone_menu__item svg {\n  margin-right: 0;\n  margin-left: 19px;\n}\n[dir=rtl] .nui_standalone .pam_standalone_menu .pam_standalone_menu__item i {\n  margin-right: 0;\n  margin-left: 14px;\n}\n",data:()=>({globalState:void 0}),oninit(){this._init()},_init(){this.on("lock",(()=>{n("app.pam.LockPAMVault").then((t=>{m.vault.lockedManually(),console.log("LockPAMVault",t)})).catch((t=>{console.error("LockPAMVault",t)}))}))},setGlobalstate(t){this.set("globalState",t)}});const St=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"button",a:{class:"issue"},v:{click:{n:"viewPassword",d:[{t:2,r:"itemUID"}]}},f:[{t:7,e:"div",a:{class:"issue-icon"},f:[{t:7,e:"PasswordIcon",a:{imgSrc:[{t:2,r:"domainIco"}],serviceName:[{t:2,r:"customServiceName"}],url:[{t:2,r:"url"}],color:[{t:2,r:"color"}]}}]}," ",{t:7,e:"div",a:{class:"flex-cont"},f:[{t:7,e:"div",a:{class:"service-name"},f:[{t:2,x:{r:["customServiceName","url"],s:"_0||_1"}}]}," ",{t:7,e:"div",a:{class:"user-name -secondary text"},f:[{t:2,r:"userLoginName"}]}," ",{t:7,e:"div",a:{class:"action"},f:[{t:7,e:"span",a:{class:[{t:2,x:{r:["state"],s:'"color-"+_0'}}," -text"]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.details")'}}]}," ",{t:7,e:"Icon",a:{name:"arrow-more"}}]}]}]}],n:52,r:"issues"}]},css:".issue {\n  cursor: pointer;\n  padding: 13px 0;\n  border-bottom-style: solid;\n  border-bottom-width: 1px;\n  border-color: rgba(0,0,0,0.1);\n  margin-top: -1px;\n  width: 100%;\n  text-align: left;\n  text-decoration: none;\n}\n.issue:hover {\n  box-shadow: -20px 0 0 0 rgba(0,0,0,0.1), 20px 0 0 0 rgba(0,0,0,0.1);\n  background: rgba(0,0,0,0.1);\n}\n.issue:last-child {\n  border-color: rgba(0,0,0,0);\n}\n.issue .issue-icon {\n  overflow: hidden;\n  width: 25px;\n  height: 25px;\n  float: left;\n  margin-right: 18px;\n}\n.issue .issue-icon .pam_icon_image:not(.nomargin) {\n  margin-top: -25px;\n}\n.issue .issue-icon .pam_color__circle .pam_color__text {\n  font-size: 0.8em;\n}\n.issue .flex-cont {\n  display: flex;\n  justify-content: space-around;\n  margin-top: 3px;\n}\n.issue .flex-cont .service-name {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font-size: 15px;\n  width: 40%;\n  max-width: 220px;\n}\n.issue .flex-cont .user-name {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font-size: 14px;\n  padding-top: 2px;\n  width: 30%;\n}\n.issue .flex-cont .action {\n  font-size: 15px;\n  width: 30%;\n  text-align: right;\n}\n.issue .flex-cont .action .icon {\n  font-size: 13px;\n  margin-top: -1px;\n}\n[dir=rtl] .issue {\n  text-align: right;\n}\n[dir=rtl] .issue .flex-cont .action {\n  text-align: left;\n}\n[dir=rtl] .issue .issue-icon {\n  margin-right: 0;\n  margin-left: 18px;\n  float: right;\n}\n",data:function(){return{issues:[],state:""}}});const Ct=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"button",a:{class:"reused-group"},v:{click:{n:"viewGroup",d:[{t:2,r:"."}]}},f:[{t:7,e:"div",a:{class:"flex-cont"},f:[{t:7,e:"div",a:{class:"reused-group-icons"},f:[{t:4,f:[{t:4,f:[{t:7,e:"div",a:{class:"reused-group-icon"},f:[{t:7,e:"PasswordIcon",a:{imgSrc:[{t:2,r:"domainIco"}],serviceName:[{t:2,r:"customServiceName"}],url:[{t:2,r:"url"}],color:[{t:2,r:"color"}]}}]}],n:50,x:{r:["index"],s:"_0<3"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["index","icons.length"],s:"_0===3&&_1>3"},f:[{t:7,e:"div",a:{class:[{t:2,x:{r:["icons.length"],s:'_0>99?"smaller-font":""'}}," reused-group-icon plus color-white -text"]},f:[{t:7,e:"div",a:{class:"g-align--center"},f:["+",{t:3,x:{r:["icons.length","index"],s:"_0-_1"}}]}]}]}],x:{r:["index"],s:"_0<3"}}],n:52,i:"index",r:"icons"}]}," ",{t:7,e:"div",a:{class:"message"},f:[{t:3,x:{r:["nls","icons.length"],s:'_0("passwords.passwordGuardian.sharedPasswords",_1)'}}]}," ",{t:7,e:"div",a:{class:"action"},f:[{t:7,e:"span",a:{class:"color-attention -text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.details")'}}]}," ",{t:7,e:"Icon",a:{name:"arrow-more"}}]}]}]}],n:52,i:"index",r:"groups"}]},css:".reused-group {\n  cursor: pointer;\n  padding: 13px 0;\n  border-bottom-style: solid;\n  border-bottom-width: 1px;\n  border-color: rgba(0,0,0,0.1);\n  margin-top: -1px;\n  width: 100%;\n  text-align: left;\n  text-decoration: none;\n}\n.reused-group:hover {\n  box-shadow: -20px 0 0 0 rgba(0,0,0,0.1), 20px 0 0 0 rgba(0,0,0,0.1);\n  background: rgba(0,0,0,0.1);\n}\n.reused-group:last-child {\n  border-color: rgba(0,0,0,0);\n}\n.reused-group .flex-cont {\n  display: flex;\n  justify-content: space-around;\n}\n.reused-group .flex-cont .reused-group-icons {\n  width: 20%;\n  display: flex;\n  justify-content: flex-start;\n}\n.reused-group .flex-cont .reused-group-icons .reused-group-icon {\n  overflow: hidden;\n  width: 29px;\n  height: 29px;\n  float: left;\n  border: 2px solid #fff;\n  border-radius: 100px;\n  margin-right: -10px;\n}\n.reused-group .flex-cont .reused-group-icons .reused-group-icon .pam_icon_image:not(.nomargin) {\n  margin-top: -25px;\n}\n.reused-group .flex-cont .reused-group-icons .reused-group-icon .pam_color__circle .pam_color__text {\n  font-size: 0.8em;\n}\n.reused-group .flex-cont .reused-group-icons .reused-group-icon.plus {\n  font-size: 13px;\n  padding-top: 4px;\n  background-color: #babdc5;\n}\n.reused-group .flex-cont .reused-group-icons .reused-group-icon.plus.smaller-font {\n  font-size: 10px;\n  padding-top: 6px;\n}\n.reused-group .flex-cont .message {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  font-size: 15px;\n  width: 50%;\n  margin-top: 4px;\n}\n.reused-group .flex-cont .action {\n  font-size: 15px;\n  width: 30%;\n  text-align: right;\n  margin-top: 4px;\n}\n.reused-group .flex-cont .action .icon {\n  font-size: 13px;\n  margin-top: -1px;\n}\n[dir=rtl] .reused-group {\n  text-align: right;\n}\n[dir=rtl] .reused-group .flex-cont .action {\n  text-align: left;\n}\n",data:function(){return{reusedGroups:[]}},oninit(){this.observe("reusedGroups",(t=>{this._initGroup(t)}),{init:!0})},_initGroup(t){const e=[];for(const s of t){s.icons=[];for(const t of s)t&&s.icons.push({domainIco:t.domainIco,customServiceName:t.customServiceName,url:t.url,color:t.color});s.icons=H(s.icons,"customServiceName"),e.push(s)}e.sort((function(t,e){return e.length-t.length})),this.set("groups",e)}});const Pt=t.extend({template:{v:3,t:[{t:7,e:"Overlay",a:{cssCls:"pam_reused-group-overlay",txt:["{close:'",{t:3,x:{r:["nls"],s:'_0("global.close")'}},"'}"]},f:[{t:7,e:"div",a:{class:"keys-icon-cont"},f:[{t:7,e:"Icon",a:{name:"keys",cssCls:"keys-icon"}}]}," ",{t:7,e:"div",a:{class:"g-align--center g-margin-bottom--15"},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls","reusedGroup.length"],s:'_0("passwords.passwordGuardian.sharedPasswords.revealPassword",_1)'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--10 g-font--24"},f:[{t:2,x:{r:["showPassword","visiblePassword","maskedPassword"],s:"_0?_1:_2"}}," ",{t:7,e:"ButtonRevealSecret",a:{cssCls:"g-margin-left--5 -small",isRevealed:[{t:2,r:"showPassword"}]}}]}],n:50,r:"visiblePassword"}]}," ",{t:7,e:"div",a:{class:"group"},f:[{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--20"},f:[{t:3,x:{r:["nls","reusedGroup.length"],s:'_0("passwords.passwordGuardian.duplicatePasswords",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15 text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.vulnerablePasswords.desc")'}}]}," ",{t:7,e:"Issues",a:{issues:[{t:2,r:"reusedGroup"}],state:"attention"}}]}]}]}]},css:".pam_reused-group-overlay .overlay__contents .btn.-secondary {\n  border: 0;\n  padding-top: 4px;\n  color: var(--color-dark);\n}\n.pam_reused-group-overlay .overlay__contents .group {\n  border: 0;\n  box-shadow: none;\n  margin: 0 60px 15px;\n  padding: 25px 35px 25px 25px;\n}\n.pam_reused-group-overlay .overlay__contents .keys-icon-cont {\n  height: 53px;\n  width: 38px;\n  margin: 40px auto 10px;\n  position: relative;\n}\n.pam_reused-group-overlay .overlay__contents .keys-icon-cont .keys-icon {\n  font-size: 53px;\n  position: absolute;\n  top: 0;\n  right: 0;\n  opacity: 0.3;\n}\n",components:{Issues:St,ButtonRevealSecret:K},data:function(){return{reusedPassword:void 0,visiblePassword:void 0,maskedPassword:void 0,showPassword:!1,reusedGroup:[]}},oninit(){this.on("Overlay.close",(()=>{this.fire("overlayClose")})),this.observe("reusedPassword",((t,e)=>{this._updateReusedGroup(t,e)}),{init:!0})},_updateReusedGroup(t,e){const s=this.parent.parent.parent.findComponent("PasswordGuardian");if(!t){let n=this._getAnotherReusedPassword(e);n&&s.updateReusedPasswordOverlay(n),t=n,n=null}if(t){const e=[];for(const r of t.duplicateWith){const t=s.getVulnerablePasswordById(r,"reusedPasswords");t&&e.push(t)}const n=H(e,"customServiceName");this.set("reusedGroup",n),this._getReusedPassword(t)}else this.fire("overlayClose")},_getAnotherReusedPassword(t){const e=this.parent.parent.parent.findComponent("PasswordGuardian");let s;for(const n of t.duplicateWith)if(s=e.getVulnerablePasswordById(n,"reusedPasswords"),s)break;return s},_getReusedPassword(t){n("app.pam.GetPAMPasswordDetail",{id:parseInt(t.itemUID),basic:!0}).then((e=>{if(e&&e.password){ht.dataCryptoEnabled&&(e.password=ht.decrypt(e.password)),this.set("visiblePassword",e.password);const s="•";this.set("maskedPassword",s.repeat(e.password.length)),e=null,t=null}})).catch((t=>{console.error("GetPAMPasswordDetail error: ",JSON.stringify(t))}))}});const Et={upgradePasswordGuardian:"data:image/png;base64,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",secureNotes:"data:image/png;base64,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",creditCards:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAABwCAYAAADFezgmAAAThElEQVR42u1daWxcVxU2dAvtTOw0aUsLhZSWQtfQuh6PHSedGTtOkzZtSOaN/RY7ThenDUlbmrWkqQ0SixCLWISQAIGK4A8CxCbPJK6C2kogCEWAAKGCBIhNLZQdChIK5zv33lmexzNvZt6bec++V7qKPXm2Z94975zvLN85XV0RX6nU7Nnr77w7nhieXI1/z5w587IuvZb3GthsXJhMWSPJlHNvf9p+PJGyZtWm1x9LZuz7kml7fSo11aPv1jJavSNGdzJlj5EgzEAY+lPWwUTK3pVMO3cmMmaGvr4jkbYtEppHpcDM0DXjgxnrtfruLfE1mJq4Xh18f8p21qedN8zOzr58MbNDJufqRMYxi8KUtqYHRuwbDMM4S9/NJbaSGedmKRhHcfCN/CywCWuWlH2MtUrafGQg4wyS+Vmh7+wSWKwJhBbYB+zRtHnaNn1+X8baSEJ2QAiK9baBlHPb0O3WKn2XI+uhTK3AgQJ4btiy+yK/vJ6BkfGbkhnrAYVTEhnLoL/zan3Ho+at0BOOQxwctvuC+P19I9brgGdKHhB5RcP2tYthG71CtPq32CuhOQAug/5b0E7whPD3JNZ5mHZyy5b95+mTCCv2SDu382Ftsl7frr85OjpxAWmRFAHZQ8LzsR/tz9ijIyPT3fpEQrRwIKQ5jkPldwb7zJ4Nz4kEZK8UlMdJo2QHMpOv0qcTCrfW3MbYI7Pryo6bOtJg5PFMKpzSn3F2D6TMN2qc0jnPpQfagw7jnlBhomHzkkTK3C7fG6K4Dw1krAQF3s7Vp9ZO7YGwOR0APIxwCvDeWCIzkaGQ/mEhKOZR5IUAqvXpBbwQtGJ7nzF3h/299k5Pn5NITdyCAJ7CKcm0tWPDZudSfZJBeS6kwkU8YmptVN4zygsQ7SUtMlWKp9i78JouPfBTOChnwk8h3dyofoa+1NQroUUUTklk7P3QMtA2+oRbxh7WDtzUoZHJ19S7dmVhvD8+Z3yJ9s9ic8bv43njK7GC8cAlhYkLwvBZULgk6lWsI1KrHAFuwev6pJsCfuYart3IWBP1ro0Xcu8iwXghPpd9dGXeSKw8OZaMzeU+HJvLnqHXX4zns+9Z/aQRingFPBx4OiT8D8qSg+PsCZFHpE+9ERcy7exkz2V0/PLamiNrk8b4zaqTRoWWIcH4QixvfCR+0hiCZiFheYkE6LOrCmPXh+HzIWaC2AliKMXqN4qtIMaicUqdhTyIqPyynVrXXXTKiAnNYXwnVshtVK+vmjdvJIH455p8yXvofnLsShaYvPF30iiHZ8+EJ6i1ftP4ZYjKqlJJ+votiNpqnLIYOKVUO25UvTB2vGAcpcP+Nu130sH/ifZpMjEW44987oPVfqYnP7aONMkv6Lp9oXOTqXwSeR4ugmKNYh9GHiiVMmJaKpRp4egk3xyr1nVrnrk7ToLxx+58bgTfX3Z6+vxYIbsXhw/tcfH84jYd2oZ+9s/dT4ezMAgZY2SOEZktFl1TsHBwdOJi7bmIAuRZqN1a15EQPAYA6sYU9NpX4/nc+9T3a09NrYjNG9cu0D757E978rl0mO8FcApqUZBiKOZ9yOwOZsauXJbCgZiBzGmM17oO2kJ6J1+EtqBdWDmX27xyfqyPzMs/Yk8ZxUozev1BArH/w7XxwvhgmYA8BXMUGc1K1W3S9MqCa3svquCQZV4+5oUEgz0XEpSansuJ3FYShJ/wQZ8y1xDeOE4A9A+0/w2XtkJ75I3f0v/fT3jlvTArwCwkNCYEiwTkqui5/1M9qKorVfNbB4nCsXEb1dcuaeGASZEh6bF61xLWmCEN8smFuII8lPnJ1ZXaI/tsudfDr+WzvyPB+VG040RTK1CJT67xWxVOQaU+4kdL03MhUMpPhIeAEWGM+0gTfM2FSQrwZiq1BwvCydjJsWvU69f92DiXXvsVXW8shfsGnAJ+EJiDpXgK3cvRiSuWjHDAnRV5CsvToeHAoS2650X6H9iCNMpfyWQUKRD09UMkBD8gofkUm5454xvdJ8aH4ekQJvnhUgxGISVRzjIkjXI/lWmuizwxTFaRzzRCY0Ccg1za7/bMja8lQZhfmc++w609SCjuxPdweUlg3k7fPw/AGpsb29GRB8EwXoEwOyryUesa2N8BTzljbwHPR3o+B6hGZQh/P3qeC4XSBSp3djbyc1c9t/88EpAPQJPwoZeZEdYeeeN7CwNruYP0+vc7oT3gbSiqJyii4A0jUhpksg4CAcGgGMojUqMco/ewFVny6GgPSsZBezQLrti8cOQUZiT7GWR1WXsUctsqPB9O4Bn/Kg/JtxVjESZAsKvitWFzANoT9bZBuqswMYTtbqSk4J5IEdhhMxmBU1q/1d8Vnx+7mjTHx2Rc5CXae7oLRi/iI4Q7PsSvE/7o2GdFZRxVxal6Va4+Iw8E5gCgEg8IAmBBk7RQeBUZAjsKgThB5aPKA1AlL+cIEnicn5kzfk7/PtGdH7u505934+juy5kqsfmeC+GiIu+C8kQk5jhqSocFfJJIOdthBoMUFCawM8+oRGCX/VNWhEQ4xtcKdWdu71qGKzHsbIAWofiFjeJmNgFUbQbBwevQKIiW9qXt4SDZfCCw472IviqCwA7B7bigQN1Ceyx3Jj3KD4X2sPeiOh5mlzEDgXaYAw4BSPc/yPQ/MFBfynpTkcBOmeRB+r4zngvRFwT2qARty3VBIAZGJm9CDAPAkethqHhICQUOTYUDYJ6AVYIyPzBt/cOTNyrPp3/Y2dR2r4+elruhPXS/sCoqH+AVKj9t3YUEXX/a3InUP/BLX9rMcSUaxVKEOaLgc0DeD0wPzkkwB+3Rtt0AUCelT36HFoca94lqPwBYVWof4QBVDwKzhEIiStpdFaT3IWI3QkhQHtkmcIouhNZxzY73vrilJ3kc6tAQQneDSOSwIFB+k8kBoIFHEI0NvLSASc8MgMSHXWyJQhnzEk2GroLfCDjCBLm1Mp705MjENYjQwkP01+MyB2TMpDdg7GFNcwOYOpxVFMIoMnQyPdGvm7ZUgki3WUGgzV2OCCwDHONHtBTBPVl/Ehx5nvMP8FwoiVTvWuQQECwqsebto0DTKOrVIlL1wdtKAPa6CuGgUDoEBNlcYZqmelpJECL6ivMIzNWmA98D7dFIcgrXIlCUkGw0JnETqq9Xr7oM3eRz8QD1D1vpYvCNQC28HsVKxPfI+QDcNmdmnA1eaoWbWsWciwftsdgN4BA081pV0xaTm7ZokpHbCRhfi3wOd4Pk4JsRg5nBAyr4Rs4evo5MdyOtvNi15gY+AST4FEO/1baVEAaYqgrWPFEYITy6aUtVrb1dYBRi7FHwCw8Y6n0Rxsc95OAcJUq9OAOIxQQmINwhkKS5ts89tQLeDZCyFzvHbDQEkSQbDaToATJHmgztCnjRvcQDpJKBArOYO1VJIkL6Xso8RWdqa9Z3EheebIEfzJ21bdzkatVykv1usqde3oxMdG1SbDQAqYGM/eZ6lfHLbXHQi0yPpLWyNwLQCpqnF+0L7YNYiP8STJ6HzBJurv8hpnpwXbGknw6bXTUPjDJ8SLarko0mo7W6aUuV+8SlBuzhkHvswWQIDOMx5M5paJSxUWIJUVFgAByKeyv7x+nkBkPriHvIaquHS6CUQs0eOhxClSJgpELEcu/zarr0qqI9JOOgZtUfQrjl4JBtPxWZcOU0IWP3VplaHJgonm28SxB+Fv49BLHs7+4FuPIS9lVstOKAoQZMl16lc6/JOIB6lrEIIRTkkeBJbiRJJOpO7WOtxPIXlPSnzUMD6YlbvQR/WjFdyz4IV4txIJ/gnKz8urdZNxXYQMRBnJbL/lBgVFHST4fuNcK6mOlCVjTST3hmIgN8AG3rZ3a3xDhYxMGQNZMIdWdbefqlJ3MEeMUvHAC3GDWU0GiNlse1arrCspRmr9z2/X7xdGU36eqMgyFZ9YUWSX5IJfNI21BFhvgImyKPjLJWTFdHgSPFMRYKRzF4uEOZ1mbjQspzQcigKu5QuRO/EmRcyibnsDSbD/AkiBR+Lw04tA8gh+CFUeY2XWJSprnNr6FF/n9OMTen+raPiSCY1Ssx112NRpprMg6YOxFAqZkoY7OmFZMuqKd0QUk//sX3HugVRdPFHlp4ydAIDi4qICTkwnt01pVMqLXVu3BM1WYcKOkMojUjZx5lHxD2Kjw+4c0KpCjplzPpeNSYY3opqBGFxPYNSqDDRoaW7TJmqgkINIZwDkSPe+WBen3fgBU1GQeg6KGqOcgPyMEsFfUMeJggbgxXYnHMpngTPTPKFrDRGjBdQS7kWIodnEtDpKfgrXFDvJR5tPz/vGhsT4wDkGgQiQz6A+JwBisPbgZudb3eqC0hf7oBqJcoqWPvjLJqpqvTZGg5KqWXs63SDHLik8ISlVrF9kQ7RZ4GQleTcYCD8tLpx8815Dq4oIcJ8kw6LqBRM+mshxoxXRXjVENEhuZUfpHNXwKtXgp9EA/ylBbhPmH0JHfwA7ZtmCDULswFtEi7TVdwANa+llP6FMeA6fbqiXpmHHRSQMoPrtowwbCSrYZaMF2h8Iok48CTtxMGASlplGgNE3SbLgBwxFfCzkH2yjgInYC4baRsOKOAF3NBwsifcWtAxnVpJwcKZdjeayOMg4YFBI3h4nnj/egmiOa0FXvO+GY8n/sEfb07dcq/HAeysFEZJujWgAqAIxcUFsFumHHgRUB6T0+fg5ZP6JeOhnIkIHnaJ9C9uLgxqqOQnRHdBo3T3QXjCn9vvhEDk6w0TNAO9TDBBRoQWWXKLneSGMZsPI8Vfw0JCLoKolGcapqPDsexfPajVQ+StEe8kPs4aZRvGWf8R/dimOD4gmGCYeXPQAMye19pQESU6YDaDcCRHxP9QFCr00ARVT0BQZsnEo7/lncWrCUgWGhgK8aFBdfAtjRMkGpRyyKLsLFhrEvFoaDCragBJQBHJVy73GHVA6RBm1RbQMhUbMK0hPLX6PDfXUtAsLi3KeGVdnx4VLUjVV0+TDCs/Bm3BmwHAOfsOnAReVkNJ03rCQg6CMbmjP9geKDaPGWhTEAIf+wv/3++Zi77N4wHaytCl8MEExEYJqg0YKJMAyoCu9+CjfbdUsOONIFq6wsIHfTT5MHcojYAa7mAYMCgbH9duoYnLhhf7sTNV8MEFX1TaBZne1j5M24NKAjsxP/xAYBzKQC0FWmP3maqzzwJSN74ei0TwwKSN55wYZd9nRKQ8qc0SsMEoenAGEz6SGAXTXVhdicyTfrFXkxM9lkyI+Nqi27HbgHJPuW65tOdFpCKm8/0TadI3wwzf6Yagb0ZAM7aAyw58pyaLlfwaGJepP2M2hhNWsXEPF9+DebJhUlAik8U0zedTVEYJljSgGZJA5YAeN0Qgqoya6nss76bm50kgXiywsS43NxqJoaE5BBd8/mukC5R7VYaJgj7H+Zhgm4CO4JudT7fWYIJaR5tKYlYT0B4tChFUMtVmxcBodjJ59Amuyvka/FhgrtCOUwQ6XxoEDTirXUdaB1cqZ42b23pD9YTEI6M5o3nypvj1xMQTJ7E6I6wTL72bH5c9M2oDhPk7s1wmQnsthza9xJqj5/IrUfsg8zNw5yXqSEgnNCby/4SeZmuiC43fVPwZ8zQ82eKgi4pEO4OiYEJiAiGjfdj+qQc+fUCJk8i34JNX/8aZkhs4y8UA7mnawksN30zCsMEoT14+CGBb18Sg43Wg2AsGMZ/Ic9SsfO5ncArfqb6w4RTeJhgGX0zrMMExYgRVKo3Xlbpi4As9xXmYYLcmRkksLRzyLdwvRaQJgXF3XkgBPwZ1Z0Q3GjffqkWkJYBrYu+6Z366av7yw11MfHSOuhrdFgLiH/g0EXfbCt/RrWuxL++/mItIAEARbRTaOMwQdFW1DwEDeJ7bkkLSHCrXcMEFXEbnpb/H0ILSPDgEQMLyjsP+MifkdVp1Zu/aAGJHk4RGdYSgR0us2rC38jiTK/s5ISwemDV8lpAOmR+MJ3bRWD3yp/ZsNm5VBVroxSgXuJOC0ik3WQisFfQN4mdR7gFdSAoPUCdCkwRB+gIv1Q0DaZ8UeABOi0g4VjFzgNqlu3i+wiI7Rjz3h5V50FAgMZ5bKfeDe96FfVoKeHGD7jfaLaDviQAs4L366yDFml7iWQ9AYG9qyPRetfc9rFaZgCZ13Z0eApMQDgBBBeNx2Dp3eiu13EaAkJa4r7ICoheAd9/LSB6aQHRa3kLCFA20Hgju1qTeYC1Rn8P9lKeyh15AZH9LY43g+Dd470rOxl738kmBhRpAfFRQNBPq5b24AmVopeF543kkZuExN2CG/w9/LuIerB0BYQyvBRmD/EbtA8jnq/RQGcWh9ipADq8b5BCuyjr10fV/sXhde44aG4LsYkRQ3Q72YN8uS6ekI1ajjCbUNV1N8jBP3otal6Q7p8JNWOPi1hkDwm/5p/pVX8VBxgTCI+AqpMd8KgKW0+uDn5xkTE/lNbxsLftLi64pWwPU85tWkiCWxw2kNVgIDpFSKpnzy52sqGS/agw2SNlVjjoKNp0e+6VHjYhSUhNwpTCjJkJ6yTIqCykCVDog27Lkicz4ys1siPmRowb3VfWcecAj70Cox2EIL3rbuGhmHuSpZ6tKB7aFdaW4U1JPma+YegMcgUYfcUzRghY6V1/84w7oiOgWgwtuFGZF0U5+D9+/qFmAxNoRAAAAABJRU5ErkJggg==",passwordGuardian:"data:image/png;base64,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",accounts:"data:image/png;base64,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"},kt=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"pam_empty-screen"},f:[{t:7,e:"div",a:{class:"empty-screen-icon-cont"},f:[{t:7,e:"ImgIcon",a:{src:[{t:2,rx:{r:"ICONS",m:[{t:30,n:"screen"}]}}],cssCls:[{t:2,r:"screen"}]}}]}," ",{t:7,e:"div",a:{class:"empty-screen-content"},f:[{t:4,f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.emptyScreen.buy.desc")'}}]}," ",{t:7,e:"div",a:{class:"buttons"},f:[{t:7,e:"kin-button",v:{click:"upgradeNowBtn"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.emptyScreen.buy.button")'}}]}]}],n:50,x:{r:["screen"],s:'_0==="upgradePasswordGuardian"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["screen"],s:'_0==="passwordGuardian"'},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.emptyScreen.title")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.emptyScreen.desc")'}}]}," ",{t:7,e:"div",a:{class:"buttons"},f:[{t:7,e:"kin-button",v:{click:{n:"setSubPage",a:"accounts"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.emptyScreen.openLogins")'}}]}]}]},{t:4,n:50,x:{r:["screen"],s:'(!(_0==="passwordGuardian"))&&(_0==="accounts")'},f:[" ",{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.logins")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.accounts.emptyScreen.desc")'}}]}," ",{t:7,e:"div",a:{class:"buttons"},f:[{t:4,f:[{t:7,e:"kin-button",a:{class:"g-margin-right--10"},v:{click:"importBrowserPasswords"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.accounts.emptyScreen.importLogins")'}}]}],n:50,r:"showImportButton"}," ",{t:7,e:"kin-button",v:{click:"addPassword"},m:[{t:4,f:['type="secondary"'],n:50,r:"showImportButton"}],f:[{t:3,x:{r:["nls"],s:'_0("passwords.accounts.emptyScreen.addManually")'}}]}]}]},{t:4,n:50,x:{r:["screen"],s:'(!(_0==="passwordGuardian"))&&((!(_0==="accounts"))&&(_0==="creditCards"))'},f:[" ",{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCards")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCards.emptyScreen.desc")'}}]}," ",{t:7,e:"div",a:{class:"buttons"},f:[{t:7,e:"kin-button",v:{click:"addCreditCard"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.addCreditCard")'}}]}]}]},{t:4,n:50,x:{r:["screen"],s:'(!(_0==="passwordGuardian"))&&((!(_0==="accounts"))&&((!(_0==="creditCards"))&&(_0==="secureNotes")))'},f:[" ",{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNotes")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNotes.emptyScreen.desc")'}}]}," ",{t:7,e:"div",a:{class:"buttons"},f:[{t:7,e:"kin-button",v:{click:"addNote"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.addNote")'}}]}]}]}],x:{r:["screen"],s:'_0==="upgradePasswordGuardian"'}}]}]}]},css:".pam_empty-screen {\n  margin-top: 70px;\n  text-align: center;\n}\n.pam_empty-screen .empty-screen-icon-cont {\n  height: 134px;\n}\n.pam_empty-screen .empty-screen-icon-cont .passwordGuardian,\n.pam_empty-screen .empty-screen-icon-cont .upgradePasswordGuardian {\n  font-size: 105px;\n}\n.pam_empty-screen .empty-screen-icon-cont .accounts {\n  font-size: 96px;\n}\n.pam_empty-screen .empty-screen-icon-cont .secureNotes {\n  font-size: 98px;\n}\n.pam_empty-screen .empty-screen-icon-cont .creditCards {\n  font-size: 112px;\n}\n.pam_empty-screen .empty-screen-content {\n  margin: auto;\n}\n.pam_empty-screen .empty-screen-content .buttons {\n  margin-top: 40px;\n}\n",data:function(){return{ICONS:Et,screen:"",showImportButton:!1}},oninit(){const t=this.get("screen");"accounts"===t&&(this._getBrowsersPasswordsCount().then((t=>this.set("showImportButton",t>0))),this.on("importBrowserPasswords",(()=>{location.hash="#pam/settings/importExport"}))),"upgradePasswordGuardian"===t&&this.on("upgradeNowBtn",(()=>{c.openWindow(274)}))},_getBrowsersPasswordsCount:()=>n("app.pam.GetBrowserPasswordCount").then((t=>t.browserPasswordCount)).catch((t=>(console.error("GetBrowserPasswordCount",t),0)))});var At={exports:{}};!function(t,e){var s="__lodash_hash_undefined__",n=9007199254740991,r="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",l="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",u="[object Object]",h="[object Promise]",g="[object RegExp]",m="[object Set]",f="[object String]",_="[object Symbol]",w="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,S=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,E=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[r]=I[a]=I[v]=I[o]=I[y]=I[i]=I[l]=I[c]=I[d]=I[p]=I[u]=I[g]=I[m]=I[f]=I[w]=!1;var D="object"==typeof k&&k&&k.Object===Object&&k,O="object"==typeof self&&self&&self.Object===Object&&self,M=D||O||Function("return this")(),T=e&&!e.nodeType&&e,B=T&&t&&!t.nodeType&&t,N=B&&B.exports===T&&D.process,L=function(){try{return N&&N.binding("util")}catch(X){}}(),R=L&&L.isTypedArray;function z(t,e){for(var s=-1,n=t?t.length:0,r=0,a=[];++s<n;){var o=t[s];e(o,s,t)&&(a[r++]=o)}return a}function G(t,e){for(var s=-1,n=t?t.length:0;++s<n;)if(e(t[s],s,t))return!0;return!1}function W(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(X){}return e}function V(t){var e=-1,s=Array(t.size);return t.forEach((function(t,n){s[++e]=[n,t]})),s}function F(t){var e=-1,s=Array(t.size);return t.forEach((function(t){s[++e]=t})),s}var U,H,j,J=Array.prototype,Q=Function.prototype,K=Object.prototype,Z=M["__core-js_shared__"],q=(U=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",Y=Q.toString,$=K.hasOwnProperty,tt=K.toString,et=RegExp("^"+Y.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=M.Symbol,nt=M.Uint8Array,rt=K.propertyIsEnumerable,at=J.splice,ot=(H=Object.keys,j=Object,function(t){return H(j(t))}),it=Ft(M,"DataView"),lt=Ft(M,"Map"),ct=Ft(M,"Promise"),dt=Ft(M,"Set"),pt=Ft(M,"WeakMap"),ut=Ft(Object,"create"),ht=qt(it),gt=qt(lt),mt=qt(ct),ft=qt(dt),_t=qt(pt),wt=st?st.prototype:void 0,vt=wt?wt.valueOf:void 0,yt=wt?wt.toString:void 0;function bt(t){var e=-1,s=t?t.length:0;for(this.clear();++e<s;){var n=t[e];this.set(n[0],n[1])}}function xt(t){var e=-1,s=t?t.length:0;for(this.clear();++e<s;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,s=t?t.length:0;for(this.clear();++e<s;){var n=t[e];this.set(n[0],n[1])}}function Ct(t){var e=-1,s=t?t.length:0;for(this.__data__=new St;++e<s;)this.add(t[e])}function Pt(t){this.__data__=new xt(t)}function Et(t,e){var s=te(t)||$t(t)?function(t,e){for(var s=-1,n=Array(t);++s<t;)n[s]=e(s);return n}(t.length,String):[],n=s.length,r=!!n;for(var a in t)!e&&!$.call(t,a)||r&&("length"==a||Ht(a,n))||s.push(a);return s}function kt(t,e){for(var s=t.length;s--;)if(Xt(t[s][0],e))return s;return-1}bt.prototype.clear=function(){this.__data__=ut?ut(null):{}},bt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},bt.prototype.get=function(t){var e=this.__data__;if(ut){var n=e[t];return n===s?void 0:n}return $.call(e,t)?e[t]:void 0},bt.prototype.has=function(t){var e=this.__data__;return ut?void 0!==e[t]:$.call(e,t)},bt.prototype.set=function(t,e){return this.__data__[t]=ut&&void 0===e?s:e,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var e=this.__data__,s=kt(e,t);return!(s<0)&&(s==e.length-1?e.pop():at.call(e,s,1),!0)},xt.prototype.get=function(t){var e=this.__data__,s=kt(e,t);return s<0?void 0:e[s][1]},xt.prototype.has=function(t){return kt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var s=this.__data__,n=kt(s,t);return n<0?s.push([t,e]):s[n][1]=e,this},St.prototype.clear=function(){this.__data__={hash:new bt,map:new(lt||xt),string:new bt}},St.prototype.delete=function(t){return Vt(this,t).delete(t)},St.prototype.get=function(t){return Vt(this,t).get(t)},St.prototype.has=function(t){return Vt(this,t).has(t)},St.prototype.set=function(t,e){return Vt(this,t).set(t,e),this},Ct.prototype.add=Ct.prototype.push=function(t){return this.__data__.set(t,s),this},Ct.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.clear=function(){this.__data__=new xt},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var s=this.__data__;if(s instanceof xt){var n=s.__data__;if(!lt||n.length<199)return n.push([t,e]),this;s=this.__data__=new St(n)}return s.set(t,e),this};var At,It,Dt=(At=function(t,e){return t&&Mt(t,e,le)},function(t,e){if(null==t)return t;if(!ee(t))return At(t,e);for(var s=t.length,n=It?s:-1,r=Object(t);(It?n--:++n<s)&&!1!==e(r[n],n,r););return t});function Ot(t,e){var s=[];return Dt(t,(function(t,n,r){e(t,n,r)&&s.push(t)})),s}var Mt=function(t){return function(e,s,n){for(var r=-1,a=Object(e),o=n(e),i=o.length;i--;){var l=o[t?i:++r];if(!1===s(a[l],l,a))break}return e}}();function Tt(t,e){for(var s=0,n=(e=jt(e,t)?[e]:Gt(e)).length;null!=t&&s<n;)t=t[Zt(e[s++])];return s&&s==n?t:void 0}function Bt(t,e){return null!=t&&e in Object(t)}function Nt(t,e,s,n,c){return t===e||(null==t||null==e||!re(t)&&!ae(e)?t!=t&&e!=e:function(t,e,s,n,c,h){var w=te(t),b=te(e),x=a,S=a;w||(x=(x=Ut(t))==r?u:x);b||(S=(S=Ut(e))==r?u:S);var C=x==u&&!W(t),P=S==u&&!W(e),E=x==S;if(E&&!C)return h||(h=new Pt),w||ie(t)?Wt(t,e,s,n,c,h):function(t,e,s,n,r,a,c){switch(s){case y:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case v:return!(t.byteLength!=e.byteLength||!n(new nt(t),new nt(e)));case o:case i:case p:return Xt(+t,+e);case l:return t.name==e.name&&t.message==e.message;case g:case f:return t==e+"";case d:var u=V;case m:var h=2&a;if(u||(u=F),t.size!=e.size&&!h)return!1;var w=c.get(t);if(w)return w==e;a|=1,c.set(t,e);var b=Wt(u(t),u(e),n,r,a,c);return c.delete(t),b;case _:if(vt)return vt.call(t)==vt.call(e)}return!1}(t,e,x,s,n,c,h);if(!(2&c)){var k=C&&$.call(t,"__wrapped__"),A=P&&$.call(e,"__wrapped__");if(k||A){var I=k?t.value():t,D=A?e.value():e;return h||(h=new Pt),s(I,D,n,c,h)}}if(!E)return!1;return h||(h=new Pt),function(t,e,s,n,r,a){var o=2&r,i=le(t),l=i.length,c=le(e).length;if(l!=c&&!o)return!1;var d=l;for(;d--;){var p=i[d];if(!(o?p in e:$.call(e,p)))return!1}var u=a.get(t);if(u&&a.get(e))return u==e;var h=!0;a.set(t,e),a.set(e,t);var g=o;for(;++d<l;){var m=t[p=i[d]],f=e[p];if(n)var _=o?n(f,m,p,e,t,a):n(m,f,p,t,e,a);if(!(void 0===_?m===f||s(m,f,n,r,a):_)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var w=t.constructor,v=e.constructor;w==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(t),a.delete(e),h}(t,e,s,n,c,h)}(t,e,Nt,s,n,c))}function Lt(t){return!(!re(t)||function(t){return!!q&&q in t}(t))&&(se(t)||W(t)?et:E).test(qt(t))}function Rt(t){return"function"==typeof t?t:null==t?ce:"object"==typeof t?te(t)?function(t,e){if(jt(t)&&Jt(e))return Qt(Zt(t),e);return function(s){var n=function(t,e,s){var n=null==t?void 0:Tt(t,e);return void 0===n?s:n}(s,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,s){e=jt(e,t)?[e]:Gt(e);var n,r=-1,a=e.length;for(;++r<a;){var o=Zt(e[r]);if(!(n=null!=t&&s(t,o)))break;t=t[o]}if(n)return n;return!!(a=t?t.length:0)&&ne(a)&&Ht(o,a)&&(te(t)||$t(t))}(t,e,Bt)}(s,t):Nt(e,n,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=le(t),s=e.length;for(;s--;){var n=e[s],r=t[n];e[s]=[n,r,Jt(r)]}return e}(t);if(1==e.length&&e[0][2])return Qt(e[0][0],e[0][1]);return function(s){return s===t||function(t,e,s,n){var r=s.length,a=r,o=!n;if(null==t)return!a;for(t=Object(t);r--;){var i=s[r];if(o&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++r<a;){var l=(i=s[r])[0],c=t[l],d=i[1];if(o&&i[2]){if(void 0===c&&!(l in t))return!1}else{var p=new Pt;if(n)var u=n(c,d,l,t,e,p);if(!(void 0===u?Nt(d,c,n,3,p):u))return!1}}return!0}(s,t,e)}}(t):jt(e=t)?(s=Zt(e),function(t){return null==t?void 0:t[s]}):function(t){return function(e){return Tt(e,t)}}(e);var e,s}function zt(t){if(s=(e=t)&&e.constructor,n="function"==typeof s&&s.prototype||K,e!==n)return ot(t);var e,s,n,r=[];for(var a in Object(t))$.call(t,a)&&"constructor"!=a&&r.push(a);return r}function Gt(t){return te(t)?t:Kt(t)}function Wt(t,e,s,n,r,a){var o=2&r,i=t.length,l=e.length;if(i!=l&&!(o&&l>i))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var d=-1,p=!0,u=1&r?new Ct:void 0;for(a.set(t,e),a.set(e,t);++d<i;){var h=t[d],g=e[d];if(n)var m=o?n(g,h,d,e,t,a):n(h,g,d,t,e,a);if(void 0!==m){if(m)continue;p=!1;break}if(u){if(!G(e,(function(t,e){if(!u.has(e)&&(h===t||s(h,t,n,r,a)))return u.add(e)}))){p=!1;break}}else if(h!==g&&!s(h,g,n,r,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function Vt(t,e){var s,n,r=t.__data__;return("string"==(n=typeof(s=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==s:null===s)?r["string"==typeof e?"string":"hash"]:r.map}function Ft(t,e){var s=function(t,e){return null==t?void 0:t[e]}(t,e);return Lt(s)?s:void 0}var Ut=function(t){return tt.call(t)};function Ht(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||A.test(t))&&t>-1&&t%1==0&&t<e}function jt(t,e){if(te(t))return!1;var s=typeof t;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=t&&!oe(t))||(x.test(t)||!b.test(t)||null!=e&&t in Object(e))}function Jt(t){return t==t&&!re(t)}function Qt(t,e){return function(s){return null!=s&&(s[t]===e&&(void 0!==e||t in Object(s)))}}(it&&Ut(new it(new ArrayBuffer(1)))!=y||lt&&Ut(new lt)!=d||ct&&Ut(ct.resolve())!=h||dt&&Ut(new dt)!=m||pt&&Ut(new pt)!=w)&&(Ut=function(t){var e=tt.call(t),s=e==u?t.constructor:void 0,n=s?qt(s):void 0;if(n)switch(n){case ht:return y;case gt:return d;case mt:return h;case ft:return m;case _t:return w}return e});var Kt=Yt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(oe(t))return yt?yt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var s=[];return S.test(t)&&s.push(""),t.replace(C,(function(t,e,n,r){s.push(n?r.replace(P,"$1"):e||t)})),s}));function Zt(t){if("string"==typeof t||oe(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function qt(t){if(null!=t){try{return Y.call(t)}catch(X){}try{return t+""}catch(X){}}return""}function Yt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var s=function(){var n=arguments,r=e?e.apply(this,n):n[0],a=s.cache;if(a.has(r))return a.get(r);var o=t.apply(this,n);return s.cache=a.set(r,o),o};return s.cache=new(Yt.Cache||St),s}function Xt(t,e){return t===e||t!=t&&e!=e}function $t(t){return function(t){return ae(t)&&ee(t)}(t)&&$.call(t,"callee")&&(!rt.call(t,"callee")||tt.call(t)==r)}Yt.Cache=St;var te=Array.isArray;function ee(t){return null!=t&&ne(t.length)&&!se(t)}function se(t){var e=re(t)?tt.call(t):"";return e==c||"[object GeneratorFunction]"==e}function ne(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function re(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ae(t){return!!t&&"object"==typeof t}function oe(t){return"symbol"==typeof t||ae(t)&&tt.call(t)==_}var ie=R?function(t){return function(e){return t(e)}}(R):function(t){return ae(t)&&ne(t.length)&&!!I[tt.call(t)]};function le(t){return ee(t)?Et(t):zt(t)}function ce(t){return t}t.exports=function(t,e){return(te(t)?z:Ot)(t,Rt(e))}}(At,At.exports);const It=At.exports,Dt=t.extend({css:".pam_password-guardian .global-state .guardian-icon-cont {\n  height: 62px;\n  width: 77px;\n  margin: 20px auto 10px;\n  position: relative;\n}\n.pam_password-guardian .global-state .guardian-icon-cont .guardian-icon {\n  font-size: 62px;\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n.pam_password-guardian .global-state .guardian-icon-cont .guardian-icon.guardian {\n  opacity: 0.3;\n}\n.pam_password-guardian .group {\n  border-radius: 3px;\n  margin: 0 60px 15px;\n  padding: 25px 35px 25px 25px;\n  display: flex;\n  box-shadow: 0 2px 4px 0 rgba(44,49,86,0.2);\n}\n.pam_password-guardian .group .issue-cont {\n  width: 100%;\n}\n.pam_password-guardian .group .group-icon {\n  width: 32px;\n  height: 30px;\n  margin-right: 25px;\n  border-width: 2px;\n  border-style: solid;\n  border-radius: 100px;\n}\n.pam_password-guardian .group .group-icon .icon {\n  font-size: 15px;\n  margin: 5px 5px 5px 6px;\n}\n[dir=rtl] .pam_password-guardian .group {\n  padding: 25px 25px 25px 35px;\n}\n[dir=rtl] .pam_password-guardian .group .group-icon {\n  margin-left: 25px;\n  margin-right: 0;\n}\n",template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"pam_password-guardian"},f:[{t:4,f:[{t:7,e:"EmptyScreen",a:{screen:"upgradePasswordGuardian"}}],n:50,x:{r:["loading","isLicensed"],s:"_0===false&&!_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["loading","isEmptyVault.accounts"],s:"_0===false&&_1"},f:[{t:7,e:"EmptyScreen",a:{screen:"passwordGuardian"}}]},{t:4,n:50,x:{r:["loading","isEmptyVault.accounts"],s:"!(_0===false&&_1)"},f:[" ",{t:4,f:[{t:7,e:"ReusedGroupOverlay",a:{reusedPassword:[{t:2,r:"reusedGroupOverlay.reusedPassword"}]}}],n:50,r:"reusedGroupOverlay.show"}," ",{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,r:"loading"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"global-state"},f:[{t:7,e:"div",a:{class:"guardian-icon-cont"},f:[{t:7,e:"Icon",a:{name:"guardian",cssCls:"guardian guardian-icon"}}," ",{t:7,e:"Icon",a:{name:"guardian-shield",cssCls:["guardian-icon color-",{t:2,r:"globalState"}," -text"]}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"guardian-shield-error",cssCls:"guardian-icon"}}],n:50,x:{r:["globalState"],s:'_0==="critical"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["globalState"],s:'_0==="attention"'},f:[{t:7,e:"Icon",a:{name:"guardian-shield-warning",cssCls:"guardian-icon"}}]},{t:4,n:50,x:{r:["globalState"],s:'!(_0==="attention")'},f:[" ",{t:7,e:"Icon",a:{name:"guardian-shield-ok",cssCls:"guardian-icon"}}]}],x:{r:["globalState"],s:'_0==="critical"'}}]}]}," ",{t:7,e:"div",a:{class:"g-align--center g-margin-bottom--20"},f:[{t:4,f:[{t:7,e:"div",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.title.critical")'}}]}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.desc.critical")'}}]}],n:50,x:{r:["globalState"],s:'_0==="critical"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["globalState"],s:'_0==="attention"'},f:[{t:4,f:[{t:7,e:"div",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.title.cannotCheckLeaks")'}}]}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.desc.cannotCheckLeaks")'}}]}],n:50,r:"cannotCheckLeaked"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.title.warning")'}}]}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.desc.warning")'}}]}],r:"cannotCheckLeaked"}]},{t:4,n:50,x:{r:["globalState"],s:'!(_0==="attention")'},f:[" ",{t:7,e:"div",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.title.ok")'}}]}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.globalState.desc.ok")'}}]}]}],x:{r:["globalState"],s:'_0==="critical"'}}]}," ",{t:7,e:"div",f:[{t:8,r:"leaked_partial"}," ",{t:8,r:"duplicateToLeaked_partial"}," ",{t:8,r:"reusedGroups_partial"}," ",{t:8,r:"weak_partial"}]}],r:"loading"}]}],x:{r:["loading","isLicensed"],s:"_0===false&&!_1"}}]}],n:50,x:{r:["subPage"],s:'_0==="passwordGuardian"'}}," "],p:{leaked_partial:[{t:4,f:[{t:7,e:"div",a:{class:"group",sid:"leaked"},f:[{t:7,e:"div",a:{class:"group-icon color-critical -text"},f:[{t:7,e:"Icon",a:{name:"exclamation"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls","leakedPasswords.length"],s:'_0("passwords.passwordGuardian.leakedAccounts",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15 text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.vulnerablePasswords.desc")'}}]}," ",{t:7,e:"Issues",a:{issues:[{t:2,r:"leakedPasswords"}],state:"critical"}}]}]}],n:50,x:{r:["leakedPasswords.length"],s:"_0>0"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["cannotCheckLeaked"],s:"_0"},f:[{t:7,e:"div",a:{class:"group",sid:"leaked"},f:[{t:7,e:"div",a:{class:"group-icon color-attention -text"},f:[{t:7,e:"Icon",a:{name:"titlebar-help"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.leakedAccounts.cannotCheckLeaks")'}}]}," ",{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.leakedAccounts.cannotCheckLeaks.desc")'}}]}]}]}]},{t:4,n:50,x:{r:["cannotCheckLeaked"],s:"!(_0)"},f:[" ",{t:7,e:"div",a:{class:"group",sid:"leaked"},f:[{t:7,e:"div",a:{class:"group-icon color-ok -text"},f:[{t:7,e:"Icon",a:{name:"tick"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noLeakedAccounts")'}}]}," ",{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noLeakedAccounts.desc")'}}]}]}]}]}],x:{r:["leakedPasswords.length"],s:"_0>0"}}],duplicateToLeaked_partial:[{t:4,f:[{t:7,e:"div",a:{class:"group",sid:"duplicateToLeaked"},f:[{t:7,e:"div",a:{class:"group-icon color-critical -text"},f:[{t:7,e:"Icon",a:{name:"exclamation"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls","duplicateToLeakedPasswords.length"],s:'_0("passwords.passwordGuardian.duplicateToLeakedPasswords",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15 text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.duplicateToLeakedPasswords.desc")'}}]}," ",{t:7,e:"Issues",a:{issues:[{t:2,r:"duplicateToLeakedPasswords"}],state:"critical"}}]}]}],n:50,x:{r:["duplicateToLeakedPasswords.length"],s:"_0>0"}}],reusedGroups_partial:[{t:4,f:[{t:7,e:"div",a:{class:"group",sid:"reusedGroups"},f:[{t:7,e:"div",a:{class:"group-icon color-attention -text"},f:[{t:7,e:"Icon",a:{name:"exclamation"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls","reusedPasswords.length"],s:'_0("passwords.passwordGuardian.duplicatePasswords",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15 text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.vulnerablePasswords.desc")'}}]}," ",{t:7,e:"ReusedGroups",a:{reusedGroups:[{t:2,r:"reusedPasswordGroups"}]}}]}]}],n:50,x:{r:["reusedPasswords.length"],s:"_0>0"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["reusedPasswords.length","duplicateToLeakedPasswords.length"],s:"_0===0&&_1===0"},f:[{t:7,e:"div",a:{class:"group",sid:"reusedGroups"},f:[{t:7,e:"div",a:{class:"group-icon color-ok -text"},f:[{t:7,e:"Icon",a:{name:"tick"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noDuplicatePasswords")'}}]}," ",{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noDuplicatePasswords.desc")'}}]}]}]}]}],x:{r:["reusedPasswords.length"],s:"_0>0"}}],weak_partial:[{t:4,f:[{t:7,e:"div",a:{class:"group",sid:"weak"},f:[{t:7,e:"div",a:{class:"group-icon color-attention -text"},f:[{t:7,e:"Icon",a:{name:"exclamation"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls","weakPasswords.length"],s:'_0("passwords.passwordGuardian.weakPasswords",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15 text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.vulnerablePasswords.desc")'}}]}," ",{t:7,e:"Issues",a:{issues:[{t:2,r:"weakPasswords"}],state:"attention"}}]}]}],n:50,x:{r:["weakPasswords.length"],s:"_0>0"}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"group",sid:"weak"},f:[{t:7,e:"div",a:{class:"group-icon color-ok -text"},f:[{t:7,e:"Icon",a:{name:"tick"}}]}," ",{t:7,e:"div",a:{class:"issue-cont"},f:[{t:7,e:"div",a:{class:"g-font--bold"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noWeakPasswords")'}}]}," ",{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.noWeakPasswords.desc")'}}]}]}]}],x:{r:["weakPasswords.length"],s:"_0>0"}}]}},components:{Issues:St,ReusedGroups:Ct,ReusedGroupOverlay:Pt,PasswordIcon:W,EmptyScreen:kt},data:()=>({CONST:R,globalState:"ok",cannotCheckLeaked:void 0,leakedPasswords:[],duplicateToLeakedPasswords:[],weakPasswords:[],reusedPasswords:[],reusedPasswordGroups:[],reusedGroupOverlay:{show:!1,reusedPassword:void 0}}),oninit(){this.searchObj={},this.on("Issues.viewPassword",((t,e)=>{this.showPasswordDetail(e)})),this.on("PasswordProblem.viewPasswordDuplicates",(()=>{this.set("mode",R.MODES.LISTVIEW)})),this.on("*.overlayClose",(()=>{this.set("reusedGroupOverlay.show",!1)})),this.on("ReusedGroups.viewGroup",((t,e)=>{this.updateReusedPasswordOverlay(e[0]),this.set("reusedGroupOverlay.show",!0)})),this.on("PasswordDetails.edited",(t=>{this.parent.findComponent("Accounts").passwordEdited(t)})),this.on("PasswordDetails.close",(()=>{this.set("mode",R.MODES.LISTVIEW)}))},showPasswordDetail(t){this.set("passwordId",parseInt(t)),this.set("mode",R.MODES.PASSWORDVIEW),N("passwordDetails",{width:500,height:594,params:{passwordId:parseInt(t),mode:R.MODES.PASSWORDVIEW}})},updateVulnerablePasswords(t){const e=function(t){return!0===t.isLeaked},s=function(t){return t.leakDuplicateWith&&t.leakDuplicateWith.length>0},n=function(t){return t.duplicateWith&&t.duplicateWith.length>0},r=It(t,(t=>e(t))),a=It(t,(t=>!e(t)&&s(t))),o=It(t,(t=>!e(t)&&!s(t)&&n(t))),i={cannotCheckLeaked:false,leakedPasswords:r,weakPasswords:It(t,(t=>!e(t)&&!s(t)&&!n(t)&&function(t){return t.isWeak}(t))),reusedPasswords:o,duplicateToLeakedPasswords:a};this.searchObj={leakedPasswords:this._createSearchObj(i.leakedPasswords),duplicateToLeakedPasswords:this._createSearchObj(i.duplicateToLeakedPasswords),reusedPasswords:this._createSearchObj(i.reusedPasswords),weakPasswords:this._createSearchObj(i.weakPasswords),allVulnerablePasswords:this._createSearchObj(i.leakedPasswords.concat(i.duplicateToLeakedPasswords).concat(i.weakPasswords).concat(i.reusedPasswords))},this.set({leakedPasswords:i.leakedPasswords,duplicateToLeakedPasswords:i.duplicateToLeakedPasswords,reusedPasswords:i.reusedPasswords,reusedPasswordGroups:this._getReusedPasswordGroups(i.reusedPasswords),weakPasswords:i.weakPasswords,cannotCheckLeaked:false});const l=this._getGlobalState(i);this.set("globalState",l);const c=this.parent.findComponent("TopMenu"),d=this.parent.findComponent("StandAloneMenu");d?d.setGlobalstate(l):c.setGlobalstate(l),this.updateReusedPasswordOverlay(this.get("reusedGroupOverlay.reusedPassword"))},getVulnerablePasswordById(t,e){const s=this.searchObj[e]||this.searchObj.allVulnerablePasswords;if(s)return s[parseInt(t)]},updateReusedPasswordOverlay(t){if(!t)return;const e=this.getVulnerablePasswordById(t.itemUID,"reusedPasswords");this.set("reusedGroupOverlay.reusedPassword",e),this.parent.findComponent("Accounts").set("reusedGroupOverlay.reusedPassword",e)},_getGlobalState(t){let e="ok";return t.leakedPasswords.length>0||t.duplicateToLeakedPasswords.length>0?e="critical":(t.cannotCheckLeaked||t.reusedPasswords.length>0||t.weakPasswords>0)&&(e="attention"),e},_createSearchObj(t){const e={};for(let s=0,n=t.length;s<n;s++)e[t[s].itemUID]=t[s];return e},_getReusedPasswordGroups(t){const e={};for(const n of t){if(!n.duplicateWith)return;-1===n.duplicateWith.indexOf(n.itemUID)&&n.duplicateWith.push(parseInt(n.itemUID));const t=n.duplicateWith.sort();e[t.toString()]=t}const s=[];for(const n in e){const t=e[n].reduce(((t,e)=>{const s=this.getVulnerablePasswordById(parseInt(e),"reusedPasswords");return s&&t.push(s),t}),[]);s.push(t)}return s}});const Ot=t.extend({css:"",template:{v:3,t:[{t:4,f:[{t:4,f:[{t:7,e:"EmptyScreen",a:{screen:"accounts"}}],n:50,x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}},{t:4,n:51,f:[{t:4,f:[{t:7,e:"ReusedGroupOverlay",a:{reusedPassword:[{t:2,r:"reusedGroupOverlay.reusedPassword"}]}}],n:50,r:"reusedGroupOverlay.show"}," ",{t:7,e:"div",a:{class:"pam_section_title"},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.logins")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_section_content"},f:[{t:7,e:"ul",a:{class:"longgrid -wrap g-margin-bottom--20"},f:[{t:4,f:[{t:8,r:"password"}],n:52,r:"allPasswords"}," ",{t:7,e:"li",a:{class:"longgrid__2 -margins"},f:[{t:7,e:"Cube",v:{click:"addPassword"},a:{cssCls:"-add -dashed -banner pam_item",label:[{t:3,x:{r:["nls"],s:'_0("passwords.addPassword")'}}]}}]}]}]}],x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}}],n:50,x:{r:["subPage"],s:'_0==="accounts"'}}],p:{password:[{t:7,e:"li",a:{class:["longgrid__2 -margins ",{t:2,r:"filter"}]},f:[{t:7,e:"button",a:{class:"cube -banner pam_item"},v:{click:{n:"viewPassword",d:[{t:2,r:"itemUID"}]}},f:[{t:7,e:"figure",a:{class:"icon pam_icon cube__icon"},f:[{t:7,e:"PasswordIcon",a:{imgSrc:[{t:2,r:"domainIco"}],serviceName:[{t:2,r:"customServiceName"}],url:[{t:2,r:"url"}],color:[{t:2,r:"color"}]}}]}," ",{t:7,e:"span",a:{class:"cube__label pam_single_line"},f:[{t:2,x:{r:["customServiceName","url"],s:"_0||_1"}}," ",{t:4,f:[{t:7,e:"span",a:{class:"pam_state_badge badge color-critical -bg -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordBadge.leaked")'}}]}],n:50,x:{r:["mainProblem"],s:'_0==="isLeaked"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mainProblem"],s:'_0==="isDuplicateToLeaked"'},f:[{t:7,e:"span",a:{class:"pam_state_badge badge color-critical -bg -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.passwordBadge.atRisk")'}}]}]}],x:{r:["mainProblem"],s:'_0==="isLeaked"'}}," ",{t:7,e:"span",a:{class:"cube__desc pam_single_line"},f:[{t:2,r:"userLoginName"}]}]}]}]}]}},components:{PasswordIcon:W,ReusedGroupOverlay:Pt,EmptyScreen:kt},computed:{isEmptyVault:function(){return this.fire("vaultChanged"),this.isEmpty()}},data:()=>({allPasswords:[],CONST:R}),oninit(){this.getPasswordsLoadingTimeout=void 0,this.on("addPassword",(()=>{this._addPassword()})),this.on("EmptyScreen.addPassword",(()=>{this._addPassword()})),this.on("viewPassword",((t,e)=>{this.showPasswordDetail(e)})),this.on("PasswordDetails.edited",(t=>{this.passwordEdited(t)})),this.on("PasswordDetails.close",(()=>{this.set("mode",R.MODES.LISTVIEW)})),this._addPasswordGuardianListeners()},isEmpty(){return 0===this.get("allPasswords").length},updatePasswords(t){const e=t.getPasswordGuardianData||!1;return this._getPasswords(e).then((t=>{if(t=t||[],e){this.parent.findComponent("PasswordGuardian").updateVulnerablePasswords(t)}this._updateAllPasswords(t);const s=this.get("searchQuery");s.length>0&&this.searchPasswords(s)}))},searchPasswords(t){const e=t.toLowerCase();return this.get("allPasswords").forEach((t=>{t.filter=t.customServiceName.toLowerCase().indexOf(e)>-1?"":"filtered_out"})),this.update("allPasswords")},showPasswordDetail(t){this.set("passwordId",parseInt(t)),this.set("mode",R.MODES.PASSWORDVIEW),N("passwordDetails",{width:500,height:594,params:{passwordId:parseInt(t),mode:R.MODES.PASSWORDVIEW}})},passwordEdited(t){this.set("mode",R.MODES.LISTVIEW);const e=this.get("isLicensed");this._localUpdatePassword(t,e)},_localUpdatePassword(t,e=!1){const s=this.get("allPasswords"),n=s.findIndex((e=>e.itemUID===t.itemUID));if(n>-1&&(s[n]=t,this._updateAllPasswords(s),e)){this.parent.findComponent("PasswordGuardian").updateVulnerablePasswords(s)}},_updateAllPasswords(t){t.forEach((t=>t.filter="")),this.set("allPasswords",t)},_addPasswordGuardianListeners(){this.observe("allPasswords",(t=>{this._updatePasswordBadges(t)}),{init:!1}),this.on("Issues.viewPassword",((t,e)=>{this.showPasswordDetail(e)})),this.on("*.overlayClose",(()=>{this.set("reusedGroupOverlay.show",!1)})),this.on("PasswordProblem.viewPasswordDuplicates",((t,e)=>{this.set("mode",R.MODES.LISTVIEW),this.parent.findComponent("PasswordGuardian").updateReusedPasswordOverlay(e),this.set("reusedGroupOverlay.show",!0)}))},_getPasswords(t=!1){return this.getPasswordsLoadingTimeout=setTimeout((()=>{this.isEmpty()&&this.set("loading",!0)}),2e3),!1===t?n("app.pam.GetPAMPasswordsForExport",{showPasswords:!1}).then((t=>(this._clearGetPasswordsLoadingTimeout(),this.set("loading",!1),H(t,"customServiceName")))):n("app.pam.GetPAMPasswords").then((t=>(this._clearGetPasswordsLoadingTimeout(),this.set("loading",!1),H(t,"customServiceName"))))},_clearGetPasswordsLoadingTimeout(){this.getPasswordsLoadingTimeout&&(clearTimeout(this.getPasswordsLoadingTimeout),this.getPasswordsLoadingTimeout=void 0)},_addPassword(){N("passwordDetails",{width:500,height:594,params:{mode:R.MODES.PASSWORDADD}})},_updatePasswordBadges(t){const e=this.parent.findComponent("PasswordGuardian");for(const s of t)e.getVulnerablePasswordById(s.itemUID,"leakedPasswords")?s.mainProblem="isLeaked":e.getVulnerablePasswordById(s.itemUID,"duplicateToLeakedPasswords")&&(s.mainProblem="isDuplicateToLeaked");this.set("allPasswords",t)},onteardown(){this._clearGetPasswordsLoadingTimeout()}});var Mt={},Tt=["visa","master-card","american-express","diners-club","discover","jcb","unionpay","maestro"];function Bt(t){var e,s,n;return t?(e=t.prefixPattern.source,s=t.exactPattern.source,(n=JSON.parse(JSON.stringify(t))).prefixPattern=e,n.exactPattern=s,n):null}function Nt(t){var e,s,n=[],r=[];if(!("string"==typeof t||t instanceof String))return[];for(s=0;s<Tt.length;s++)e=Mt[Tt[s]],0!==t.length?e.exactPattern.test(t)?r.push(Bt(e)):e.prefixPattern.test(t)&&n.push(Bt(e)):n.push(Bt(e));return r.length?r:n}Mt.visa={niceType:"Visa",type:"visa",prefixPattern:/^4$/,exactPattern:/^4\d*$/,gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},Mt["master-card"]={niceType:"MasterCard",type:"master-card",prefixPattern:/^(5|5[1-5]|2|22|222|222[1-9]|2[3-6]|27|27[0-2]|2720)$/,exactPattern:/^(5[1-5]|222[1-9]|2[3-6]|27[0-1]|2720)\d*$/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},Mt["american-express"]={niceType:"American Express",type:"american-express",prefixPattern:/^(3|34|37)$/,exactPattern:/^3[47]\d*$/,isAmex:!0,gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},Mt["diners-club"]={niceType:"Diners Club",type:"diners-club",prefixPattern:/^(3|3[0689]|30[0-5])$/,exactPattern:/^3(0[0-5]|[689])\d*$/,gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},Mt.discover={niceType:"Discover",type:"discover",prefixPattern:/^(6|60|601|6011|65|64|64[4-9])$/,exactPattern:/^(6011|65|64[4-9])\d*$/,gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},Mt.jcb={niceType:"JCB",type:"jcb",prefixPattern:/^(2|21|213|2131|1|18|180|1800|3|35)$/,exactPattern:/^(2131|1800|35)\d*$/,gaps:[4,8,12],lengths:[16],code:{name:"CVV",size:3}},Mt.unionpay={niceType:"UnionPay",type:"unionpay",prefixPattern:/^((6|62|62\d|(621(?!83|88|98|99))|622(?!06)|627[02,06,07]|628(?!0|1)|629[1,2])|622018)$/,exactPattern:/^(((620|(621(?!83|88|98|99))|622(?!06|018)|62[3-6]|627[02,06,07]|628(?!0|1)|629[1,2]))\d*|622018\d{12})$/,gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVN",size:3}},Mt.maestro={niceType:"Maestro",type:"maestro",prefixPattern:/^(5|5[06-9]|6\d*)$/,exactPattern:/^(5[06-9]|6[37])\d*$/,gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},Nt.getTypeInfo=function(t){return Bt(Mt[t])},Nt.types={VISA:"visa",MASTERCARD:"master-card",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro"};var Lt={isEmptyString:function(t){return!t||(0===t.length||0===t.trim().length)},insertString:function(t,e,s){return t.slice(0,e)+s+t.slice(e)}},Rt=Nt,zt=Lt;function Gt(t){return t.replace(/\D+/g,"")}function Wt(t){var e=Rt(t.replace(/\s/g,""));return 0===e.length?null:e[0]}var Vt=Gt,Ft=function(t){if(!t)return"card-unknown";if(!t.cardNumber)return"card-unknown";var e=Wt(t.cardNumber);return e?"card-"+e.type:"card-unknown"},Ut=function(t){if(!t)return"";var e,s=Wt(t),n=s?s.gaps:[4,8,12,16];for(t=Gt(t);void 0!==(e=n.pop());)e+1>t.length||(t=zt.insertString(t,e," "));return t},Ht=function(t){if(!t)return"";var e=Wt(t),s=e?e.gaps:[4,8,12,16];if((t=t.replace(/\s/g,"")).length<4)return t;for(var n,r=new Array(t.length-3).join("•")+t.substring(t.length-4);void 0!==(n=s.pop());)n+1>r.length||(r=zt.insertString(r,n," "));return r},jt=function(t){if(!t)return null;if(!zt.isEmptyString(t.customName))return t.customName;if(zt.isEmptyString(t.cardNumber))return null;var e=t.cardNumber.replace(/\s/g,""),s=function(t){var e=Rt(t);return 0===e.length?null:e[0].niceType}(e),n="X-"+e.slice(-4);return s?s+" "+n:n},Jt=function(t){var e,s;if("number"==typeof t){var n=new Date(t);s=n.getFullYear(),e=n.getUTCMonth()+1}else{if("object"!=typeof t||!t.year||!t.month)return"";s=t.year,e=t.month}return("0"+e).slice(-2)+"/"+s};const Qt=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"button",a:{class:"cube -banner pam_item"},v:{click:{n:"viewCreditCard",d:[{t:2,r:"creditCard.itemUID"}]}},f:[{t:7,e:"SvgIcon",a:{name:[{t:2,r:"cardIcon"}],cssCls:"cube__icon"}}," ",{t:7,e:"span",a:{class:"cube__label pam_single_line"},f:[{t:2,r:"label"}," ",{t:7,e:"span",a:{class:["cube__desc pam_single_line ",{t:2,x:{r:["expiresSoon"],s:'_0?"color-danger -text":""'}}]},f:[{t:4,f:[{t:3,x:{r:["nls","isExpired","creditCard.expiresOn.month","creditCard.expiresOn.year"],s:'_0(_1?"passwords.creditCardExpiredOn":"passwords.creditCardExpiresOn",_2,_3)'}}],n:50,r:"hasExpiration"}]}]}]}]},data:function(){return{creditCard:null}},computed:{hasExpiration:function(){var t=this.get("creditCard.expiresOn");return t&&t.year&&t.month},expiresSoon:function(){var t=this.get("creditCard.expiresOn");return!!(t&&t.year&&t.month)&&new Date(t.year,t.month)-Date.now()<26784e5},isExpired:function(){var t=this.get("creditCard.expiresOn");return!!(t&&t.year&&t.month)&&new Date(t.year,t.month)<Date.now()},label:function(){return jt(this.get("creditCard"))},cardIcon:function(){return Ft(this.get("creditCard"))}},oninit(){}});function Kt(t){return{start:t.selectionStart,end:t.selectionEnd}}function Zt(t,e,s){"object"==typeof e&&(s=e.end,e=e.start),e||(e=0),void 0===s&&(s=e),t.setSelectionRange(e,s)}const qt=t.extend({isolated:!0,template:'<input decorator="eventHandler" {{attr}} value="{{value}}" on-focus="inputfocus" on-blur="inputblur" on-keydown="keyDown" on-input="valueChange" />',data(){},computed:{attr:function(){var t,e=this.get(),s="";for(t in e)-1===this.possibleAttributes.indexOf(t)||this.privateAttributes[t]||(s+=t+'="'+e[t]+'" ');for(t in this.defaultAttributes)-1!==this.possibleAttributes.indexOf(t)&&void 0===e[t]&&(s+=t+'="'+this.defaultAttributes[t]+'" ');return s}},possibleAttributes:["type","class","name","id","placeholder","autofocus","filter","formatter","value","attr","size"],privateAttributes:{filter:!0,formatter:!0,value:!0,attr:!0},defaultAttributes:{type:"text"},oninit(){this.on("valueChange",this._onValueChange.bind(this)),this.on("keyDown",this._onKeyDown.bind(this))},_onValueChange(){var t=this.get("value")||"",e=t,s=this.get("filter"),n=this.get("formatter");return s&&(t=e.replace(new RegExp(s,"g"),"")),n&&(t=n(e=t)),this.set("value",t)},_onKeyDown(t){!function(t){const e=Kt(t.node),s=e.start!==e.end,n=" "===t.node.value.charAt(e.start-1);"Backspace"===t.original.key&&!s&&n&&Zt(t.node,e.start-1)}(t),function(t){const e=Kt(t.node),s=t.node.value;setTimeout((()=>{const n=t.node.value,r=e.start!==e.end,a="Backspace"===t.original.key||"Delete"===t.original.key;let o=e.start;n!==s&&(n.length===s.length&&(o+=1),n.length>s.length&&(o+=1," "===n.charAt(e.start)&&(o+=1)),n.length<s.length&&(r&&!a?o+=1:"Backspace"===t.original.key&&(o-=1)),Zt(t.node,o))}))}(t)}});var Yt=/^[0-9]+$/;var Xt=function(t){if(t){"string"!=typeof t&&(t=String(t));var e=t.trim(),s=e.length;if(0!==s){var n=parseInt(e,10);if(r=n,!isNaN(r)&&Yt.test(r)){for(var r,a,o=0,i=s;i>0;i--){switch(o+=Math.floor(n)%10,n/=10,a=2*(Math.floor(n)%10)){case 10:a=1;break;case 12:a=3;break;case 14:a=5;break;case 16:a=7;break;case 18:a=9;break;default:a=a}n/=10,o+=a,i--}return o%10==0}}}},$t={exports:{}};(function(t,e,s){var n=function(t,e,s){s=r.extend({},r.options,s);var a=r.runValidations(t,e,s);if(a.some((function(t){return r.isPromise(t.error)})))throw new Error("Use validate.async if you want support for promises");return n.processValidationResults(a,s)},r=n;r.extend=function(t){return[].slice.call(arguments,1).forEach((function(e){for(var s in e)t[s]=e[s]})),t},r.extend(n,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var t=r.format("%{major}.%{minor}.%{patch}",r.version);return r.isEmpty(r.version.metadata)||(t+="+"+r.version.metadata),t}},Promise:"undefined"!=typeof Promise?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(t,e,s){var n,a,o,i,l,c,d,p=[];for(n in(r.isDomElement(t)||r.isJqueryElement(t))&&(t=r.collectFormValues(t)),e)for(a in o=r.getDeepObjectValue(t,n),i=r.result(e[n],o,t,n,s,e)){if(!(l=r.validators[a]))throw d=r.format("Unknown validator %{name}",{name:a}),new Error(d);c=i[a],(c=r.result(c,o,t,n,s,e))&&p.push({attribute:n,value:o,validator:a,globalOptions:s,attributes:t,options:c,error:l.call(l,o,c,n,t,s)})}return p},processValidationResults:function(t,e){t=r.pruneEmptyErrors(t,e),t=r.expandMultipleErrors(t,e),t=r.convertErrorMessages(t,e);var s=e.format||"grouped";if("function"!=typeof r.formatters[s])throw new Error(r.format("Unknown format %{format}",e));return t=r.formatters[s](t),r.isEmpty(t)?void 0:t},async:function(t,e,s){var n=(s=r.extend({},r.async.options,s)).wrapErrors||function(t){return t};!1!==s.cleanAttributes&&(t=r.cleanAttributes(t,e));var a=r.runValidations(t,e,s);return new r.Promise((function(o,i){r.waitForResults(a).then((function(){var l=r.processValidationResults(a,s);l?i(new n(l,s,t,e)):o(t)}),(function(t){i(t)}))}))},single:function(t,e,s){return s=r.extend({},r.single.options,s,{format:"flat",fullMessages:!1}),r({single:t},{single:e},s)},waitForResults:function(t){return t.reduce((function(t,e){return r.isPromise(e.error)?t.then((function(){return e.error.then((function(t){e.error=t||null}))})):t}),new r.Promise((function(t){t()})))},result:function(t){var e=[].slice.call(arguments,1);return"function"==typeof t&&(t=t.apply(null,e)),t},isNumber:function(t){return"number"==typeof t&&!isNaN(t)},isFunction:function(t){return"function"==typeof t},isInteger:function(t){return r.isNumber(t)&&t%1==0},isBoolean:function(t){return"boolean"==typeof t},isObject:function(t){return t===Object(t)},isDate:function(t){return t instanceof Date},isDefined:function(t){return null!=t},isPromise:function(t){return!!t&&r.isFunction(t.then)},isJqueryElement:function(t){return t&&r.isString(t.jquery)},isDomElement:function(t){return!!t&&!(!t.querySelectorAll||!t.querySelector)&&(!(!r.isObject(document)||t!==document)||("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName))},isEmpty:function(t){var e;if(!r.isDefined(t))return!0;if(r.isFunction(t))return!1;if(r.isString(t))return r.EMPTY_STRING_REGEXP.test(t);if(r.isArray(t))return 0===t.length;if(r.isDate(t))return!1;if(r.isObject(t)){for(e in t)return!1;return!0}return!1},format:r.extend((function(t,e){return r.isString(t)?t.replace(r.format.FORMAT_REGEXP,(function(t,s,n){return"%"===s?"%{"+n+"}":String(e[n])})):t}),{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(t){return r.isNumber(t)?100*t%1==0?""+t:parseFloat(Math.round(100*t)/100).toFixed(2):r.isArray(t)?t.map((function(t){return r.prettify(t)})).join(", "):r.isObject(t)?r.isDefined(t.toString)?t.toString():JSON.stringify(t):(t=""+t).replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,(function(t,e,s){return e+" "+s.toLowerCase()})).toLowerCase()},stringifyValue:function(t,e){return(e&&e.prettify||r.prettify)(t)},isString:function(t){return"string"==typeof t},isArray:function(t){return"[object Array]"==={}.toString.call(t)},isHash:function(t){return r.isObject(t)&&!r.isArray(t)&&!r.isFunction(t)},contains:function(t,e){return!!r.isDefined(t)&&(r.isArray(t)?-1!==t.indexOf(e):e in t)},unique:function(t){return r.isArray(t)?t.filter((function(t,e,s){return s.indexOf(t)==e})):t},forEachKeyInKeypath:function(t,e,s){if(r.isString(e)){var n,a="",o=!1;for(n=0;n<e.length;++n)switch(e[n]){case".":o?(o=!1,a+="."):(t=s(t,a,!1),a="");break;case"\\":o?(o=!1,a+="\\"):o=!0;break;default:o=!1,a+=e[n]}return s(t,a,!0)}},getDeepObjectValue:function(t,e){if(r.isObject(t))return r.forEachKeyInKeypath(t,e,(function(t,e){if(r.isObject(t))return t[e]}))},collectFormValues:function(t,e){var s,n,a,o,i,l,c={};if(r.isJqueryElement(t)&&(t=t[0]),!t)return c;for(e=e||{},o=t.querySelectorAll("input[name], textarea[name]"),s=0;s<o.length;++s)if(a=o.item(s),!r.isDefined(a.getAttribute("data-ignored"))){var d=a.name.replace(/\./g,"\\\\.");l=r.sanitizeFormValue(a.value,e),"number"===a.type?l=l?+l:null:"checkbox"===a.type?a.attributes.value?a.checked||(l=c[d]||null):l=a.checked:"radio"===a.type&&(a.checked||(l=c[d]||null)),c[d]=l}for(o=t.querySelectorAll("select[name]"),s=0;s<o.length;++s)if(a=o.item(s),!r.isDefined(a.getAttribute("data-ignored"))){if(a.multiple)for(n in l=[],a.options)(i=a.options[n])&&i.selected&&l.push(r.sanitizeFormValue(i.value,e));else{var p=void 0!==a.options[a.selectedIndex]?a.options[a.selectedIndex].value:"";l=r.sanitizeFormValue(p,e)}c[a.name]=l}return c},sanitizeFormValue:function(t,e){return e.trim&&r.isString(t)&&(t=t.trim()),!1!==e.nullify&&""===t?null:t},capitalize:function(t){return r.isString(t)?t[0].toUpperCase()+t.slice(1):t},pruneEmptyErrors:function(t){return t.filter((function(t){return!r.isEmpty(t.error)}))},expandMultipleErrors:function(t){var e=[];return t.forEach((function(t){r.isArray(t.error)?t.error.forEach((function(s){e.push(r.extend({},t,{error:s}))})):e.push(t)})),e},convertErrorMessages:function(t,e){var s=[],n=(e=e||{}).prettify||r.prettify;return t.forEach((function(t){var a=r.result(t.error,t.value,t.attribute,t.options,t.attributes,t.globalOptions);r.isString(a)?("^"===a[0]?a=a.slice(1):!1!==e.fullMessages&&(a=r.capitalize(n(t.attribute))+" "+a),a=a.replace(/\\\^/g,"^"),a=r.format(a,{value:r.stringifyValue(t.value,e)}),s.push(r.extend({},t,{error:a}))):s.push(t)})),s},groupErrorsByAttribute:function(t){var e={};return t.forEach((function(t){var s=e[t.attribute];s?s.push(t):e[t.attribute]=[t]})),e},flattenErrorsToArray:function(t){return t.map((function(t){return t.error})).filter((function(t,e,s){return s.indexOf(t)===e}))},cleanAttributes:function(t,e){function s(t,e,s){return r.isObject(t[e])?t[e]:t[e]=!!s||{}}return r.isObject(e)&&r.isObject(t)?function t(e,s){if(!r.isObject(e))return e;var n,a,o=r.extend({},e);for(a in e)n=s[a],r.isObject(n)?o[a]=t(o[a],n):n||delete o[a];return o}(t,e=function(t){var e,n={};for(e in t)t[e]&&r.forEachKeyInKeypath(n,e,s);return n}(e)):{}},exposeModule:function(t,e,s,n,r){s?(n&&n.exports&&(s=n.exports=t),s.validate=t):(e.validate=t,t.isFunction(r)&&r.amd&&r([],(function(){return t})))},warn:function(t){"undefined"!=typeof console&&console.warn&&console.warn("[validate.js] "+t)},error:function(t){"undefined"!=typeof console&&console.error&&console.error("[validate.js] "+t)}}),n.validators={presence:function(t,e){if(!1!==(e=r.extend({},this.options,e)).allowEmpty?!r.isDefined(t):r.isEmpty(t))return e.message||this.message||"can't be blank"},length:function(t,e,s){if(r.isDefined(t)){var n,a=(e=r.extend({},this.options,e)).is,o=e.maximum,i=e.minimum,l=[],c=(t=(e.tokenizer||function(t){return t})(t)).length;return r.isNumber(c)?(r.isNumber(a)&&c!==a&&(n=e.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",l.push(r.format(n,{count:a}))),r.isNumber(i)&&c<i&&(n=e.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",l.push(r.format(n,{count:i}))),r.isNumber(o)&&c>o&&(n=e.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",l.push(r.format(n,{count:o}))),l.length>0?e.message||l:void 0):e.message||this.notValid||"has an incorrect length"}},numericality:function(t,e,s,n,a){if(r.isDefined(t)){var o,i,l=[],c={greaterThan:function(t,e){return t>e},greaterThanOrEqualTo:function(t,e){return t>=e},equalTo:function(t,e){return t===e},lessThan:function(t,e){return t<e},lessThanOrEqualTo:function(t,e){return t<=e},divisibleBy:function(t,e){return t%e==0}},d=(e=r.extend({},this.options,e)).prettify||a&&a.prettify||r.prettify;if(r.isString(t)&&e.strict){var p="^-?(0|[1-9]\\d*)";if(e.onlyInteger||(p+="(\\.\\d+)?"),p+="$",!new RegExp(p).test(t))return e.message||e.notValid||this.notValid||this.message||"must be a valid number"}if(!0!==e.noStrings&&r.isString(t)&&!r.isEmpty(t)&&(t=+t),!r.isNumber(t))return e.message||e.notValid||this.notValid||this.message||"is not a number";if(e.onlyInteger&&!r.isInteger(t))return e.message||e.notInteger||this.notInteger||this.message||"must be an integer";for(o in c)if(i=e[o],r.isNumber(i)&&!c[o](t,i)){var u="not"+r.capitalize(o),h=e[u]||this[u]||this.message||"must be %{type} %{count}";l.push(r.format(h,{count:i,type:d(o)}))}return e.odd&&t%2!=1&&l.push(e.notOdd||this.notOdd||this.message||"must be odd"),e.even&&t%2!=0&&l.push(e.notEven||this.notEven||this.message||"must be even"),l.length?e.message||l:void 0}},datetime:r.extend((function(t,e){if(!r.isFunction(this.parse)||!r.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(r.isDefined(t)){var s,n=[],a=(e=r.extend({},this.options,e)).earliest?this.parse(e.earliest,e):NaN,o=e.latest?this.parse(e.latest,e):NaN;return t=this.parse(t,e),isNaN(t)||e.dateOnly&&t%864e5!=0?(s=e.notValid||e.message||this.notValid||"must be a valid date",r.format(s,{value:arguments[0]})):(!isNaN(a)&&t<a&&(s=e.tooEarly||e.message||this.tooEarly||"must be no earlier than %{date}",s=r.format(s,{value:this.format(t,e),date:this.format(a,e)}),n.push(s)),!isNaN(o)&&t>o&&(s=e.tooLate||e.message||this.tooLate||"must be no later than %{date}",s=r.format(s,{date:this.format(o,e),value:this.format(t,e)}),n.push(s)),n.length?r.unique(n):void 0)}}),{parse:null,format:null}),date:function(t,e){return e=r.extend({},e,{dateOnly:!0}),r.validators.datetime.call(r.validators.datetime,t,e)},format:function(t,e){(r.isString(e)||e instanceof RegExp)&&(e={pattern:e});var s,n=(e=r.extend({},this.options,e)).message||this.message||"is invalid",a=e.pattern;if(r.isDefined(t))return r.isString(t)?(r.isString(a)&&(a=new RegExp(e.pattern,e.flags)),(s=a.exec(t))&&s[0].length==t.length?void 0:n):n},inclusion:function(t,e){if(r.isDefined(t)&&(r.isArray(e)&&(e={within:e}),e=r.extend({},this.options,e),!r.contains(e.within,t))){var s=e.message||this.message||"^%{value} is not included in the list";return r.format(s,{value:t})}},exclusion:function(t,e){if(r.isDefined(t)&&(r.isArray(e)&&(e={within:e}),e=r.extend({},this.options,e),r.contains(e.within,t))){var s=e.message||this.message||"^%{value} is restricted";return r.isString(e.within[t])&&(t=e.within[t]),r.format(s,{value:t})}},email:r.extend((function(t,e){var s=(e=r.extend({},this.options,e)).message||this.message||"is not a valid email";if(r.isDefined(t))return r.isString(t)&&this.PATTERN.exec(t)?void 0:s}),{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(t,e,s,n,a){if(r.isDefined(t)){r.isString(e)&&(e={attribute:e});var o=(e=r.extend({},this.options,e)).message||this.message||"is not equal to %{attribute}";if(r.isEmpty(e.attribute)||!r.isString(e.attribute))throw new Error("The attribute must be a non empty string");var i=r.getDeepObjectValue(n,e.attribute),l=e.comparator||function(t,e){return t===e},c=e.prettify||a&&a.prettify||r.prettify;return l(t,i,e,s,n)?void 0:r.format(o,{attribute:c(e.attribute)})}},url:function(t,e){if(r.isDefined(t)){var s=(e=r.extend({},this.options,e)).message||this.message||"is not a valid url",n=e.schemes||this.schemes||["http","https"],a=e.allowLocal||this.allowLocal||!1,o=e.allowDataUrl||this.allowDataUrl||!1;if(!r.isString(t))return s;var i="^(?:(?:"+n.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",l="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";return a?l+="?":i+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",i+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+l+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",o&&(i="(?:"+i+")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"),new RegExp(i,"i").exec(t)?void 0:s}},type:r.extend((function(t,e,s,n,a){if(r.isString(e)&&(e={type:e}),r.isDefined(t)){var o,i=r.extend({},this.options,e),l=i.type;if(!r.isDefined(l))throw new Error("No type was specified");if(o=r.isFunction(l)?l:this.types[l],!r.isFunction(o))throw new Error("validate.validators.type.types."+l+" must be a function.");if(!o(t,i,s,n,a)){var c=e.message||this.messages[l]||this.message||i.message||(r.isFunction(l)?"must be of the correct type":"must be of type %{type}");return r.isFunction(c)&&(c=c(t,e,s,n,a)),r.format(c,{attribute:r.prettify(s),type:l})}}}),{types:{object:function(t){return r.isObject(t)&&!r.isArray(t)},array:r.isArray,integer:r.isInteger,number:r.isNumber,string:r.isString,date:r.isDate,boolean:r.isBoolean},messages:{}})},n.formatters={detailed:function(t){return t},flat:r.flattenErrorsToArray,grouped:function(t){var e;for(e in t=r.groupErrorsByAttribute(t))t[e]=r.flattenErrorsToArray(t[e]);return t},constraint:function(t){var e;for(e in t=r.groupErrorsByAttribute(t))t[e]=t[e].map((function(t){return t.validator})).sort();return t}},n.exposeModule(n,this,t,e,s)}).call(k,$t.exports,$t,null);const te=$t.exports;var ee="[object GeneratorFunction]",se=/^\s+|\s+$/g,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,ie=parseInt,le=Object.prototype.toString,ce=Math.ceil,de=Math.max;function pe(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ue(t){return t?Infinity===(t=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==le.call(t)}(t))return NaN;if(pe(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=pe(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(se,"");var s=re.test(t);return s||ae.test(t)?ie(t.slice(2),s?2:8):ne.test(t)?NaN:+t}(t))||-Infinity===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}var he,ge=function(t,e,s){return s&&"number"!=typeof s&&function(t,e,s){if(!pe(s))return!1;var n=typeof e;return!!("number"==n?function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=pe(t)?le.call(t):"";return"[object Function]"==e||e==ee}(t)}(s)&&function(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||oe.test(t))&&t>-1&&t%1==0&&t<e}(e,s.length):"string"==n&&e in s)&&function(t,e){return t===e||t!=t&&e!=e}(s[e],t)}(t,e,s)&&(e=s=void 0),t=ue(t),void 0===e?(e=t,t=0):e=ue(e),function(t,e,s,n){for(var r=-1,a=de(ce((e-t)/(s||1)),0),o=Array(a);a--;)o[n?a:++r]=t,t+=s;return o}(t,e,s=void 0===s?t<e?1:-1:ue(s),he)};const me={cardNumber:{presence:!0},"expiresOn.month":{numericality:{greaterThan:0,lessThan:13,onlyInteger:!0}},"expiresOn.year":{numericality:{greaterThan:1981,lessThan:3e3,onlyInteger:!0}}},fe=t.extend({isolated:!0,template:{v:3,t:[{t:7,e:"div",a:{class:"modal pam_form"},f:[{t:7,e:"SvgIcon",a:{name:[{t:2,r:"cardIcon"}],cssCls:"pam_card_icon"}}," ",{t:7,e:"div",a:{class:"pam_edit__title"},f:[{t:7,e:"h3",a:{class:"h3 pam_single_line"},f:[{t:2,r:"label"}]}]}," ",{t:7,e:"div",a:{class:["form__row pam_creditcard_row ",{t:4,f:["-error"],n:50,x:{r:["submitted","errors.cardNumber"],s:"_0&&_1"}}," ",{t:4,f:["-warning"],n:50,x:{r:["isCcWarningVisible","submitted","errors.cardNumber"],s:"_0&&!(_1&&_2)"}}," g-margin-top--10"]},f:[{t:7,e:"label",a:{for:"cardNumber",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.cardNumber")'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_input_actions_row"},f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",value:[{t:2,x:{r:["isCardNumberRevealed","creditCard.cardNumber","maskedCardNumber"],s:"_0?_1:_2"}}],name:"cardNumber",id:"cardNumber",twoway:"false",readonly:"true"}}," ",{t:7,e:"div",a:{class:"btn__split"},f:[{t:7,e:"ButtonCopyToClipboard",a:{text:[{t:2,r:"creditCard.cardNumber"}]}}," ",{t:7,e:"ButtonRevealSecret",a:{isRevealed:[{t:2,r:"isCardNumberRevealed"}]}}]}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"ValidatedInput",a:{type:"text",class:"input -full pam_value",name:"cardNumber",id:"cardNumber",value:[{t:2,r:"creditCard.cardNumber"}],placeholder:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCardExample")'}}],autofocus:"true",formatter:[{t:2,r:"formatCreditCardNumber"}],filter:"[^0-9]*"},v:{inputblur:"inputNumberBlured"}}," ",{t:4,f:[{t:7,e:"p",a:{class:"input__message"},f:[{t:7,e:"kin-icon",a:{name:"badge-attention",size:"15"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords.creditCardNumberWarning")'}}]}],n:50,r:"isCcWarningVisible"}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}]}," ",{t:4,f:[{t:7,e:"label",a:{for:"customName",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.customName")'}}]}," ",{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",name:"customName",id:"customName",value:[{t:2,r:"creditCard.customName"}]},m:[{t:4,f:['twoway="false" readonly="true"'],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.customName"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"cardholderName",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.cardholderName")'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_input_actions_row"},f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",name:"cardholderName",id:"cardholderName",value:[{t:2,r:"creditCard.cardholderName"}],twoway:"false",readonly:"true"}}," ",{t:4,f:[{t:7,e:"div",a:{class:"btn__split"},f:[{t:7,e:"ButtonCopyToClipboard",a:{text:[{t:2,r:"creditCard.cardholderName"}]}}]}],n:50,r:"creditCard.cardholderName"}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",name:"cardholderName",id:"cardholderName",value:[{t:2,r:"creditCard.cardholderName"}]}}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.cardholderName"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.expiresOn")'}}]}," ",{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",class:"input -full pam_value",value:[{t:2,r:"expiresOn"}],twoway:"false",readonly:"true"}}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"div",a:{style:"display: flex; justify-content: flex-start"},f:[{t:7,e:"div",a:{style:"margin-right: 16px"},f:[{t:7,e:"label",a:{for:"expiresOnMonth",class:"pam_label__sub text -small"},f:[{t:3,x:{r:["nls"],s:'_0("global.month")'}}]}," ",{t:7,e:"select",a:{value:[{t:2,r:"creditCard.expiresOn.month"}],id:"expiresOnMonth",class:"input -full"},f:[{t:7,e:"option",a:{value:""},f:["--"]}," ",{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"."}]},f:[{t:4,f:["0"],n:50,x:{r:["."],s:"_0<10"}},{t:2,r:"."}]}],r:"expirationMonths"}]}]}," ",{t:7,e:"div",f:[{t:7,e:"label",a:{for:"expiresOnYear",class:"pam_label__sub text -small"},f:[{t:3,x:{r:["nls"],s:'_0("global.year")'}}]}," ",{t:7,e:"select",a:{value:[{t:2,r:"creditCard.expiresOn.year"}],id:"expiresOnYear",class:"input"},f:[{t:7,e:"option",a:{value:""},f:["----"]}," ",{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"."}]},f:[{t:2,r:"."}]}],r:"expirationYears"}]}]}]}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.expiresOn.month","creditCard.expiresOn.year"],s:"_0!==_1||(_2&&_3)"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"cvv",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.cvv")'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_input_actions_row"},f:[{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",name:"cvv",id:"cvv",twoway:"false",readonly:"true",class:"input pam_value",value:[{t:2,r:"creditCard.cvv"}]}}],n:50,r:"isCvvRevealed"},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"password",name:"cvv",id:"cvv",twoway:"false",readonly:"true",class:"input pam_value",value:[{t:2,r:"creditCard.cvv"}]}}],r:"isCvvRevealed"}," ",{t:4,f:[{t:7,e:"div",a:{class:"btn__split"},f:[{t:7,e:"ButtonCopyToClipboard",a:{text:[{t:2,r:"creditCard.cvv"}]}}," ",{t:7,e:"ButtonRevealSecret",a:{isRevealed:[{t:2,r:"isCvvRevealed"}]}}]}],n:50,r:"creditCard.cvv"}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"ValidatedInput",a:{type:"text",class:"input pam_value",name:"cvv",id:"cvv",size:"6",value:[{t:2,r:"creditCard.cvv"}],filter:"[^0-9]*"}}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.cvv"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"pin",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCard.label.pin")'}}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_input_actions_row"},f:[{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{type:"text",name:"pin",id:"pin",twoway:"false",readonly:"true",class:"input pam_value",value:[{t:2,r:"creditCard.pin"}]}}],n:50,r:"isPinRevealed"},{t:4,n:51,f:[{t:7,e:"input",o:"eventHandler",a:{type:"password",name:"pin",id:"pin",twoway:"false",readonly:"true",class:"input pam_value",value:[{t:2,r:"creditCard.pin"}]}}],r:"isPinRevealed"}," ",{t:4,f:[{t:7,e:"div",a:{class:"btn__split"},f:[{t:7,e:"ButtonCopyToClipboard",a:{text:[{t:2,r:"creditCard.pin"}]}}," ",{t:7,e:"ButtonRevealSecret",a:{isRevealed:[{t:2,r:"isPinRevealed"}]}}]}],n:50,r:"creditCard.pin"}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"ValidatedInput",a:{type:"text",class:"input pam_value",name:"pin",id:"pin",size:"6",value:[{t:2,r:"creditCard.pin"}],filter:"[^0-9]*"}}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.pin"],s:"_0!==_1||_2"}}," ",{t:4,f:[{t:7,e:"label",a:{for:"note",class:"pam_label text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.label.note")'}}]}," ",{t:7,e:"textarea",o:"eventHandler",a:{name:"note",class:"input -full pam_value pam_textarea",id:"note",value:[{t:2,r:"creditCard.note"}]},m:[{t:4,f:['twoway="false" readonly="true"'],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW","creditCard.note"],s:"_0!==_1||_2"}}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:7,e:"ErrorLabel",a:{error:[{t:2,r:"apiError"}]}}," ",{t:4,f:[{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn",autofocus:"true"},v:{click:{n:"edit",d:[{t:2,r:"creditCard.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.edit")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_EDIT"],s:"_0===_1"},f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"cancelEdit"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -critical g-margin-left--10"},v:{click:{n:"delete",d:[{t:2,r:"creditCard.itemUID"}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.delete")'}}]}]},{t:4,n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_EDIT"],s:"!(_0===_1)"},f:[" ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"processing"}],class:"btn"},v:{click:"submit"},f:[{t:3,x:{r:["nls"],s:'_0("global.save")'}}]}," ",{t:7,e:"button",a:{type:"button",disabled:[{t:2,r:"processing"}],class:"btn -secondary g-margin-left--10"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}],x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"}}]}]},css:"#cardNumber {\n  font-size: 18px;\n  letter-spacing: 1px;\n}\n.pam_creditcard_row.-warning .input {\n  border-color: var(--color-attention);\n}\n",components:{ButtonCopyToClipboard:Q,ButtonRevealSecret:K,ValidatedInput:qt,ErrorLabel:q},data:()=>({CONST:R,processing:!1,formatCreditCardNumber:Ut.bind(null),creditCard:null,initialCcData:null,isCardNumberRevealed:!1,isPinRevealed:!1,isCvvRevealed:!1,apiError:"",isValidCcNumber:!0,hasFocusMovedOutOfNumber:!1}),computed:{hasErrors:function(){return Object.keys(this.get("errors")).length>0},errors:function(){var t=this.get("creditCard");if(!t)return{};t.expiresOn.month=""===t.expiresOn.month?null:t.expiresOn.month,t.expiresOn.year=""===t.expiresOn.year?null:t.expiresOn.year;var e=te(t,me)||{};return t=null,e},maskedCardNumber:function(){return Ht(this.get("creditCard.cardNumber"))},label:function(){return jt(this.get("creditCard"))},cardIcon:function(){return Ft(this.get("creditCard"))},expirationMonths:function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},expirationYears:function(){var t=(new Date).getUTCFullYear(),e=ge(t,t+20),s=this.get("creditCard.expiresOn.year");return s&&s<t&&e.unshift(s),e},expiresOn:function(){var t=this.get("creditCard");if(!t)return"";if(!t.expiresOn)return t=null,"";var e=Jt(t.expiresOn);return t=null,e},isCcWarningVisible:function(){return(this.get("initialCcData.cardNumber")||this.get("hasFocusMovedOutOfNumber")||this.get("submitted"))&&!this.get("isValidCcNumber")}},oninit(){var t=this.get("creditCard.itemUID");this.set("initialCcData",U(this.get("creditCard"))),t&&this.getCreditCardDetail(t).then((t=>{this.set("initialCcData",U(t)),this.set("creditCard",U(t)),t=null})),this.observe("creditCard.cardNumber",(()=>{this.set("isValidCcNumber",this.get("creditCard.cardNumber")&&Xt(this.get("creditCard.cardNumber").replace(/\s/g,"")))})),t&&(s.view("pam/Credit Card/Detail"),m.creditCard.viewDetail(),this.set("creditCard.cardNumber",Ut(this.get("creditCard.cardNumber")))),this.on("edit",(()=>{s.view("pam/Credit Card/Edit"),this.set("mode",R.MODES.CREDIT_CARD_EDIT)})),this.on("cancelEdit",(()=>{s.view("pam/Credit Card/Detail"),this.set("apiError",""),this.set("mode",R.MODES.CREDIT_CARD_VIEW),this.set("creditCard",U(this.get("initialCcData")))})),this.on("submit",(t=>{t.original.preventDefault();var e=this.get("creditCard");return this.set("submitted",!0),this.get("hasErrors")?null:(ht.dataCryptoEnabled&&(e.cardholderName=e.cardholderName&&ht.encrypt(e.cardholderName),e.cvv=e.cvv?ht.encrypt(e.cvv):e.cvv,e.pin=e.pin?ht.encrypt(e.pin):e.pin,e.note=e.note?ht.encrypt(e.note):e.note),e.cardNumber=Vt(e.cardNumber),e.cardholderName=e.cardholderName||"",e.customName=e.customName||"",e.expiresOn=e.expiresOn||{},e.expiresOn.month=e.expiresOn.month?parseInt(e.expiresOn.month):null,e.expiresOn.year=e.expiresOn.year?parseInt(e.expiresOn.year):null,e.note=e.note||"",this.clearApiError(),this.set("processing",!0),this.get("mode")===R.MODES.CREDIT_CARD_EDIT?n("app.pam.UpdateCreditCard",e).then((()=>{m.creditCard.edited(),e=null,this.fire("edited")})).catch((t=>this.setApiError("UpdateCreditCard",t))).then((()=>this.set("processing",!1))):n("app.pam.AddCreditCard",e).then((()=>{m.creditCard.createNew(),e=null,this.fire("edited")})).catch((t=>this.setApiError("AddCreditCard",t))).then((()=>this.set("processing",!1))))})),this.on("delete",((t,e)=>(this.clearApiError(),this.set("processing",!0),n("app.pam.DeleteCreditCard",{itemUID:e}).then((()=>{m.creditCard.deleted(),this.fire("edited")})).catch((t=>this.setApiError("DeleteCreditCard",t))).then((()=>this.set("processing",!1)))))),this.on("inputNumberBlured",(()=>{setTimeout((()=>{this.set("hasFocusMovedOutOfNumber",!0)}))}))},getCreditCardDetail:t=>n("app.pam.GetCreditCardDetail",{itemUID:parseInt(t)}).then((t=>(ht.dataCryptoEnabled&&(t.cardholderName=t.cardholderName?ht.decrypt(t.cardholderName):t.cardholderName,t.cvv=t.cvv?ht.decrypt(t.cvv):t.cvv,t.pin=t.pin?ht.decrypt(t.pin):t.pin,t.note=t.note?ht.decrypt(t.note):t.note),t))).catch((t=>{console.error("GetCreditCardDetail",t)})),clearApiError(){this.set("apiError","")},setApiError(e,s){this.set("apiError",t.localization.nls("DeleteCreditCard"===e?"passwords.errorLabel.delete":"passwords.errorLabel.save")),console.error(e,s)},onteardown(){this.set("creditCard",null),this.set("initialCcData",null)}}),_e=t.extend({template:{v:3,t:[{t:4,f:[{t:4,f:[{t:7,e:"Modal",a:{cssCls:"pam_detail_modal",scrollable:0,autoClose:0,title:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("passwords.addCreditCard")'}}],n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_ADD"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mode","CONST.MODES.CREDIT_CARD_VIEW"],s:"_0===_1"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCardDetail")'}}]},{t:4,n:50,x:{r:["CONST.MODES.CREDIT_CARD_VIEW","mode","CONST.MODES.CREDIT_CARD_EDIT"],s:"(!(_1===_0))&&(_1===_2)"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.editCreditCard")'}}]}],x:{r:["mode","CONST.MODES.CREDIT_CARD_ADD"],s:"_0===_1"}}]},f:[{t:7,e:"CreditCardDetails",a:{mode:[{t:2,r:"mode"}],creditCard:[{t:2,r:"currentCreditCard"}]}}]}],n:50,x:{r:["CONST.MODES.CREDIT_CARD_ADD","CONST.MODES.CREDIT_CARD_VIEW","mode","CONST.MODES.CREDIT_CARD_EDIT"],s:"_2===_0||_2===_1||_2===_3"}}," ",{t:4,f:[{t:7,e:"EmptyScreen",a:{screen:"creditCards"}}],n:50,x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"pam_section_title"},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.creditCards")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_section_content"},f:[{t:7,e:"ul",a:{class:"longgrid -wrap g-margin-bottom--20"},f:[{t:4,f:[{t:7,e:"li",a:{class:["longgrid__2 -margins ",{t:2,r:"filter"}]},f:[{t:7,e:"CreditCardItem",a:{creditCard:[{t:2,r:"."}]}}]}],n:52,r:"allCreditCards"}," ",{t:7,e:"li",a:{class:"longgrid__2 -margins"},f:[{t:7,e:"Cube",v:{click:"addCreditCard"},a:{cssCls:"-add -dashed -banner pam_item",label:[{t:3,x:{r:["nls"],s:'_0("passwords.addCreditCard")'}}]}}]}]}]}],x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}}],n:50,x:{r:["subPage"],s:'_0==="creditCards"'}}]},components:{CreditCardItem:Qt,CreditCardDetails:fe,EmptyScreen:kt},computed:{isEmptyVault:function(){return this.fire("vaultChanged"),this.isEmpty()}},data:()=>({currentCreditCard:null,creditCardsFeature:!1,allCreditCards:[],CONST:R}),oninit(){this.on("addCreditCard",(()=>{this._addCreditCard()})),this.on("EmptyScreen.addCreditCard",(()=>{this._addCreditCard()})),this.on("CreditCardDetails.edited",(()=>{this.updateAllCreditCards(),this.set("mode",R.MODES.LISTVIEW)})),this.on("CreditCardItem.viewCreditCard",((t,e)=>{var s=this.get("allCreditCards").find((t=>t.itemUID===e));this.set("currentCreditCard",s),this.set("mode",R.MODES.CREDIT_CARD_VIEW)})),this.on("CreditCardDetails.close",(()=>{this.set("mode",R.MODES.LISTVIEW)}))},isEmpty(){return 0===this.get("allCreditCards").length},updateAllCreditCards(){return V("CreditCardsFeature").then((t=>(this.set("creditCardsFeature",t),t?n("app.pam.GetCreditCards",{}).then((t=>{this.set("allCreditCards",t)})).catch((t=>{console.error("updateAllCreditCards error:",t)})):null)))},searchCreditCards(t){var e=t.toLowerCase();return this.get("allCreditCards").forEach((t=>{t.filter=jt(t).toLowerCase().indexOf(e)>-1?"":"filtered_out"})),this.update("allCreditCards")},_addCreditCard(){this.set("currentCreditCard",null),this.set("mode",R.MODES.CREDIT_CARD_ADD)}});const we=t.extend({css:"",template:{v:3,t:[{t:4,f:[{t:4,f:[{t:7,e:"Modal",a:{cssCls:"pam_detail_modal",scrollable:0,autoClose:0,title:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("passwords.addNote")'}}],n:50,x:{r:["mode","CONST.MODES.NOTEADD"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["mode","CONST.MODES.NOTEVIEW"],s:"_0===_1"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.noteDetail")'}}]},{t:4,n:50,x:{r:["CONST.MODES.NOTEVIEW","mode","CONST.MODES.NOTEEDIT"],s:"(!(_1===_0))&&(_1===_2)"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.editNote")'}}]}],x:{r:["mode","CONST.MODES.NOTEADD"],s:"_0===_1"}}]},f:[{t:7,e:"NoteDetails",a:{mode:[{t:2,r:"mode"}],noteId:[{t:2,r:"noteId"}]}}]}],n:50,x:{r:["CONST.MODES.NOTEADD","CONST.MODES.NOTEVIEW","mode","CONST.MODES.NOTEEDIT"],s:"_2===_0||_2===_1||_2===_3"}}," ",{t:4,f:[{t:7,e:"EmptyScreen",a:{screen:"secureNotes"}}],n:50,x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"pam_section_title"},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.secureNotes")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_section_content"},f:[{t:7,e:"ul",a:{class:"longgrid -wrap"},f:[{t:4,f:[{t:8,r:"note"}],n:52,r:"allNotes"}," ",{t:7,e:"li",a:{class:"longgrid__2 -margins"},f:[{t:7,e:"Cube",v:{click:"addNote"},a:{cssCls:"-add -dashed -banner pam_item",label:[{t:3,x:{r:["nls"],s:'_0("passwords.addNote")'}}]}}]}]}]}],x:{r:["loading","isEmptyVault"],s:"_0===false&&_1"}}],n:50,x:{r:["subPage"],s:'_0==="secureNotes"'}}],p:{note:[{t:7,e:"li",a:{class:["longgrid__2 -margins ",{t:2,r:"filter"}]},f:[{t:7,e:"button",a:{class:"cube -banner pam_item"},v:{click:{n:"viewNote",d:[{t:2,r:"itemUID"}]}},f:[{t:7,e:"span",a:{class:"cube__icon pam_color",style:["background-color:",{t:2,rx:{r:"CONST.COLORS",m:[{r:["color"],s:"_0-1"}]}}]},f:[{t:7,e:"Icon",a:{name:"securenotes",cssCls:"pam_note"}}]}," ",{t:7,e:"span",a:{class:"cube__label pam_single_line"},f:[{t:2,r:"label"}]}]}]}]}},components:{EmptyScreen:kt},computed:{isEmptyVault:function(){return this.fire("vaultChanged"),this.isEmpty()}},data:()=>({allNotes:[],CONST:R}),oninit(){this.on("addNote",(()=>{this._addNote()})),this.on("EmptyScreen.addNote",(()=>{this._addNote()})),this.on("viewNote",((t,e)=>{this.set("noteId",e),this.set("mode",R.MODES.NOTEVIEW)})),this.on("NoteDetails.edited",(()=>{this.updateNotes(),this.set("mode",R.MODES.LISTVIEW)})),this.on("NoteDetails.close",(()=>{this.set("mode",R.MODES.LISTVIEW)}))},_addNote(){this.set("mode",R.MODES.NOTEADD)},isEmpty(){return 0===this.get("allNotes").length},updateNotes(){return this.updateAllNotes().then((()=>{var t=this.get("searchQuery");t.length>0&&this.searchNotes(t)}))},updateAllNotes(){return n("app.pamNotes.GetNotes",[]).then((t=>{t.length?(t.forEach((t=>{t.filter=""})),t=H(t,"label"),this.set("allNotes",t)):this.set("allNotes",[])})).catch((t=>{console.error("getNotes error:",t)}))},searchNotes(t){var e=t.toLowerCase();return this.get("allNotes").forEach((t=>{t.filter=t.label.toLowerCase().indexOf(e)>-1?"":"filtered_out"})),this.update("allNotes")}}),ve=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["pam_filter ",{t:4,f:["pam_-info"],r:"showInfo"}]},f:[{t:4,f:[{t:7,e:"input",o:"eventHandler",a:{class:["input -expand -search ",{t:4,f:["-is-focused"],r:"searchQuery"}],type:"text",value:[{t:2,r:"searchQuery"}],placeholder:[{t:3,x:{r:["nls"],s:'_0("passwords.searchVault")'}}]}},{t:7,e:"Icon",a:{name:"search",cssCls:"input__expand"}}],n:50,r:"showSearchField"}]}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["loading"],s:'_0?"hidden":"visible"'}}]},f:[{t:4,f:[{t:7,e:"StandAloneMenu",a:{page:[{t:2,r:"page"}],hasSystemLogin:[{t:2,r:"hasSystemLogin"}]}}],n:50,r:"isStandAlone"},{t:4,n:51,f:[{t:7,e:"TopMenu",a:{isLicensed:[{t:2,r:"isLicensed"}]}}],r:"isStandAlone"}]}," ",{t:7,e:"div",a:{class:["center__wrap ",{t:2,x:{r:["loading"],s:'_0?"visible":"hidden"'}}]},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}," ",{t:7,e:"div",a:{class:["nui_page__scroll pam_list ",{t:2,x:{r:["loading"],s:'_0?"hidden":"visible"'}}]},f:[{t:4,f:[{t:4,f:[{t:7,e:"Panel",f:[{t:7,e:"div",a:{"data-test":"pam_panel-pending-browser-deletes"},f:[{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("passwords.pendingBrowserDeletes.message")'}}]}," ",{t:7,e:"div",a:{class:"browsers"},f:[{t:4,f:[{t:7,e:"Browser",a:{browserId:[{t:2,r:"."}]},f:[]}],r:"pendingBrowserDeletes"}]}]}," ",{t:7,e:"div",a:{class:"pam_panel__right"},f:[{t:7,e:"Button",v:{domClick:"retryBrowserDeletes"},a:{disabled:[{t:2,r:"processingBrowserDeletes"}],cssCls:"-critical"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.pendingBrowserDeletes.retry")'}}]}]}]}],n:50,r:"showPendingBrowserDeletesPanel"},{t:4,n:51,f:[{t:4,n:50,x:{r:["isLicensed","showInstallExtensionPanel"],s:"_0&&_1"},f:[{t:7,e:"Panel",f:[{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("passwords.installExtension")'}}]}," ",{t:7,e:"div",a:{class:"pam_panel__right"},f:[{t:7,e:"select",a:{value:[{t:2,r:"installBrowserId"}],class:"input g-margin-right--10"},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"id"}]},f:[{t:2,r:"name"}]}],i:"i",r:"browsersToInstallExtension"}]}," ",{t:7,e:"Button",v:{domClick:"installExtensionClick"},f:[{t:3,x:{r:["nls"],s:'_0("global.install")'}}]}]}]}]}],r:"showPendingBrowserDeletesPanel"}," ",{t:4,f:[{t:7,e:"Panel",f:[{t:7,e:"div",a:{class:"pam_sync_stopped_cont"},f:[{t:7,e:"div",a:{class:"pam_sync_stopped_icon"},f:[{t:7,e:"Icon",a:{name:"passwords-sync",cssCls:"pam_sync_icon"}}," ",{t:7,e:"Icon",a:{cssCls:"badge -small color-critical -x -bg"}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.banner.syncStopped.desc")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_panel__right"},f:[{t:7,e:"Button",v:{domClick:"showLoginModal"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}]}]}],n:50,r:"showSyncStoppedPanel"}," ",{t:4,f:[{t:4,f:[{t:7,e:"WaitingIdentityPanel",a:{identity:[{t:2,r:"."}]}}],n:52,r:"waitingIdentities"}],n:50,r:"showWaitingIdentitiesPanel"}," ",{t:4,f:[{t:7,e:"div",a:{class:["pam_panel_ipm ",{t:2,x:{r:["ipmLoaded"],s:'_0?"visible":"hidden"'}}]},f:[{t:7,e:"IPM",a:{id:"269"},v:{success:"setIpmLoaded"}}]}],n:50,x:{r:["showIpmBanner","isStandAlone"],s:"_0&&!_1"}}],n:50,x:{r:["isLicensed","subPage"],s:'_0||_1!=="passwordGuardian"'}}," ",{t:7,e:"ImportProgress"}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["subPage"],s:'_0==="passwordGuardian"?"visible":"hidden"'}}]},f:[{t:7,e:"PasswordGuardian"}]}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["subPage"],s:'_0==="accounts"?"visible":"hidden"'}}]},f:[{t:7,e:"Accounts"}]}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["subPage"],s:'_0==="creditCards"?"visible":"hidden"'}}]},f:[{t:7,e:"CreditCards"}]}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["subPage"],s:'_0==="secureNotes"?"visible":"hidden"'}}]},f:[{t:7,e:"SecureNotes"}]}]}]},components:{PasswordDetails:mt,NoteDetails:ft,Panel:wt,WaitingIdentityPanel:vt,Browser:b,ImportProgress:yt,TopMenu:bt,StandAloneMenu:xt,PasswordGuardian:Dt,Accounts:Ot,CreditCards:_e,SecureNotes:we},data:()=>({CONST:R,loading:!1,isLicensed:void 0,ipmLoaded:void 0,searchQuery:"",shouldInstallExtension:!1,browsersToInstallExtension:[],installBrowserId:"",waitingIdentities:[],processingBrowserDeletes:!1,pendingBrowserDeletes:[],subPage:"accounts",isEmptyVault:{creditCards:void 0,accounts:void 0,secureNotes:void 0}}),computed:{showSyncStoppedPanel:function(){return this.get("showSyncStopped")},hasPendingBrowserDeletes:function(){return this.get("pendingBrowserDeletes").length>0},showPendingBrowserDeletesPanel:function(){return this.get("hasPendingBrowserDeletes")&&(this._isOnEmptyScreen("accounts")||this._isOnEmptyScreen("creditCards"))},showInstallExtensionPanel:function(){return this.get("shouldInstallExtension")&&(this._isOnEmptyScreen("accounts")||this._isOnEmptyScreen("creditCards"))},showWaitingIdentitiesPanel:function(){return this.get("waitingIdentities").length>0&&(this._isOnEmptyScreen("passwordGuardian")||this._isOnEmptyScreen("accounts")||this._isOnEmptyScreen("creditCards")||this._isOnEmptyScreen("secureNotes"))},isAnyPanelDisplayed:function(){return this.get("showPendingBrowserDeletesPanel")||this.get("showInstallExtensionPanel")||this.get("showWaitingIdentitiesPanel")},showIpmBanner:function(){return!this.get("isAnyPanelDisplayed")&&(!this.get("isLicensed")&&(!!this._isOnEmptyScreen("accounts")||void 0))},showSearchField:function(){return"passwordGuardian"===!this.get("subPage")||this._isOnEmptyScreen("accounts")||this._isOnEmptyScreen("creditCards")||this._isOnEmptyScreen("secureNotes")}},oninit(){this.listeners=[],this.accounts=this.findComponent("Accounts"),this.secureNotes=this.findComponent("SecureNotes"),this.creditCards=this.findComponent("CreditCards"),this.recentlyInstalledExtensionFinder=new x,n("app.pam.OnOpeningMainScreen"),this._addRactiveListeners(),this.set("mode",R.MODES.LISTVIEW),this.set("loading",!0),n("app.pam.IsPAMLicensed").then((t=>(this.set("isLicensed",t),Promise.all([this._updatePasswords(),this.secureNotes.updateAllNotes(),this.creditCards.updateAllCreditCards()])))).then((()=>{this._addListeners(),this._setIsEmptyVault(),this.set("loading",!1),this.fire("loaded",!0)})),V("DeleteBrowserPasswordsFeature").then((t=>{t&&(n("app.pam.GetPendingBrowserDeletes").then((t=>{t.length>0&&m.panel.showPendingBrowserDelete(),this.setPendingBrowserDeletes(t)})).catch((t=>console.error("GetPendingBrowserDeletes error:",t))),this.listeners.push(r.on("app.pam.onStatusChanged.pendingBrowserDeletes",(t=>{0===t.length&&m.panel.resolvedPendingBrowserDelete(),this.setPendingBrowserDeletes(t)}))))})),this.updateBrowserExtensionStatus()},setPendingBrowserDeletes(t){setTimeout((()=>this.set("processingBrowserDeletes",!1)),1e3),this.set("pendingBrowserDeletes",t)},updateBrowserExtensionStatus(){return n("app.pam.GetBrowserStatus").then((t=>{const e=this.recentlyInstalledExtensionFinder.find(t);e&&(S(),m.panel.extensionInstalled(e.default));const s=y(t).map((t=>({id:t.browser,name:v(t.browser)})));this.set("shouldInstallExtension",function(t){if(t.some((t=>"szb"==t.browser&&t.default)))return!1;var e=t.filter((t=>w[t.browser]&&w[t.browser].extensionSupported)),s=e.every((t=>!t.extension));return e.length>0&&s}(t)),this.set("browsersToInstallExtension",s),this.set("installBrowserId",s.length>0?s[0].id:"")})).catch((t=>{console.error("GetBrowserStatus error:",t)}))},searchVault(t){this.accounts.searchPasswords(t),this.secureNotes.searchNotes(t),this.creditCards.searchCreditCards(t)},_setIsEmptyVault(){this.set({isEmptyVault:{accounts:this.accounts.isEmpty(),secureNotes:this.secureNotes.isEmpty(),creditCards:this.creditCards.isEmpty()}})},_networkStateChanged(t){t&&n("app.pam.checkLeaks").catch((t=>{console.error("app.pam.checkLeaks error: ",JSON.stringify(t))}))},_updatePasswords(){return this.accounts.updatePasswords({getPasswordGuardianData:this.get("isLicensed")})},_addRactiveListeners(){this.observe("searchQuery",(t=>{this.searchVault(t.trim())}),{init:!1}),this.observe("subPage",(t=>{m.view.changed(t)}),{init:!0}),this.on("setIpmLoaded",(()=>{this.set("ipmLoaded",!0)})),this.on("*.setSubPage",((t,e)=>{this.set("subPage",e)})),this.on("*.vaultChanged",(()=>{this._setIsEmptyVault()})),this.on("Modal.close",(()=>{this.set("mode",R.MODES.LISTVIEW)})),this.on("ImportProgress.status",(()=>{this._updatePasswords()})),this.on("retryBrowserDeletes",(()=>(this.set("processingBrowserDeletes",!0),n("app.pam.DeletePendingBrowserPasswords")))),this.on("showLoginModalClick",(()=>{this.fire("showLoginModal")})),this.on("installExtensionClick",(()=>{const t=this.get("installBrowserId");m.panel.clickExtensionInstall(t),n("av.command","install_pam_plugin(browser="+t+",cn=User%20extension%20install,cs=Panel)").catch((t=>{console.error("install_pam_plugin",JSON.stringify(t))}))}))},_addListeners(){this.listeners.push(r.on("RefreshUI",(()=>{this._refreshUI()}))),this.listeners.push(r.on("app.pam.onStatusChanged.vaultRecordsChanged",(t=>{t.logins.anyChange&&this._updatePasswords(),t.creditCards.anyChange&&this.creditCards.updateAllCreditCards(),t.secureNotes.anyChange&&this.secureNotes.updateNotes()}))),this.listeners.push(r.on("app.pam.onStatusChanged.synchronizationDone",(()=>{this._updateWaitingIdentities()}))),this.listeners.push(r.on("app.pam.onStatusChanged.browserStatus",(()=>{this.updateBrowserExtensionStatus()}))),this.listeners.push(r.on("app.pam.onPasswordAdded",(()=>{this._updatePasswords()}))),this.listeners.push(r.on("app.pam.onPasswordChanged",(()=>{this._updatePasswords()}))),this.listeners.push(r.on("app.pam.onPasswordDeleted",(()=>{this._updatePasswords()}))),this.listeners.push(r.on("app.pam.onStatusChanged.guardianChanged",(()=>{this._updatePasswords()}))),this.listeners.push(r.on("app.pam.OnPAMLicenseStateChanged",(t=>{this.set("isLicensed",t.licensed),this._updatePasswords()}))),this.listeners.push(r.on("app.pam.onInternetStateChanged",(t=>{this._networkStateChanged(t)})))},_refreshUI(){this._updatePasswords(),this.secureNotes.updateNotes(),this.creditCards.updateAllCreditCards(),this._updateWaitingIdentities()},_isOnEmptyScreen(t){return"passwordGuardian"===t?!1===this.get("isEmptyVault.accounts"):this.get("subPage")===t&&!1===this.get("isEmptyVault")[t]},_updateWaitingIdentities(){n("app.pam.IsRegisteredAndAuthorized").then((t=>{t.isAuthorized&&n("app.pam.GetWaitingIdentityList").then((t=>this.set("waitingIdentities",t.waitingIdentities))).catch((t=>{console.error("app.pam.GetWaitingIdentityList error: ",JSON.stringify(t))}))})).catch((t=>{console.error("app.pam.IsRegisteredAndAuthorized error: ",JSON.stringify(t))}))},onteardown(){this.listeners.forEach((t=>{t()}))}});class ye{constructor(t){const e=this.qrGenerator()("13","L");e.addData(t),e.make(),this.qrImageTag=e.createImgTag()}qrGenerator(){return function(){var t=function(t,e){var s=t,n=a[e],r=null,o=0,i=null,l=new Array,c={},d=function(t,e){r=function(t){for(var e=new Array(t),s=0;s<t;s+=1){e[s]=new Array(t);for(var n=0;n<t;n+=1)e[s][n]=null}return e}(o=4*s+17),p(0,0),p(o-7,0),p(0,o-7),h(),u(),y(t,e),s>=7&&m(t),null==i&&(i=x(s,n,l)),b(i,e)},p=function(t,e){for(var s=-1;s<=7;s+=1)if(!(t+s<=-1||o<=t+s))for(var n=-1;n<=7;n+=1)e+n<=-1||o<=e+n||(r[t+s][e+n]=0<=s&&s<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==s||6==s)||2<=s&&s<=4&&2<=n&&n<=4)},u=function(){for(var t=8;t<o-8;t+=1)null==r[t][6]&&(r[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==r[6][e]&&(r[6][e]=e%2==0)},h=function(){for(var t=g.getPatternPosition(s),e=0;e<t.length;e+=1)for(var n=0;n<t.length;n+=1){var a=t[e],o=t[n];if(null==r[a][o])for(var i=-2;i<=2;i+=1)for(var l=-2;l<=2;l+=1)r[a+i][o+l]=-2==i||2==i||-2==l||2==l||0==i&&0==l}},m=function(t){for(var e=g.getBCHTypeNumber(s),n=0;n<18;n+=1){var a=!t&&1==(e>>n&1);r[Math.floor(n/3)][n%3+o-8-3]=a}for(n=0;n<18;n+=1){a=!t&&1==(e>>n&1);r[n%3+o-8-3][Math.floor(n/3)]=a}},y=function(t,e){for(var s=n<<3|e,a=g.getBCHTypeInfo(s),i=0;i<15;i+=1){var l=!t&&1==(a>>i&1);i<6?r[i][8]=l:i<8?r[i+1][8]=l:r[o-15+i][8]=l}for(i=0;i<15;i+=1){l=!t&&1==(a>>i&1);i<8?r[8][o-i-1]=l:i<9?r[8][15-i-1+1]=l:r[8][15-i-1]=l}r[o-8][8]=!t},b=function(t,e){for(var s=-1,n=o-1,a=7,i=0,l=g.getMaskFunction(e),c=o-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var d=0;d<2;d+=1)if(null==r[n][c-d]){var p=!1;i<t.length&&(p=1==(t[i]>>>a&1)),l(n,c-d)&&(p=!p),r[n][c-d]=p,-1==(a-=1)&&(i+=1,a=7)}if((n+=s)<0||o<=n){n-=s,s=-s;break}}},x=function(t,e,s){for(var n=_.getRSBlocks(t,e),r=w(),a=0;a<s.length;a+=1){var o=s[a];r.put(o.getMode(),4),r.put(o.getLength(),g.getLengthInBits(o.getMode(),t)),o.write(r)}var i=0;for(a=0;a<n.length;a+=1)i+=n[a].dataCount;if(r.getLengthInBits()>8*i)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*i+")");for(r.getLengthInBits()+4<=8*i&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*i||(r.put(236,8),r.getLengthInBits()>=8*i));)r.put(17,8);return function(t,e){for(var s=0,n=0,r=0,a=new Array(e.length),o=new Array(e.length),i=0;i<e.length;i+=1){var l=e[i].dataCount,c=e[i].totalCount-l;n=Math.max(n,l),r=Math.max(r,c),a[i]=new Array(l);for(var d=0;d<a[i].length;d+=1)a[i][d]=255&t.getBuffer()[d+s];s+=l;var p=g.getErrorCorrectPolynomial(c),u=f(a[i],p.getLength()-1).mod(p);for(o[i]=new Array(p.getLength()-1),d=0;d<o[i].length;d+=1){var h=d+u.getLength()-o[i].length;o[i][d]=h>=0?u.getAt(h):0}}var m=0;for(d=0;d<e.length;d+=1)m+=e[d].totalCount;var _=new Array(m),w=0;for(d=0;d<n;d+=1)for(i=0;i<e.length;i+=1)d<a[i].length&&(_[w]=a[i][d],w+=1);for(d=0;d<r;d+=1)for(i=0;i<e.length;i+=1)d<o[i].length&&(_[w]=o[i][d],w+=1);return _}(r,n)};return c.addData=function(t){var e=v(t);l.push(e),i=null},c.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw new Error(t+","+e);return r[t][e]},c.getModuleCount=function(){return o},c.make=function(){d(!1,function(){for(var t=0,e=0,s=0;s<8;s+=1){d(!0,s);var n=g.getLostPoint(c);(0==s||t>n)&&(t=n,e=s)}return e}())},c.createTableTag=function(t,e){t=t||2;var s="";s+='<table style="',s+=" border-width: 0px; border-style: none;",s+=" border-collapse: collapse;",s+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",s+='">',s+="<tbody>";for(var n=0;n<c.getModuleCount();n+=1){s+="<tr>";for(var r=0;r<c.getModuleCount();r+=1)s+='<td style="',s+=" border-width: 0px; border-style: none;",s+=" border-collapse: collapse;",s+=" padding: 0px; margin: 0px;",s+=" width: "+t+"px;",s+=" height: "+t+"px;",s+=" background-color: ",s+=c.isDark(n,r)?"#000000":"#ffffff",s+=";",s+='"/>';s+="</tr>"}return s+="</tbody>",s+="</table>"},c.createImgTag=function(t,e){t=t||2,e=void 0===e?4*t:e;var s=c.getModuleCount()*t+2*e,n=e,r=s-e;return S(s,s,(function(e,s){if(n<=e&&e<r&&n<=s&&s<r){var a=Math.floor((e-n)/t),o=Math.floor((s-n)/t);return c.isDark(o,a)?0:1}return 1}))},c};t.stringToBytes=function(t){for(var e=new Array,s=0;s<t.length;s+=1){var n=t.charCodeAt(s);e.push(255&n)}return e},t.createStringToBytes=function(t,e){var s=function(){for(var s=b(t),n=function(){var t=s.read();if(-1==t)throw new Error;return t},r=0,a={};;){var o=s.read();if(-1==o)break;var i=n(),l=n()<<8|n();a[String.fromCharCode(o<<8|i)]=l,r+=1}if(r!=e)throw new Error(r+" != "+e);return a}(),n="?".charCodeAt(0);return function(t){for(var e=new Array,r=0;r<t.length;r+=1){var a=t.charCodeAt(r);if(a<128)e.push(a);else{var o=s[t.charAt(r)];"number"==typeof o?(255&o)==o?e.push(o):(e.push(o>>>8),e.push(255&o)):e.push(n)}}return e}};var e=1,s=2,n=4,r=8,a={L:1,M:0,Q:3,H:2},o=0,i=1,l=2,c=3,d=4,p=5,u=6,h=7,g=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a=1335,g=7973,_={},w=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e};return _.getBCHTypeInfo=function(t){for(var e=t<<10;w(e)-w(a)>=0;)e^=a<<w(e)-w(a);return 21522^(t<<10|e)},_.getBCHTypeNumber=function(t){for(var e=t<<12;w(e)-w(g)>=0;)e^=g<<w(e)-w(g);return t<<12|e},_.getPatternPosition=function(e){return t[e-1]},_.getMaskFunction=function(t){switch(t){case o:return function(t,e){return(t+e)%2==0};case i:return function(t,e){return t%2==0};case l:return function(t,e){return e%3==0};case c:return function(t,e){return(t+e)%3==0};case d:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case p:return function(t,e){return t*e%2+t*e%3==0};case u:return function(t,e){return(t*e%2+t*e%3)%2==0};case h:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw new Error("bad maskPattern:"+t)}},_.getErrorCorrectPolynomial=function(t){for(var e=f([1],0),s=0;s<t;s+=1)e=e.multiply(f([1,m.gexp(s)],0));return e},_.getLengthInBits=function(t,a){if(1<=a&&a<10)switch(t){case e:return 10;case s:return 9;case n:case r:return 8;default:throw new Error("mode:"+t)}else if(a<27)switch(t){case e:return 12;case s:return 11;case n:return 16;case r:return 10;default:throw new Error("mode:"+t)}else{if(!(a<41))throw new Error("type:"+a);switch(t){case e:return 14;case s:return 13;case n:return 16;case r:return 12;default:throw new Error("mode:"+t)}}},_.getLostPoint=function(t){for(var e=t.getModuleCount(),s=0,n=0;n<e;n+=1)for(var r=0;r<e;r+=1){for(var a=0,o=t.isDark(n,r),i=-1;i<=1;i+=1)if(!(n+i<0||e<=n+i))for(var l=-1;l<=1;l+=1)r+l<0||e<=r+l||0==i&&0==l||o==t.isDark(n+i,r+l)&&(a+=1);a>5&&(s+=3+a-5)}for(n=0;n<e-1;n+=1)for(r=0;r<e-1;r+=1){var c=0;t.isDark(n,r)&&(c+=1),t.isDark(n+1,r)&&(c+=1),t.isDark(n,r+1)&&(c+=1),t.isDark(n+1,r+1)&&(c+=1),0!=c&&4!=c||(s+=3)}for(n=0;n<e;n+=1)for(r=0;r<e-6;r+=1)t.isDark(n,r)&&!t.isDark(n,r+1)&&t.isDark(n,r+2)&&t.isDark(n,r+3)&&t.isDark(n,r+4)&&!t.isDark(n,r+5)&&t.isDark(n,r+6)&&(s+=40);for(r=0;r<e;r+=1)for(n=0;n<e-6;n+=1)t.isDark(n,r)&&!t.isDark(n+1,r)&&t.isDark(n+2,r)&&t.isDark(n+3,r)&&t.isDark(n+4,r)&&!t.isDark(n+5,r)&&t.isDark(n+6,r)&&(s+=40);var d=0;for(r=0;r<e;r+=1)for(n=0;n<e;n+=1)t.isDark(n,r)&&(d+=1);return s+=10*(Math.abs(100*d/e/e-50)/5)},_}(),m=function(){for(var t=new Array(256),e=new Array(256),s=0;s<8;s+=1)t[s]=1<<s;for(s=8;s<256;s+=1)t[s]=t[s-4]^t[s-5]^t[s-6]^t[s-8];for(s=0;s<255;s+=1)e[t[s]]=s;var n={glog:function(t){if(t<1)throw new Error("glog("+t+")");return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}};return n}();function f(t,e){if(void 0===t.length)throw new Error(t.length+"/"+e);var s=function(){for(var s=0;s<t.length&&0==t[s];)s+=1;for(var n=new Array(t.length-s+e),r=0;r<t.length-s;r+=1)n[r]=t[r+s];return n}(),n={getAt:function(t){return s[t]},getLength:function(){return s.length},multiply:function(t){for(var e=new Array(n.getLength()+t.getLength()-1),s=0;s<n.getLength();s+=1)for(var r=0;r<t.getLength();r+=1)e[s+r]^=m.gexp(m.glog(n.getAt(s))+m.glog(t.getAt(r)));return f(e,0)},mod:function(t){if(n.getLength()-t.getLength()<0)return n;for(var e=m.glog(n.getAt(0))-m.glog(t.getAt(0)),s=new Array(n.getLength()),r=0;r<n.getLength();r+=1)s[r]=n.getAt(r);for(r=0;r<t.getLength();r+=1)s[r]^=m.gexp(m.glog(t.getAt(r))+e);return f(s,0).mod(t)}};return n}var _=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var s={};return s.totalCount=t,s.dataCount=e,s},s={};return s.getRSBlocks=function(s,n){var r=function(e,s){switch(s){case a.L:return t[4*(e-1)+0];case a.M:return t[4*(e-1)+1];case a.Q:return t[4*(e-1)+2];case a.H:return t[4*(e-1)+3];default:return}}(s,n);if(void 0===r)throw new Error("bad rs block @ typeNumber:"+s+"/errorCorrectLevel:"+n);for(var o=r.length/3,i=new Array,l=0;l<o;l+=1)for(var c=r[3*l+0],d=r[3*l+1],p=r[3*l+2],u=0;u<c;u+=1)i.push(e(d,p));return i},s}(),w=function(){var t=new Array,e=0,s={getBuffer:function(){return t},getAt:function(e){var s=Math.floor(e/8);return 1==(t[s]>>>7-e%8&1)},put:function(t,e){for(var n=0;n<e;n+=1)s.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(s){var n=Math.floor(e/8);t.length<=n&&t.push(0),s&&(t[n]|=128>>>e%8),e+=1}};return s},v=function(e){var s=n,r=t.stringToBytes(e),a={getMode:function(){return s},getLength:function(t){return r.length},write:function(t){for(var e=0;e<r.length;e+=1)t.put(r[e],8)}};return a},y=function(){var t=new Array,e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,s,n){s=s||0,n=n||t.length;for(var r=0;r<n;r+=1)e.writeByte(t[r+s])},writeString:function(t){for(var s=0;s<t.length;s+=1)e.writeByte(t.charCodeAt(s))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var s=0;s<t.length;s+=1)s>0&&(e+=","),e+=t[s];return e+="]"}};return e},b=function(t){var e=t,s=0,n=0,r=0,a={read:function(){for(;r<8;){if(s>=e.length){if(0==r)return-1;throw new Error("unexpected end of file./"+r)}var t=e.charAt(s);if(s+=1,"="==t)return r=0,-1;t.match(/^\s$/)||(n=n<<6|o(t.charCodeAt(0)),r+=6)}var a=n>>>r-8&255;return r-=8,a}},o=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw new Error("c:"+t)};return a},x=function(t,e){var s=t,n=e,r=new Array(t*e),a={setPixel:function(t,e,n){r[e*s+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(s),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(s),t.writeShort(n),t.writeByte(0);var e=o(2);t.writeByte(2);for(var r=0;e.length-r>255;)t.writeByte(255),t.writeBytes(e,r,255),r+=255;t.writeByte(e.length-r),t.writeBytes(e,r,e.length-r),t.writeByte(0),t.writeString(";")}},o=function(t){for(var e=1<<t,s=1+(1<<t),n=t+1,a=i(),o=0;o<e;o+=1)a.add(String.fromCharCode(o));a.add(String.fromCharCode(e)),a.add(String.fromCharCode(s));var l=y(),c=function(t){var e=t,s=0,n=0;return{write:function(t,r){if(t>>>r!=0)throw new Error("length over");for(;s+r>=8;)e.writeByte(255&(t<<s|n)),r-=8-s,t>>>=8-s,n=0,s=0;n|=t<<s,s+=r},flush:function(){s>0&&e.writeByte(n)}}}(l);c.write(e,n);var d=0,p=String.fromCharCode(r[d]);for(d+=1;d<r.length;){var u=String.fromCharCode(r[d]);d+=1,a.contains(p+u)?p+=u:(c.write(a.indexOf(p),n),a.size()<4095&&(a.size()==1<<n&&(n+=1),a.add(p+u)),p=u)}return c.write(a.indexOf(p),n),c.write(s,n),c.flush(),l.toByteArray()},i=function(){var t={},e=0,s={add:function(n){if(s.contains(n))throw new Error("dup key:"+n);t[n]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return s};return a},S=function(t,e,s,n){for(var r=x(t,e),a=0;a<e;a+=1)for(var o=0;o<t;o+=1)r.setPixel(o,a,s(o,a));var i=y();r.write(i);for(var l=function(){var t=0,e=0,s=0,n="",r={},a=function(t){n+=String.fromCharCode(o(63&t))},o=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw new Error("n:"+t)};return r.writeByte=function(n){for(t=t<<8|255&n,e+=8,s+=1;e>=6;)a(t>>>e-6),e-=6},r.flush=function(){if(e>0&&(a(t<<6-e),t=0,e=0),s%3!=0)for(var r=3-s%3,o=0;o<r;o+=1)n+="="},r.toString=function(){return n},r}(),c=i.toByteArray(),d=0;d<c.length;d+=1)l.writeByte(c[d]);l.flush();var p="";return p+="<img",p+=' src="',p+="data:image/gif;base64,",p+=l,p+='"',p+=' width="',p+=t,p+='"',p+=' height="',p+=e,p+='"',n&&(p+=' alt="',p+=n,p+='"'),p+="/>"};return t}()}}const be=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.title")'}}]},f:[{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--10"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step1.desc")'}}]}," ",{t:7,e:"svg",a:{class:"icon-mobile-ok",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 240 240"},f:[{t:7,e:"defs",f:[{t:7,e:"circle",a:{id:"a",cx:"120",cy:"120",r:"120"}}]},{t:7,e:"use",a:{"xlink:href":"#a",overflow:"visible",fill:"#E7E7EF"}},{t:7,e:"clipPath",a:{id:"b"},f:[{t:7,e:"use",a:{"xlink:href":"#a",overflow:"visible"}}]},{t:7,e:"circle",a:{cx:"120",cy:"120",r:"120.67","clip-path":"url(#b)",fill:"#D4FFC4"}},{t:7,e:"radialGradient",a:{id:"c",cx:"120",cy:"120",r:"121",gradientUnits:"userSpaceOnUse"},f:[{t:7,e:"stop",a:{offset:"0","stop-color":"#FFF","stop-opacity":"0"}},{t:7,e:"stop",a:{offset:"1","stop-opacity":".05"}}]},{t:7,e:"circle",a:{cx:"120",cy:"120",r:"121","clip-path":"url(#b)",fill:"url(#c)"}},{t:7,e:"g",a:{"clip-path":"url(#b)"},f:[{t:7,e:"path",a:{d:"M205.5 62.86L105.11 43.75c-4.84-1.19-10.49 1.94-12.65 6.99L13.82 234.16c-2.27 5.29-.35 11.13 4.3 13.05l96.12 39.64c5.39 2.22 11.72-.65 14.1-6.43l82.4-199.79c2.27-5.48.33-16.4-5.24-17.77z",fill:"#23242D"}},{t:7,e:"path",a:{d:"M203.32 61.92L103.7 37.45c-4.84-1.19-10.49 1.94-12.65 6.99L12.42 227.86c-2.27 5.29-.35 11.13 4.3 13.05l96.12 39.64c5.39 2.22 11.72-.65 14.1-6.43l82.4-199.79c2.27-5.48-.45-11.04-6.02-12.41z",fill:"#4F515E"}},{t:7,e:"path",a:{d:"M95.62 53.88L197.01 80.1c2.12.55 3.18 2.6 2.36 4.58l-69.69 168.67c-.85 2.07-3.22 3.09-5.29 2.28L25.86 217c-1.79-.7-2.57-2.82-1.75-4.72L90.86 56.34c.79-1.83 2.91-2.94 4.76-2.46z","fill-rule":"evenodd","clip-rule":"evenodd",fill:"#3BB151"}},{t:7,e:"path",a:{d:"M75.14 255.57l-17.19-6.98c-1.07-.43-1.53-1.76-1.03-2.94l2.29-5.41c.5-1.18 1.78-1.8 2.85-1.37l17.22 6.85c1.1.44 1.59 1.78 1.08 2.98l-2.31 5.5c-.5 1.2-1.81 1.81-2.91 1.37z",fill:"#30313E"}},{t:7,e:"path",a:{d:"M169.62 65.15l-43.57-11.04c-.71-.18-1.03-.92-.72-1.65l.2-.48c.31-.73 1.14-1.18 1.85-1l43.6 10.94c.75.19 1.11.96.8 1.71l-.21.49c-.32.76-1.2 1.22-1.95 1.03zM192.71 69.58c-.74 1.79-2.81 2.87-4.61 2.41-1.8-.46-2.66-2.27-1.92-4.06.74-1.78 2.8-2.86 4.6-2.41 1.81.45 2.67 2.27 1.93 4.06z",fill:"#23242D"}},{t:7,e:"path",a:{d:"M122.07 119.66C107 115.15 89.64 124.2 83 139.85c-6.67 15.71-.22 32.57 14.7 37.71 15.24 5.25 33.37-3.71 40.19-20.06 6.79-16.27-.43-33.23-15.82-37.84zm13.77 37.19c-6.31 15.13-23.1 23.44-37.22 18.59-13.84-4.75-19.83-20.38-13.64-34.95 6.16-14.51 22.26-22.9 36.23-18.7 14.24 4.27 20.92 19.98 14.63 35.06zm-8.69-13.07c-.23-.55-.88-.75-1.46-.46l-22.87 11.59-3.9-9.78c-.21-.54-.84-.74-1.41-.45l-.39.2c-.56.29-.85.96-.63 1.5l4.37 11.01c.12.3.38.49.67.56.28.13.62.15.95-.02l24.19-12.23c.58-.29.86-.97.64-1.52l-.16-.4z","fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFF"}}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--20 g-font--small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step1.desc2")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"goTo",a:"step2"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step1.btn.start")'}}]}]}],n:50,x:{r:["page"],s:'_0==="step1"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="step2"'},f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.title")'}}]},f:[{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step2.desc")'}}]}," ",{t:7,e:"div",a:{class:"g-clearfix step2-icon-wrapper"},f:[{t:7,e:"div",a:{class:"column"},f:[{t:7,e:"svg",a:{class:"icon-android",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},f:[{t:7,e:"g",a:{fill:"#ffffff"},f:[{t:7,e:"path",a:{d:"M20 13.42h10.82c.21 0 .21 0 .21.21v15.75c0 1.5-1.18 2.69-2.69 2.7h-1.58c-.14 0-.18.03-.18.17v5.29c0 1.15-.77 2.13-1.88 2.39-1.69.39-3.04-.91-3.05-2.32-.01-1.78-.01-3.56 0-5.34 0-.15-.02-.2-.19-.2-.97.01-1.95.01-2.92 0-.16 0-.19.05-.19.2 0 1.78.01 3.56 0 5.34-.01 1.28-1.05 2.32-2.33 2.38-1.22.06-2.26-.72-2.54-1.89-.05-.18-.06-.37-.06-.56v-5.29c0-.15-.04-.18-.18-.17-.53.01-1.07 0-1.6 0-1.48 0-2.67-1.2-2.67-2.68V13.64c0-.21 0-.21.2-.21 3.61-.01 7.22-.01 10.83-.01zM19.98 12.54H9.16c-.2 0-.2 0-.19-.2.03-.87.14-1.73.39-2.57.43-1.43 1.17-2.68 2.19-3.77.86-.92 1.82-1.7 2.93-2.29.11-.06.06-.11.03-.17L12.86.57c-.11-.21-.07-.4.1-.5.2-.11.39-.06.5.15l1.08 1.95c.2.36.4.71.59 1.07.05.1.1.11.2.07.9-.4 1.84-.65 2.81-.79 1.07-.15 2.14-.17 3.21-.06 1.14.12 2.24.39 3.29.85.11.05.15.01.21-.08.55-1 1.11-2 1.67-3 .08-.15.25-.23.38-.2.17.04.27.17.29.35.01.09-.04.17-.08.24-.54.98-1.08 1.95-1.63 2.93-.06.11-.04.15.06.21 2 1.13 3.58 2.67 4.6 4.76.46.95.73 1.97.82 3.03.02.28.03.57.06.85.01.13-.02.17-.16.17h-3.77c-2.37-.03-4.74-.03-7.11-.03zm6.03-4.95c0-.51-.41-.93-.91-.93s-.92.41-.92.9c0 .51.42.94.93.94.49 0 .89-.4.9-.91zm-12.02-.01c0 .51.42.93.92.92.51-.01.92-.43.92-.93s-.44-.92-.94-.91c-.5.01-.9.42-.9.92zM3.1 20.61v-5.06c0-1.06.47-1.86 1.41-2.31 1.68-.8 3.42.43 3.52 2 .01.13.02.27.02.4v10.1c0 .72-.25 1.33-.77 1.83-1.06 1.01-2.75.88-3.65-.27-.37-.48-.53-1.02-.53-1.62v-5.07zM36.9 20.62v5.05c0 1.1-.48 1.93-1.48 2.36-1.74.76-3.36-.55-3.45-2.02-.01-.15-.02-.3-.02-.45V15.5c0-1.24.85-2.26 2.07-2.46 1.6-.26 2.77.98 2.85 2.17l.03.51v4.9z"}}]}]}]}," ",{t:7,e:"div",a:{class:"column"},f:[{t:7,e:"svg",a:{class:"icon-ios",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},f:[{t:7,e:"path",a:{d:"M32.48 20.8c0-3.23 1.66-6.07 4.19-7.78-2.05-2.45-5-3.97-8.3-3.97-2.98 0-6.02 1.72-7.64 1.72s-4.66-1.72-7.64-1.72c-6.15 0-11.16 5.27-11.16 12.03C1.93 31.6 8.9 40 13.68 40c2.74 0 4.85-1.72 7.05-1.72S25.05 40 27.78 40c3.43 0 7.98-4.32 10.28-10.64-3.29-1.51-5.58-4.77-5.58-8.56zm-6.01-14C28.73 4.01 28.31 0 28.31 0s-4.1.5-6.38 3.29-1.85 6.8-1.85 6.8 4.12-.51 6.39-3.29z",fill:"#ffffff"}}]}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30 g-margin-bottom--20 g-font--small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step2.desc2")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"goTo",a:"step3"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step2.btn.ready")'}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="step2"))&&(_0==="step3")'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.title")'}}]},f:[{t:7,e:"div",a:{class:"g-margin-top--15"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step3.desc")'}}]}," ",{t:7,e:"div",a:{class:"white-block g-margin-top--15"},f:[{t:7,e:"div",a:{class:"g-margin-top--15 g-padding-top--10 g-margin-bottom--10"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step3.desc2")'}}]}," ",{t:7,e:"div",a:{class:"g-clearfix step3-icon-wrapper"},f:[{t:7,e:"div",a:{class:"column g-margin-top--5 g-margin-bottom--5 g-margin-left--5"},f:[{t:7,e:"svg",a:{class:"icon-mobile-qr",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 240 240"},f:[{t:7,e:"defs",f:[{t:7,e:"circle",a:{id:"first",cx:"120",cy:"120",r:"120"}}]},{t:7,e:"use",a:{"xlink:href":"#first",overflow:"visible",fill:"#E7E7EF"}},{t:7,e:"clipPath",a:{id:"second"},f:[{t:7,e:"use",a:{"xlink:href":"#first",overflow:"visible"}}]},{t:7,e:"circle",a:{cx:"120",cy:"120",r:"120.67","clip-path":"url(#second)",fill:"#C4F0FF"}},{t:7,e:"radialGradient",a:{id:"third",cx:"120",cy:"120",r:"121",gradientUnits:"userSpaceOnUse"},f:[{t:7,e:"stop",a:{offset:"0","stop-color":"#FFF","stop-opacity":"0"}},{t:7,e:"stop",a:{offset:"1","stop-opacity":".05"}}]},{t:7,e:"circle",a:{cx:"120",cy:"120",r:"121","clip-path":"url(#second)",fill:"url(#third)"}},{t:7,e:"g",a:{"clip-path":"url(#second)"},f:[{t:7,e:"path",a:{d:"M205.5 62.86L105.11 43.75c-4.84-1.19-10.49 1.94-12.65 6.99L13.82 234.16c-2.27 5.29-.35 11.13 4.3 13.05l96.12 39.64c5.39 2.22 11.72-.65 14.1-6.43l82.4-199.79c2.27-5.48.33-16.4-5.24-17.77z",fill:"#23242D"}},{t:7,e:"path",a:{d:"M203.32 61.92L103.7 37.45c-4.84-1.19-10.49 1.94-12.65 6.99L12.42 227.86c-2.27 5.29-.35 11.13 4.3 13.05l96.12 39.64c5.39 2.22 11.72-.65 14.1-6.43l82.4-199.79c2.27-5.48-.45-11.04-6.02-12.41z",fill:"#4F515E"}},{t:7,e:"path",a:{d:"M95.62 53.88L197.01 80.1c2.12.55 3.18 2.6 2.36 4.58l-69.69 168.67c-.85 2.07-3.22 3.09-5.29 2.28L25.86 217c-1.79-.7-2.57-2.82-1.75-4.72L90.86 56.34c.79-1.83 2.91-2.94 4.76-2.46z","fill-rule":"evenodd","clip-rule":"evenodd",fill:"#F2F2F6"}},{t:7,e:"path",a:{d:"M75.14 255.57l-17.19-6.98c-1.07-.43-1.53-1.76-1.03-2.94l2.29-5.41c.5-1.18 1.78-1.8 2.85-1.37l17.22 6.85c1.1.44 1.59 1.78 1.08 2.98l-2.31 5.5c-.5 1.2-1.81 1.81-2.91 1.37z",fill:"#30313E"}},{t:7,e:"path",a:{d:"M169.62 65.15l-43.57-11.04c-.71-.18-1.03-.92-.72-1.65l.2-.48c.31-.73 1.14-1.18 1.85-1l43.6 10.94c.75.19 1.11.96.8 1.71l-.21.49c-.32.76-1.2 1.22-1.95 1.03zM192.71 69.58c-.74 1.79-2.81 2.87-4.61 2.41-1.8-.46-2.66-2.27-1.92-4.06.74-1.78 2.8-2.86 4.6-2.41 1.81.45 2.67 2.27 1.93 4.06z",fill:"#23242D"}}]},{t:7,e:"g",f:[{t:7,e:"path",a:{d:"M114.22 116.85c-2.61 6.09-5.22 12.16-7.88 18.36-5.62-1.85-11.07-3.64-16.47-5.42 2.57-6.03 5.14-12.08 7.72-18.13 5.49 1.72 11.04 3.45 16.63 5.19zm-3.31 2.23c-4.15-1.31-8.06-2.54-11.92-3.75-1.89 4.44-3.74 8.78-5.6 13.13 3.42 1.12 6.74 2.19 10.06 3.3.69.23 1.33.44 2.13-.27 1.74-4.04 3.51-8.17 5.33-12.41zM81.96 148.36c5.35 1.85 10.74 3.72 16.31 5.65-2.64 6.14-5.21 12.14-7.78 18.12-5.43-1.97-10.82-3.93-16.15-5.87 2.54-5.96 5.08-11.92 7.62-17.9zm1.58 3.1L78 164.45c3.8 1.37 7.54 2.72 11.3 4.08.07.03.17.01.25-.01.09-.03.17-.09.13-.07 1.79-4.16 3.53-8.24 5.25-12.23-.13-.37-.23-.63-.33-.9-3.67-1.28-7.34-2.56-11.06-3.86zM141.18 146.68c-5.81-1.91-11.57-3.81-17.4-5.73 2.72-6.28 5.38-12.43 8.05-18.6 5.8 1.81 11.66 3.64 17.57 5.49-2.74 6.29-5.48 12.57-8.22 18.84zm-8.41-20.77c-1.93 4.45-3.75 8.65-5.52 12.75.14.38.24.64.35.91 3.89 1.27 7.82 2.56 11.84 3.87l5.92-13.57c-4.26-1.34-8.39-2.64-12.59-3.96zM112.2 180.02c.79-1.82 1.58-3.63 2.4-5.54-.89-.32-1.63-.58-2.56-.92.52-1 .48-2.19 2.18-2.47.29.1.86.31 1.6.57.35-.8.66-1.51.97-2.23 4.15 1.47 8.32 2.94 12.53 4.43-.74 1.69-1.47 3.38-2.21 5.07-.85-.3-1.69-.61-2.53-.91.3-.9.54-1.61.75-2.25-2.45-.87-4.75-1.69-7.09-2.53-.73 1.68-1.43 3.28-2.12 4.88.87.4 1.65.75 2.41 1.1-.44 1.02-.8 1.85-1.16 2.68-1.73-.63-3.45-1.26-5.17-1.88zM109.6 166.89c-.68 1.56-1.35 3.13-2.11 4.88.75.34 1.52.69 2.46 1.12-.37.86-.75 1.73-1.16 2.69.74.27 1.31.47 2.05.74-.42.98-.81 1.88-1.2 2.78-.68-.25-1.36-.5-2.04-.74.31-.71.61-1.41.79-1.82-.27-1.64-1.26-1.62-2.2-1.74-.43.99-.78 1.81-1.14 2.63-1.69-.61-3.38-1.23-5.06-1.84.35-.82.71-1.64 1.14-2.64.8.22 1.61.44 2.52.68.37-.85.74-1.71 1.15-2.66-.79-.28-1.52-.54-2.3-.83.27-1.12.46-2.15 1.88-2.55.43.15 1 .35 1.72.61.34-.79.65-1.5.95-2.21.85.29 1.7.59 2.55.9zM121.93 119.26c-1.51 3.5-3.01 6.99-4.59 10.65-.91-.29-1.74-.56-2.57-.83.28-.65.56-1.29.86-2-.72-.47-1.45-.95-2.21-1.44.77-1.8 1.44-3.34 2.18-5.08.74.18 1.56.38 2.56.63.4-.92.79-1.82 1.17-2.73.88.26 1.74.53 2.6.8zM121.99 131.4c-.78-.25-1.55-.5-2.47-.8.25-1.02.46-2.02 1.82-2.55.49.12 1.08.27 1.78.45.27-.63.54-1.26.9-2.09-.67-.28-1.45-.6-2.4-.99.79-1.83 1.59-3.68 2.38-5.52 1.73.54 3.47 1.08 5.21 1.63-.39.91-.78 1.82-1.21 2.8-.91-.29-1.66-.52-2.45-.77-.68 1-1.29 1.9-.56 3.04.45.14 1.03.33 1.52.48.26.69-.48 1.78-1.73 2.67-.52-.16-1.09-.35-1.83-.58-.35.8-.66 1.52-.96 2.23zM132.77 165.96c-.79-.27-1.58-.55-2.51-.87-.37.66-.74 1.33-1.17 2.09-.76-.26-1.52-.53-2.41-.84 1.08-2.48 2.2-5.04 3.39-7.8 1.69.58 3.42 1.17 5.16 1.76-.82 1.89-1.64 3.78-2.46 5.66zM88.7 132.53c1.61.53 3.22 1.07 4.89 1.62-.72 1.68-1.37 3.2-2.01 4.72-.26.14-.52.27-.89.47-.46-.16-1.01-.34-1.73-.58.28-.76.6-1.64.98-2.69-.8-.27-1.6-.53-2.39-.8.38-.91.76-1.82 1.15-2.74zM92.98 173.03c.74-1.73 1.49-3.46 2.31-5.39.79.24 1.58.48 2.56.77-.82 1.92-1.6 3.72-2.38 5.52l-2.49-.9zM136.47 157.47c-1.18.33-2.22.38-2.51-1.22.66-1.5 1.37-3.14 2.08-4.77.89.3 1.77.59 2.66.89-.74 1.7-1.49 3.4-2.23 5.1zM84.28 142.91c.73.25 1.46.5 2.36.81-.32.85-.65 1.71-1.05 2.77-.89-.3-1.68-.58-2.47-.85.39-.91.78-1.82 1.16-2.73z"}},{t:7,e:"path",a:{d:"M119.44 182.65c.36-.83.73-1.67 1.17-2.7.82.25 1.65.5 2.66.82-.44 1.01-.84 1.92-1.23 2.83-.87-.32-1.74-.64-2.6-.95zM117.01 136.22c.34-.88.7-1.72 1.14-2.74.82.2 1.65.4 2.66.65.39-.9.78-1.81 1.17-2.72.77.25 1.55.5 2.56.82-1.42 3.51-3 6.98-4.52 10.58-1.51-.5-2.94-.97-4.29-1.42-1.66 1.07-1.66 1.07-1.38 2.79.51.2 1.08.42 1.73.68-.28.65-.55 1.26-.9 2.08.86.34 1.65.65 2.53 1 .32-.74.59-1.36.92-2.13.75.17 1.42.32 1.91.42 1.47-.2 1.43-1.46 2.07-2.33 2.34.78 4.72 1.57 7.2 2.39-.7 1.61-1.38 3.18-2.04 4.71.51.95 2.34.26 1.84 2.64-.77 1.76-1.85 4.26-3.02 6.94-1.76-.6-3.47-1.19-5.17-1.78.36-.84.73-1.68 1.18-2.71.83.22 1.68.45 2.6.7.7-1.6 1.38-3.17 2.11-4.87-.76-.26-1.58-.53-2.49-.84-.36.82-.71 1.64-1.15 2.65-.9-.31-1.72-.58-2.63-.89-.36.82-.63 1.45-.98 2.27-.75-.26-1.42-.48-2.03-.69.22-.72.37-1.44.56-2.3.11-.05.46-.23.85-.43.49.17 1 .35 1.52.51.07.02.17-.06.26-.1 1.03-1.92 1.05-1.95 2.25-2.39.45.15 1.02.34 1.58.53.32-.74.59-1.37.87-2.01-1.58-.53-3.09-1.03-4.61-1.54-.5.97-.59 2.13-1.93 2.33-.57-.12-1.24-.26-1.89-.39-.32.73-.55 1.28-.92 2.12-.89-.03-1.83-.05-2.76-.08-.68 1.56-1.37 3.18-2.03 4.71.87.3 1.61.55 2.38.82.47-.94.9-1.8 1.32-2.65.95.32 1.72.59 2.54.87-.82 1.75-1.58 3.52-2.43 5.47-.82-.22-1.65-.45-2.56-.7-.28.66-.55 1.28-.87 2.02.47.7 2.07.26 1.92 2.04-.53 1.23-1.2 2.78-1.96 4.52-.85-.3-1.68-.59-2.51-.89l1.2-2.78c-.93-.33-1.74-.61-2.55-.9.68-1.57 1.36-3.14 2.12-4.9-.77-.33-1.55-.66-2.4-1.03 1.08-2.5 2.14-4.97 3.34-7.74.79.02 1.73.04 2.75.06.23-.54.5-1.16.82-1.89-.58-.19-1.14-.39-1.96-.66.14-1.01.28-1.99.43-3.08-.45-.15-1.02-.34-1.67-.56-.13.19-.32.42-.43.67-.33.73-.51 1.59-1.55 1.78-.57-.19-1.14-.38-1.69-.57-.58.87-1.1 1.65-1.7 2.56l-2.13-.72c-.35.81-.61 1.43-.92 2.14 1.59.54 3.17 1.08 4.65 1.59.09.21.14.29.15.38.01.08.02.19-.02.27-1.82 4.23-3.64 8.46-5.54 12.86l-2.52-.89c.67-1.55 1.34-3.11 2.13-4.95l-2.09-1.69c.59-1.38 1.25-2.91 1.98-4.62-3.2-1.1-6.3-2.17-9.56-3.29.45-1.05.83-1.94 1.22-2.86 2.3.74 4.58 1.53 6.9 2.32.32-.75.61-1.42.92-2.14-1.26-.43-2.4-.85-3.57-1.2-1.13-.35-2.18-.91-3.38-1.01-.34.8-.61 1.43-.87 2.03-.76-.22-1.5-.47-2.41-.78.25-.67.51-1.36.66-1.77 1.16-1.16 1.89-.34 2.83-.26.25-.58.51-1.19.83-1.94-.6-.4-1.31-.87-2.05-1.36.76-1.78 1.41-3.31 2.12-4.97.7.23 1.48.49 2.35.78-.64 1.5-1.3 3.04-2.01 4.69.86.29 1.64.55 2.51.84.29-.6.58-1.21.93-1.93.55.18 1.1.37 1.16.39 1.95-.03 1.92-1.44 2.64-2.41 1.46.48 2.95.98 4.46 1.53-.65 1.59-1.34 3.21-2.04 4.84.86.29 1.65.55 2.42.81.71-1.65 1.37-3.18 2.06-4.8-.86-.28-1.68-.56-2.44-.86 1.47-3.51 2.96-6.98 4.53-10.62.91.29 1.73.56 2.56.82-1.1 2.55-2.19 5.1-3.32 7.72.84.28 1.57.52 2.45.81.31-.59.67-1.26 1.12-2.09.65.24 1.3.45 1.98.72-.25.68-.56 1.39-.86 2.09.87.29 1.67.55 2.44.8.32-.74.58-1.35.88-2.04-.87-.29-1.69-.56-2.46-.85zm-16.16 6.53c.86 0 1.52-.01 2.28-.01.24-.67.49-1.35.7-1.92-.74-.25-1.29-.43-1.88-.63-.39.89-.73 1.68-1.1 2.56z"}},{t:7,e:"path",a:{d:"M107.05 165.98l-2.45-.87c.33-.86.67-1.74 1.08-2.81.92.32 1.74.61 2.56.9-.39.94-.79 1.86-1.19 2.78zM99.87 163.53c-.35.8-.73 1.69-1.13 2.62-.79-.28-1.51-.54-2.33-.83.36-.83.72-1.68 1.12-2.61.8.28 1.61.56 2.34.82zM116.79 169.43c-.77-.27-1.54-.55-2.55-.9 1.44-3.49 2.99-6.94 4.56-10.62.91.31 1.76.6 2.6.89-.28.65-.56 1.3-.97 2.23.65.51 1.36 1.08 2.17 1.72-.2.47-.47 1.09-.83 1.9.89.31 1.71.6 2.6.91-.43.99-.78 1.8-1.22 2.8-1.61-.57-3.29-1.15-5.12-1.8-.45 1.07-.84 1.97-1.24 2.87zM135.99 151.37c-1.47-.49-3.02-1.01-4.62-1.54.38-.89.74-1.7 1.14-2.63 1.49.49 3.01 1 4.62 1.53-.38.9-.77 1.81-1.14 2.64zM99.81 118.72c2.51.8 4.91 1.56 7.36 2.34-1.09 2.55-2.14 5.01-3.24 7.57-2.3-.75-4.58-1.48-6.81-2.21-.12-.31-.21-.56-.28-.75 1.02-2.39 2.02-4.71 2.97-6.95zM84.04 155.55c.38-.19.63-.33.89-.46 2.18.76 4.36 1.53 6.63 2.33-1.06 2.48-2.1 4.91-3.2 7.47-2.34-.84-4.74-1.7-7.21-2.58.94-2.19 1.9-4.42 2.89-6.76zM130.77 137.34c1.13-2.6 2.21-5.11 3.35-7.72 2.61.83 5.2 1.65 7.86 2.5-1.05 2.4-2.06 4.74-3.08 7.07-.28.14-.55.28-.96.49-2.26-.74-4.6-1.5-7.17-2.34z"}}]}]}]}," ",{t:7,e:"div",a:{class:"column g-margin-top--5 g-margin-bottom--5 g-margin-right--5"},f:[{t:3,r:"qrCode"}]}]}," ",{t:7,e:"a",a:{class:"a"},v:{click:{n:"goTo",a:"step2"}},f:[{t:3,x:{r:["nls"],s:'_0("global.back")'}}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20 g-font--small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step3.desc3")'}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="step2"))&&((!(_0==="step3"))&&(_0==="step4"))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.title")'}}]},f:[{t:7,e:"div",a:{class:"img-done-circle"},f:[{t:7,e:"svg",a:{class:"icon-done",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160 160",style:"enable-background:new 0 0 160 160;","xml:space":"preserve"},f:[{t:7,e:"g",f:[{t:7,e:"path",a:{style:"fill-rule:evenodd;clip-rule:evenodd;fill:#1cb84a;",d:"M80,0C35.82,0,0,35.82,0,80c0,44.18,35.82,80,80,80\n\t\t\t\t\t\t\ts80-35.82,80-80C160,35.82,124.18,0,80,0z M80,155.99c-41.97,0-75.99-34.02-75.99-75.99S38.03,4.01,80,4.01\n\t\t\t\t\t\t\tS155.99,38.03,155.99,80S121.97,155.99,80,155.99z M119.46,52.58c-0.81-0.81-2.12-0.81-2.93,0l-48.56,48.56L46.42,79.58\n\t\t\t\t\t\t\tc-0.81-0.81-2.11-0.81-2.92,0l-2.92,2.92c-0.81,0.81-0.81,2.11,0,2.92l22.79,22.79c0.06,0.09,0.13,0.18,0.21,0.26l2.93,2.93\n\t\t\t\t\t\t\tc0.41,0.41,0.95,0.61,1.49,0.6c0.54,0.01,1.07-0.19,1.48-0.6l2.92-2.92c0.07-0.07,0.13-0.16,0.19-0.24l49.8-49.8\n\t\t\t\t\t\t\tc0.81-0.81,0.81-2.12,0-2.93L119.46,52.58z"}}]}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.step4.desc")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn g-margin-top--20"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="step2"))&&((!(_0==="step3"))&&((!(_0==="step4"))&&(_0==="error")))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.title")'}}]},f:[{t:7,e:"div",a:{class:"img-done-circle"},f:[{t:7,e:"svg",a:{class:"icon-done",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160 160",style:"enable-background:new 0 0 160 160;","xml:space":"preserve"},f:[{t:7,e:"g",f:[{t:7,e:"path",a:{style:"fill-rule:evenodd;clip-rule:evenodd;fill:#DA2C2C;",d:"M109.39,53.5l-2.93-2.93c-0.81-0.81-2.12-0.81-2.93,0\n\t\t\t\tL79.97,74.15L56.43,50.61c-0.81-0.81-2.12-0.81-2.93,0l-2.93,2.93c-0.81,0.81-0.81,2.12,0,2.93L74.12,80l-23.54,23.54\n\t\t\t\tc-0.81,0.81-0.81,2.12,0,2.93l2.93,2.93c0.81,0.81,2.12,0.81,2.93,0l23.54-23.54l23.57,23.57c0.81,0.81,2.12,0.81,2.93,0\n\t\t\t\tl2.93-2.93c0.81-0.81,0.81-2.12,0-2.93L85.82,80l23.57-23.57C110.2,55.62,110.2,54.31,109.39,53.5z M80,0C35.82,0,0,35.82,0,80\n\t\t\t\tc0,44.18,35.82,80,80,80s80-35.82,80-80C160,35.82,124.18,0,80,0z M80,155.99c-41.97,0-75.99-34.02-75.99-75.99\n\t\t\t\tS38.03,4.01,80,4.01S155.99,38.03,155.99,80S121.97,155.99,80,155.99z"}}]}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.airbond.stepError.desc")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn g-margin-top--20"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}]}],x:{r:["page"],s:'_0==="step1"'}}]},css:".icon-mobile-ok {\n  width: 120px;\n  height: 120px;\n}\n.icon-mobile-qr {\n  width: 154px;\n  height: 154px;\n}\n.icon-android,\n.icon-ios {\n  height: 80px;\n  width: 80px;\n}\n.step2-icon-wrapper {\n  display: flex;\n  width: 35%;\n  margin: auto;\n}\n.step3-icon-wrapper {\n  display: flex;\n  width: 92%;\n  margin: auto;\n}\n.white-block {\n  width: 65%;\n  margin: auto;\n}\n.column {\n  float: left;\n  width: 50%;\n}\n.img-done-circle {\n  margin: auto;\n}\n.icon-done {\n  width: 82px;\n  margin: 7px auto 0;\n}\n",data:function(){return{page:"step1",qrCode:""}},oninit:function(){this.on("Modal.close",(()=>{this.fire("close")})),this.on("goTo",((t,e)=>{"step3"===e?this.generateQrCode().then((()=>{this.set("page","step3"),this.startStateListener()})).catch((t=>{console.error("Qrcode generation failed",JSON.stringify(t)),this.set("page","error")})):(this.stopStateListener(),this.set("page",e))}))},generateQrCode(){return n("app.pam.GetAirBondQRString").then((t=>{var e=new ye(t);this.set("qrCode",e.qrImageTag)}))},startStateListener(){this.airbondRegisteredOff=r.on("app.pam.onStatusChanged.airbondRegistered",(t=>{this.stopStateListener(),t?this.set("page","step4"):this.set("page","error")}))},stopStateListener(){this.airbondRegisteredOff&&this.airbondRegisteredOff()},onteardown(){this.stopStateListener()}}),xe=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,x:{r:["loading"],s:"_0===true"}},{t:4,n:51,f:[{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.desc")'}}]}," ",{t:4,f:[{t:7,e:"button",a:{class:"g-margin-top--20 btn -small","data-test":"openMasterPasswordModal"},v:{click:"openMasterPasswordModal"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.change.btn")'}}]}],n:50,r:"masterPasswordSet"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"g-margin-top--20 btn -small","data-test":"openMasterPasswordModal"},v:{click:"openMasterPasswordModal"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.create.btn")'}}]}],r:"masterPasswordSet"}," ",{t:7,e:"div",a:{class:"pam_line g-margin-top--20 g-margin-bottom--20"}}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["masterPasswordSet"],s:'!_0?"pam_disabled":""'}}]},f:[{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.autoLock")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.autoLock.desc")'}}]}," ",{t:7,e:"fieldset",m:[{t:2,x:{r:["masterPasswordSet"],s:'!_0?"disabled":""'}}],f:[{t:7,e:"p",a:{class:"p -small g-margin-top--20"},f:[{t:7,e:"input",a:{id:"lockOnLogout",class:"checkbox g-margin-right--5",type:"checkbox",checked:[{t:2,x:{r:["secureSettings.lockOnLogout.value"],s:"_0===1"}}]},v:{change:{n:"setSecureSettings",a:"secureSettings.lockOnLogout"}}}," ",{t:7,e:"label",a:{for:"lockOnLogout"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.onClose")'}}]}]}," ",{t:7,e:"p",a:{class:"p -small g-margin-top--20"},f:[{t:7,e:"input",a:{id:"lockAfter",class:"checkbox g-margin-right--5",type:"checkbox",checked:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0>0"}}]},v:{change:{n:"setSecureSettings",a:"secureSettings.lockAfter"}}}," ",{t:7,e:"label",a:{for:"lockAfter"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after")'}}]}," ",{t:7,e:"select",a:{class:"input -small pam_select -dark",disabled:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===0"}}]},v:{change:{n:"setSecureSettings",a:"secureSettings.lockAfter"}},f:[{t:7,e:"option",a:{selected:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===1"}}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after.hours",1)'}}]}," ",{t:7,e:"option",a:{selected:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===2"}}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after.hours",2)'}}]}," ",{t:7,e:"option",a:{selected:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===6"}}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after.hours",6)'}}]}," ",{t:7,e:"option",a:{selected:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===12"}}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after.hours",12)'}}]}," ",{t:7,e:"option",a:{selected:[{t:2,x:{r:["secureSettings.lockAfter.value"],s:"_0===24"}}]},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.after.hours",24)'}}]}]}]}," ",{t:7,e:"p",a:{class:"p -small g-margin-top--20"},f:[{t:7,e:"input",a:{id:"lockOnBrowserClose",class:"checkbox g-margin-right--5",type:"checkbox",checked:[{t:2,x:{r:["secureSettings.lockOnBrowserClose.value"],s:"_0===1"}}]},v:{change:{n:"setSecureSettings",a:"secureSettings.lockOnBrowserClose"}}}," ",{t:7,e:"label",a:{for:"lockOnBrowserClose"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.lock.onBrowserClose")'}}]}]}]}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_line g-margin-top--20 g-margin-bottom--20"}}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["masterPasswordSet","syncOn"],s:'!_0||!_1?"pam_disabled":""'}}]},f:[{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.oneTouchLogin")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.oneTouchLogin.desc")'}}]}," ",{t:4,f:[{t:7,e:"button",a:{disabled:[{t:2,x:{r:["masterPasswordSet","syncOn"],s:"!_0||!_1"}}],class:"g-margin-top--20 btn -small","data-test":"toggleAirBondOn"},v:{click:"toggleAirBond"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.turnOn.btn")'}}]}],n:50,x:{r:["airBondActive"],s:"!_0"}},{t:4,n:51,f:[{t:7,e:"button",a:{disabled:[{t:2,x:{r:["masterPasswordSet","syncOn"],s:"!_0||!_1"}}],class:"g-margin-top--20 btn -small -secondary","data-test":"toggleAirBondOff"},v:{click:"toggleAirBond"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.turnOff.btn")'}}]}],x:{r:["airBondActive"],s:"!_0"}}]}],n:50,x:{r:["licensed"],s:"_0===true"}}," ",{t:4,f:[{t:7,e:"AirbondModal"}],n:50,x:{r:["modalDialog"],s:'_0==="airbond"'}}],x:{r:["loading"],s:"_0===true"}}]},css:".pam_select {\n  font-size: 12px;\n  height: 26px;\n}\n.pam_disabled h3,\n.pam_disabled input,\n.pam_disabled label,\n.pam_disabled select {\n  opacity: 0.5;\n}\n.pam_disabled .-secondary {\n  opacity: 0.4;\n}\n",components:{AirbondModal:be},twoway:!1,data:function(){return{modalDialog:void 0,masterPasswordSet:!1,syncOn:!1,licensed:!1,loading:!0,airBondActive:!1,secureSettings:{lockAfter:{id:"LOCK_VAULT_INTERVAL",value:0,predefinedValues:[1,2,6,12,24]},lockOnLogout:{id:"LOCK_VAULT_ON_LOGOUT",value:0},lockOnBrowserClose:{id:"LOCK_VAULT_ON_BROWSER_CLOSE",value:0}}}},oninit:function(){this._init(),r.on("sensitiveModal.masterPasswordModal.masterPasswordCreated",(()=>{this._init()})),r.on("sensitiveModal.masterPasswordModal.masterPasswordChanged",(()=>{this._init()})),this.on("openMasterPasswordModal",(()=>{const t=this.get("masterPasswordSet");N("setMasterPassword",{width:500,height:t?530:473,params:{masterPasswordSet:t}})})),this.on("MasterPasswordModal.close AirbondModal.close",(()=>{this.set("modalDialog",void 0)})),this.on("Modal.close",(()=>{this.set("modalDialog",void 0)})),this.airbondRegisteredOff=r.on("app.pam.onStatusChanged.airbondRegistered",(t=>{this.set("airBondActive",t)})),this.on("setSecureSettings",((t,e)=>{const s=this.get(e);let r;r=t.node.selectedIndex||t.node.selectedIndex>-1?s.predefinedValues[t.node.selectedIndex]:t.node.checked?1:0,this.set(e+".value",r);const a=this.get("secureSettings"),o={};Object.keys(a).forEach((t=>{const e=a[t];o[e.id]=e.value.toString()})),n("app.pam.SetSecureSettings",o).catch((t=>{console.error("app.pam.SetSecureSettings",JSON.stringify(t))}))})),this.on("toggleAirBond",(()=>{this.get("airBondActive")?n("app.pam.AirBondDisable").then((()=>{this._init()})).catch((t=>{console.error("app.pam.AirBondDisable",JSON.stringify(t))})):this.set("modalDialog","airbond")}))},_init(){this.set("loading",!0),Promise.all([this._getSecureSettings(),this._getIsMasterPasswordSet(),this._getIsSyncOn(),this._setPamLicensed(),this._setAirBondActive()]).then((()=>{this.set("loading",!1)})).catch((()=>{this.set("loading",!1)}))},_getSecureSettings(){const t=this.get("secureSettings");n("app.pam.GetSecureSettings").then((e=>{t.lockAfter.value=parseInt(e[t.lockAfter.id]),t.lockOnLogout.value=parseInt(e[t.lockOnLogout.id]),t.lockOnBrowserClose.value=parseInt(e[t.lockOnBrowserClose.id]),this.set("secureSettings",t)})).catch((t=>{console.error("_getSecureSettings",t)}))},_setAirBondActive(){return n("app.pam.IsPAMAirBondActive").then((t=>{this.set("airBondActive",t)})).catch((t=>{console.error("app.pam.IsPAMAirBondActive",t)}))},_setPamLicensed(){return n("app.pam.IsPAMLicensed").then((t=>{this.set("licensed",t)}))},_getIsMasterPasswordSet(){return n("app.pam.GetLoginMethods").then((t=>{this.set("masterPasswordSet",!t.hasSystemLogin)}))},_getIsSyncOn(){return n("app.pam.SynchronizationSetup",{request:"getState"}).then((t=>{this.set("syncOn",t.setupCompleted)})).catch((()=>{const e=t.localization.nls("system.toasters.restart.text"),s={title:t.localization.nls("system.toasters.restart.title"),ok:t.localization.nls("system.toasters.restart.restartComputer")};return t.UI.confirm(e,s).then((()=>{n("app.system.Restart",{rebootType:"RebootFromUI"})}))}))},onteardown(){r.on("sensitiveModal.masterPasswordModal.masterPasswordCreated",(()=>{})),r.on("sensitiveModal.masterPasswordModal.masterPasswordChanged",(()=>{})),this.airbondRegisteredOff&&this.airbondRegisteredOff()}});const Se=t.extend({template:{v:3,t:[{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.browserExtensions")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.browserExtensions.desc")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_browsers"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_settings_browser_ext g-margin-top--20"},f:[{t:7,e:"div",a:{class:"pam_settings_browser"},f:[{t:7,e:"Browser",a:{browserId:[{t:2,r:"browser"}]}}]}," ",{t:4,f:[{t:7,e:"button",a:{class:"btn -small -secondary"},v:{click:{n:"installExtension",d:[{t:2,r:"browser"}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.browserExtensions.reAdd")'}}]}],n:50,x:{r:["extension"],s:"_0===true"}},{t:4,n:51,f:[{t:7,e:"button",a:{class:"btn -small"},v:{click:{n:"installExtension",d:[{t:2,r:"browser"}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.browserExtensions.add")'}}]}],x:{r:["extension"],s:"_0===true"}}]}],n:52,r:"browsers"}]}]},css:".pam_settings_browsers .pam_settings_browser_ext {\n  display: flex;\n  align-items: center;\n}\n.pam_settings_browsers .pam_settings_browser {\n  flex-grow: 1;\n}\n.pam_settings_browsers .pam_settings_browser .pam_browser {\n  font-size: 15px;\n}\n.pam_settings_browsers .pam_settings_browser .pam_browser .pam_browser_icon {\n  margin-right: 30px;\n  font-size: 40px;\n}\n.pam_settings_browsers .pam_settings_browser .pam_browser .pam_browser_label {\n  font-weight: normal;\n}\n",components:{Browser:b},data:function(){return{browsers:[]}},oninit:function(){this.listeners=[],this._initBrowsers(),this.listeners.push(r.on("app.pam.onStatusChanged.browserStatus",(()=>{this._initBrowsers()}))),this.on("installExtension",((t,e)=>{if(e){const t="install_pam_plugin(browser="+e+",cn=User%20extension%20install,cs=Settings)";n("av.command",t).catch((e=>{console.error("av.command",t,JSON.stringify(e))}))}}))},_initBrowsers(){n("app.pam.GetBrowserStatus").then((t=>{this.set("browsers",t)})).catch((t=>{console.error("app.pam.GetBrowserStatus",JSON.stringify(t))}))},onteardown(){this.listeners.forEach((t=>t()))}});const Ce=t.extend({isolated:!0,template:{v:3,t:[{t:4,f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.title")'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_device_cont"},f:[{t:7,e:"div",a:{class:"pam_device_icon color-dark -bg"},f:[{t:7,e:"Icon",a:{name:["pam_device_",{t:2,r:"info.os"}]}}]}," ",{t:7,e:"div",a:{class:"pam_device_info text -tiny"},f:[{t:7,e:"div",f:[{t:2,r:"info.name"}]}," ",{t:7,e:"div",a:{class:"pam_device_info_line"},f:[{t:7,e:"div",a:{class:"pam_device_info_type"},f:[{t:7,e:"span",a:{class:"span -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.type")'}}," "]},{t:2,r:"info.os"}]}," ",{t:7,e:"div",a:{class:"pam_device_info_date"},f:[{t:3,x:{r:["nls","confirmCode"],s:'_0("passwords.settings.sync.syncedDevices.pending",_1)'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_device_action"},f:[{t:4,f:[{t:7,e:"span",a:{class:"g-margin-right--20 spinner -tiny"}}],n:50,r:"_actionInProgress"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"a text -tiny -secondary"},v:{click:{n:"declineDevice",d:[{t:2,r:"."}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.decline")'}}]}," ",{t:7,e:"button",a:{class:"btn -small g-margin-left--5"},v:{click:{n:"approveDevice",d:[{t:2,r:"."}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.allow")'}}]}],r:"_actionInProgress"}]}]}],n:52,r:"pendingDevices"}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_device_cont"},f:[{t:7,e:"div",a:{class:"pam_device_icon color-dark -bg"},f:[{t:7,e:"Icon",a:{name:["pam_device_",{t:2,r:"info.os"}]}}]}," ",{t:7,e:"div",a:{class:"pam_device_info text -tiny"},f:[{t:7,e:"div",f:[{t:2,r:"info.name"}," ",{t:4,f:[{t:7,e:"span",a:{class:"color-ok -text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.thisDevice")'}}]}],n:50,r:"info.currentDevice"}]}," ",{t:7,e:"div",a:{class:"pam_device_info_line"},f:[{t:7,e:"div",a:{class:"pam_device_info_type"},f:[{t:7,e:"span",a:{class:"span -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.type")'}}," "]},{t:2,r:"info.os"}]}," ",{t:7,e:"div",a:{class:"pam_device_info_date"},f:[{t:7,e:"span",a:{class:"span -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.dateAdded")'}}," "]},{t:2,r:"info.dateAdded"}]}]}]}," ",{t:7,e:"div",a:{class:"pam_device_action"},f:[{t:4,f:[{t:4,f:[{t:7,e:"span",a:{class:"g-margin-right--20 spinner -tiny"}}],n:50,r:"_actionInProgress"},{t:4,n:51,f:[{t:7,e:"span",a:{class:"a -tiny text -secondary"},v:{click:{n:"confirmRemoveDevice",d:[{t:2,r:"."}]}},f:[{t:3,x:{r:["nls"],s:'_0("global.remove")'}}]}],r:"_actionInProgress"}],n:50,x:{r:["info.currentDevice"],s:"!_0"}}]}]}],n:52,r:"devices"}],n:50,x:{r:["devices.length","pendingDevices.length"],s:"_0>0||_1>0"}},{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls","deviceToRemove.info.name"],s:'_0("passwords.settings.sync.syncedDevices.remove.title",_1)'}}]},f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls","deviceToRemove.info.name"],s:'_0("passwords.settings.sync.syncedDevices.remove.info",_1)'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"Button",a:{disabled:[{t:2,r:"deviceToRemove._actionInProgress"}],cssCls:[{t:2,x:{r:["deviceToRemove._actionInProgress"],s:'_0?"-loading":""'}}," -secondary"]},v:{click:"removeDevice"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.removeAndDelete.btn")'}}]}," ",{t:7,e:"Button",a:{disabled:[{t:2,r:"deviceToRemove._actionInProgress"}],cssCls:"g-margin-left--10"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="removeDevice"'}}]},css:".pam_device_cont {\n  padding-top: 15px;\n  padding-bottom: 15px;\n  display: flex;\n  border-bottom: 1px solid rgba(255,255,255,0.15);\n}\n.pam_device_cont .pam_device_icon {\n  min-width: 70px;\n  height: 70px;\n  border-radius: 70px;\n  margin-right: 20px;\n  text-align: center;\n  font-size: 40px;\n  padding-top: 15px;\n}\n.pam_device_cont .pam_device_info {\n  margin-top: 14px;\n  width: 60%;\n}\n.pam_device_cont .pam_device_info .pam_device_info_line {\n  display: flex;\n  margin-top: 5px;\n}\n.pam_device_cont .pam_device_info .pam_device_info_line >div {\n  display: inline-block;\n  overflow: hidden;\n}\n.pam_device_cont .pam_device_info .pam_device_info_line .pam_device_info_type {\n  width: 40%;\n}\n.pam_device_cont .pam_device_info .pam_device_info_line .pam_device_info_date {\n  width: 60%;\n}\n.pam_device_cont .pam_device_action {\n  margin-top: 20px;\n  width: 30%;\n  text-align: right;\n}\n",data:function(){return{devices:[],pendingDevices:[],deviceToRemove:void 0}},onrender:function(){this._syncCheckInterval=void 0,this.listeners=[],this._initDevices(),this.listeners.push(r.on("app.pam.onStatusChanged.synchronizationDone",(()=>{this._initDevices()}))),this.on("confirmRemoveDevice",((t,e)=>{this.set("deviceToRemove",e),this.set("modalDialog","removeDevice")})),this.on("Modal.close",(()=>{this.set("modalDialog",void 0)})),this.on("removeDevice",(()=>{const t=this.get("deviceToRemove");this.set("deviceToRemove._actionInProgress",!0),this._doDeviceAction("app.pam.RemoveDeviceIdentity",t).then((()=>{this.set("modalDialog",void 0)})).catch((()=>{this.set("modalDialog",void 0)}))})),this.on("approveDevice",((t,e)=>{this._doDeviceAction("app.pam.ApproveIdentity",e)})),this.on("declineDevice",((t,e)=>{this._doDeviceAction("app.pam.DeclineIdentity",e)})),this._startPollingSync()},_doDeviceAction(t,e){delete e.info;const s=Object.assign({},e);return e._actionInProgress=!0,n(t,{identity:s}).then((()=>{this._initDevices()})).catch((e=>{console.error(t,JSON.stringify(e)),this._initDevices()}))},_initDevices(){n("app.pam.GetTrustedIdentityList").then((t=>{const e=[],s=this._getDevice(t.myIdentity,!0);s&&e.push(s);const n=t.trustedIdentities;if(n&&n.length>0)for(const r of n){const t=this._getDevice(r);t&&e.push(t)}this.set("devices",void 0),this.set("devices",e)})).catch((t=>{console.error("app.pam.GetTrustedIdentityList",JSON.stringify(t))})),n("app.pam.GetWaitingIdentityList").then((t=>{const e=[],s=t.waitingIdentities;if(s&&s.length>0)for(const n of s){const t=this._getDevice(n);t&&e.push(t)}this.set("pendingDevices",void 0),this.set("pendingDevices",e)})).catch((t=>{console.error("app.pam.GetWaitingIdentityList",JSON.stringify(t))}))},_getDevice(t,e=!1){if(t){const s=this._getDeviceInfo(t.description,e);if(s)return t.info=s,t}},_getDeviceInfo(e,s=!1){const n=F(e);if(0===n.os.length)return;const r=n.os;let a=n.dateAdded;a=t.localization.moment(a,"YYYYMMDDhhmmss").format("ll");return{os:r,dateAdded:a,name:n.deviceName,currentDevice:s}},_startPollingSync(){this._syncCheckInterval||(this._syncCheckInterval=setInterval((()=>{this._callSync()}),12e3))},_callSync(){console.debug("_callSync syncedDevices.js"),n("app.pam.Synchronize")},_clearPollingSyncInterval(){this._syncCheckInterval&&(clearInterval(this._syncCheckInterval),this._syncCheckInterval=void 0)},onteardown(){this._clearPollingSyncInterval(),this.listeners.forEach((t=>t()))}});const Pe=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"text -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.legal.desc")'}}," ",{t:7,e:"a",v:{click:{n:"openLink",a:"privacyPolicy"}},a:{class:"a"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.legal.lnk.privacyPolicy")'}}]}," ",{t:7,e:"a",v:{click:{n:"openLink",a:"eula"}},a:{class:"a"},f:[{t:3,x:{r:["nls"],s:'_0("about.eula")'}}]}]}]},oninit(){this.on("openLink",((t,e)=>{let s;if("eula"===e)s=34;else{if("privacyPolicy"!==e)return;s=11}n("app.utils.GetUrlParameters",s).then((t=>t.indexOf("&action=")>-1?t.replace(/&action=\d*/,"&action=2"):t+"&action=2")).then((t=>{n("av.command","shell_exec:open:"+t)}))}))}}),Ee=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--10 color-critical -text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.error.generic")'}}]}],n:50,r:"show"}]}}),ke=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.loginFromMainUi.title")'}}]},f:[{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:4,f:[{t:8,r:"prefilled_email_partial"}],n:50,r:"email"},{t:4,n:51,f:[{t:8,r:"email_partial"}],r:"email"}," ",{t:8,r:"password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"loginClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--10 color-critical -text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.error.wrongAccount")'}}]}],n:50,r:"showWrongAccount"}," ",{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--10"},f:[{t:7,e:"a",a:{class:"a",href:"https://id.avast.com/#recoverPassword"},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.lnk.forgotPassword")'}}]}]}]}]}],n:50,x:{r:["page"],s:'_0==="loginAfterUpdate"||_0==="loginAfterUpdateFromMainUi"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="login"'},f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.title")'}}]},f:[{t:7,e:"p",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.desc")'}}]}," ",{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:8,r:"email_partial"}," ",{t:8,r:"password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}],"data-test":"login"},v:{click:"loginClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"form__row pam_links_cont"},f:[{t:7,e:"a",a:{class:"a"},v:{click:{n:"setPage",a:"createAccount"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.lnk.dontHaveAccount")'}}]}," ",{t:7,e:"a",a:{class:"a",href:"https://id.avast.com/#recoverPassword"},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.lnk.forgotPassword")'}}]}]}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="login"))&&(_0==="createAccount")'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.create.title")'}}]},f:[{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:8,r:"email_partial"}," ",{t:8,r:"new_password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:{n:"createAccountClick",a:["Avast"]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.create.title")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"form__row pam_links_cont"},f:[{t:7,e:"a",a:{class:"a"},v:{click:{n:"setPage",a:"login"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.create.lnk.alreadyHaveAccount")'}}]}]}," ",{t:7,e:"LegalInfo"}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="login"))&&((!(_0==="createAccount"))&&(_0==="createPasswordSocial"))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.createPassword.title")'}}]},f:[{t:7,e:"p",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,x:{r:["nls","input.email","socialLoginType"],s:'_0("passwords.settings.sync.modal.createPassword.desc",_1,_2)'}}]}," ",{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:8,r:"prefilled_email_partial"}," ",{t:8,r:"new_password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"createPasswordClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.createPassword.btn.save")'}}]}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="login"))&&((!(_0==="createAccount"))&&((!(_0==="createPasswordSocial"))&&(_0==="loginPasswordSocial")))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.loginPassword.title")'}}]},f:[{t:7,e:"p",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,x:{r:["nls","input.email","socialLoginType"],s:'_0("passwords.settings.sync.modal.loginPassword.desc",_1,_2)'}}]}," ",{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:8,r:"prefilled_email_partial"}," ",{t:8,r:"password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"loginPasswordClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"form__row pam_links_cont"},f:[{t:7,e:"a",a:{class:"a",href:"https://id.avast.com/#recoverPassword"},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.lnk.forgotPassword")'}}]}]}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="login"))&&((!(_0==="createAccount"))&&((!(_0==="createPasswordSocial"))&&((!(_0==="loginPasswordSocial"))&&(_0==="createAccountSocial"))))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.createAccountSocial.title")'}}]},f:[{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:7,e:"p",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,x:{r:["nls","socialLoginType"],s:'_0("passwords.settings.sync.modal.createAccountSocial.desc",_1)'}}]}," ",{t:8,r:"email_partial"}," ",{t:8,r:"password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:{n:"createAccountClick",d:[{t:2,r:"socialLoginType"}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.createAccountSocial.btn.createLogin")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="login"))&&((!(_0==="createAccount"))&&((!(_0==="createPasswordSocial"))&&((!(_0==="loginPasswordSocial"))&&((!(_0==="createAccountSocial"))&&(_0==="enterPreviousPassword")))))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.enterPreviousPassword.title")'}}]},f:[{t:7,e:"p",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.enterPreviousPassword.desc")'}}]}," ",{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:8,r:"prefilled_email_partial"}," ",{t:8,r:"password_partial"}," ",{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"loginPasswordClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.loginPassword.btn.confirm")'}}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--10"},f:[{t:7,e:"a",a:{class:"a"},v:{click:"showChangeAvastIdPasswordModal"},f:[{t:3,x:{r:["nls"],s:'_0("global.back")'}}]}]}]}]}]}],x:{r:["page"],s:'_0==="loginAfterUpdate"||_0==="loginAfterUpdateFromMainUi"'}}," "],p:{email_partial:[{t:7,e:"div",a:{class:"form__row"},v:{click:{n:"clearInputErrors",a:"email"}},f:[{t:7,e:"Input",a:{id:"email",innerValue:[{t:2,r:"input.email"}],label:[{t:3,x:{r:["page","nls"],s:'_0==="createAccount"?_1("passwords.settings.sync.label.email"):_1("passwords.settings.sync.label.enterEmail")'}}],type:"text",message:[{t:2,r:"inputError.email.message"}],error:[{t:2,r:"inputError.email.error"}]}}]}],prefilled_email_partial:[{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"Input",a:{disabled:0,id:"email",innerValue:[{t:2,r:"email"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.label.email")'}}],type:"text"}}]}],password_partial:[{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:{n:"clearInputErrors",a:"password"}},f:[{t:7,e:"Input",a:{id:"password",innerValue:[{t:2,r:"input.password"}],label:[{t:3,x:{r:["page","nls"],s:'_0==="enterPreviousPassword"?_1("passwords.settings.sync.label.enterPreviousPassword"):_1("passwords.settings.sync.label.enterPassword")'}}],type:"password",message:[{t:2,r:"inputError.password.message"}],error:[{t:2,r:"inputError.password.error"}]}}]}]}],new_password_partial:[{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},f:[{t:7,e:"Input",a:{id:"newPassword",innerValue:[{t:2,r:"input.newPassword"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.label.createPassword")'}}],type:"password",message:[{t:2,r:"inputError.newPassword.message"}],error:[{t:2,r:"inputError.newPassword.error"}]},v:{blur:"newPasswordBlur",focus:"newPasswordFocus"}}]}]}]}},css:".pam_links_cont {\n  display: flex;\n  justify-content: space-between;\n  padding-top: 20px;\n}\n",components:{ButtonRevealSecret:K,LegalInfo:Pe,GenericError:Ee},data:function(){return{socialLoginsReadyToLoad:!1,showGenericError:!1,showWrongAccount:!1,page:"login",inProgress:!1,input:{password:"",email:"",newPassword:""},inputError:{password:{error:!1,message:""},email:{error:!1,message:""},newPassword:{error:!1,message:""}}}},oninit(){setTimeout((()=>this.set("socialLoginsReadyToLoad",!0))),this.observe("email",(t=>{t&&(this.update("input.email"),this.set("input.email",t))}),{init:!0}),this.observe("syncState",(e=>{if(!e)return;this.set("inProgress",!1);const s=this.get("page");"wrongAccount"===e.reason?this.set("showWrongAccount",!0):"alreadyExist"===e.reason?this.set({"inputError.email.error":!0,"inputError.email.message":t.localization.nls("passwords.settings.sync.modal.create.error.emailAlreadyUsed")}):"invalid"===e.reason?s.indexOf("createAccount")>-1?this.set({"inputError.email.error":!0,"inputError.email.message":t.localization.nls("passwords.settings.sync.modal.create.error.emailAlreadyUsed")}):this.set({"inputError.password.error":!0,"inputError.email.error":!0,"inputError.password.message":t.localization.nls("passwords.settings.sync.modal.login.error.incorrectEmailPassword")}):"error"===e.reason&&this.set("showGenericError",!0)}),{init:!0}),this.observe("input.newPassword",(()=>{this._validateInput("newPassword"),this._clearInputErrors("newPassword",!1)}),{init:!1}),this.on("Modal.close",(()=>{const t=this.get("page");"loginAfterUpdateFromMainUi"===t?this.fire("loginClosed"):"loginAfterUpdate"===t?this.fire("close"):this.fire("modalAskCancelSync",{page:this.get("page")})})),this.on("setPage",((t,e)=>{if(this.get("inProgress"))return!1;this.set("page",e)})),this.on("clearInputErrors",((t,e,s)=>{this._clearInputErrors(e,s)})),this.on("newPasswordFocus",(()=>{this._validateInput("newPassword"),this._clearInputErrors("newPassword",!1)})),this.on("newPasswordBlur",(()=>{this._clearInputErrors("newPassword")})),this.on("loginClick",(()=>{if(this._validateInput("email"),this._validateInput("password"),this.get("inputError.email.error")||this.get("inputError.password.error"))return!1;this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"accountSetup",data:{create:!1,account:"Avast",email:ht.dataCryptoEnabled?ht.encrypt(this.get("input.email")):this.get("input.email"),pwd:ht.dataCryptoEnabled?ht.encrypt(this.get("input.password")):this.get("input.password")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))})),this.on("createAccountClick",((t,e="Avast")=>{if(this._validateInput("email"),this._validateInput("newPassword"),this.get("inputError.email.error")||this.get("inputError.newPassword.error"))return!1;this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"accountSetup",data:{create:!0,account:e,email:ht.dataCryptoEnabled?ht.encrypt(this.get("input.email")):this.get("input.email"),pwd:ht.dataCryptoEnabled?ht.encrypt(this.get("input.newPassword")):this.get("input.newPassword")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))})),this.on("FacebookLogin.loginInProgress GoogleLogin.loginInProgress",(()=>{this.set("showGenericError",!1),this.set("inProgress",!0)})),this.on("FacebookLogin.loginFailed GoogleLogin.loginFailed",(()=>{this.set("showGenericError",!0),this.set("inProgress",!1)})),this.on("createPasswordClick",(()=>{if(this._validateInput("newPassword"),this.get("inputError.newPassword.error"))return!1;this._enterPassword(this.get("input.newPassword"))})),this.on("loginPasswordClick",(()=>{if(this._validateInput("password"),this.get("inputError.password.error"))return!1;this._enterPassword(this.get("input.password"))})),this.on("showChangeAvastIdPasswordModal",(()=>{this.fire("enterPreviousPassword",!1)}))},_enterPassword(t){this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"enterPreviousPassword"===this.get("page")?"enterCredForBackup":"enterIDAPwd",data:{pwd:ht.dataCryptoEnabled?ht.encrypt(t):t}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))},_validateInput(e){const s=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([a-zA-Z0-9]+(\.|\-))*([a-zA-Z0-9]+)\.)+[a-zA-Z]{2,}$/;switch(e){case"email":this._clearInputErrors(e),s.test(this.get("input.email"))||this.set({"inputError.email.error":!0,"inputError.email.message":t.localization.nls("passwords.settings.sync.modal.create.error.invalidEmail")});break;case"newPassword":this._clearInputErrors(e),this.get("input.newPassword").length<8&&this.set({"inputError.newPassword.error":!0,"inputError.newPassword.message":t.localization.nls("passwords.settings.sync.modal.createPassword.error.passwordTooShort")});break;case"password":this._clearInputErrors(e),0===this.get("input.password").length&&this.set({"inputError.password.error":!0})}},_clearInputErrors(t,e=!0){this.set("showGenericError",!1),this.set("showWrongAccount",!1),t&&(e?this.set("inputError."+t,{error:!1,message:""}):this.set("inputError."+t+".error",!1))}}),Ae=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.title")'}}]},f:[{t:7,e:"div",a:{class:"pam_steps"},f:[{t:7,e:"div",a:{class:"pam_step pam_step_big"},f:[{t:7,e:"div",f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.subtitle1")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.desc1")'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_step pam_step_big"},f:[{t:7,e:"div",f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.subtitle2")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.desc2")'}}]}]}]}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"continue"},f:[{t:3,x:{r:["nls"],s:'_0("global.continue")'}}]}]}]}]},data:()=>({inProgress:!1}),oninit(){this.on("continue",(()=>(this.set("inProgress",!0),this.fire("restoreStart",{backupString:decodeURIComponent(this.get("backupString"))}),n("app.pam.SynchronizationSetup",{request:"getState"}).then((t=>{"disabled"===t.lastSyncState&&n("app.pam.SynchronizationSetup",{request:"startSync"}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))})).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))})))))}});const Ie=t.extend({css:".modal__content {\n  opacity: 1;\n}\n.pam_digit_input_group {\n  padding-left: 48px;\n}\n.pam_spinner_cont {\n  width: 44px;\n  display: inline-block;\n  padding-left: 10px;\n}\n",template:{v:3,t:[{t:7,e:"Modal",f:[{t:7,e:"Icon",a:{name:"passwords-email",cssCls:"g-font--40"}}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.email.title")'}}]}," ",{t:7,e:"span",a:{class:"span -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.btok.desc")'}}]}," ",{t:7,e:"span",a:{class:"span -small g-font--bold"},f:[{t:2,r:"email"}]},". ",{t:7,e:"div",a:{class:"g-margin-top--20 g-margin-bottom--20 text -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.btok.desc2")'}}]}," ",{t:7,e:"div",a:{class:[{t:2,x:{r:["codeError"],s:'_0?"animated shakeLess":""'}}]},f:[{t:7,e:"span",a:{class:"pam_digit_input_group"},f:[{t:4,f:[{t:7,e:"span",a:{class:"input__row -letters"},f:[{t:7,e:"input",a:{disabled:[{t:2,r:"inProgress"}],class:[{t:2,x:{r:["codeError"],s:'_0?"-error":""'}}," input"],type:"text",value:[{t:2,rx:{r:"code",m:[{t:30,n:"i"}]}}],maxlength:[{t:2,r:"DIGITS_PER_GROUP"}],onkeydown:"this.value=''",spellcheck:"false"},v:{keyup:"inputKeyup",focus:"inputFocus",click:"inputClick",paste:"codePasted"},m:[{t:2,x:{r:["i"],s:'_0===0?"autofocus":""'}}]}]}],n:52,i:"i",r:"GROUPS_COUNT"}]}," ",{t:7,e:"div",a:{class:"pam_spinner_cont"},f:[{t:4,f:[{t:7,e:"span",a:{class:"spinner -small"}}],n:50,r:"inProgress"}]}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--30 modal__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]},components:{GenericError:Ee},data:()=>({GROUPS_COUNT:"",DIGITS_PER_GROUP:1,code:[],inProgress:!1,codeError:!1,showGenericError:!1}),oninit(){this.observe("syncState",(t=>{t&&(this.set("inProgress",!1),"invalid"===t.reason?this.set("codeError",!0):"error"===t.reason&&this.set("showGenericError",!0))}),{init:!0});const t=[];for(let e=0;e<6;e++)t.push([]);this.set("GROUPS_COUNT",t),this.on("Modal.close",(()=>{this.fire("modalAskCancelSync")})),this.on("inputKeyup",(t=>{const e=t.original.srcElement,s=t.original.keyCode;if(e.classList.remove("-error"),0!==e.value.length||8!==s){if(0!==e.value.length)if(1===e.value.length&&this._isNumeric(s)){const e=this._getCodeAsString();this._codeIsValid(e)?this._sendCode(e):this._selectNextInputSibling(t)}else e.value="",e.classList.add("-error")}else this._selectPrevInputSibling(t)})),this.on("inputClick",(t=>{const e=t.original.srcElement;e.value="",e.classList.remove("-error"),this.set("codeError",!1),this.set("showGenericError",!1)})),this.on("inputFocus",(t=>{t.original.srcElement.classList.remove("-error")})),this.on("codePasted",(t=>{if(t.original.srcElement.blur(),t.original&&t.original.clipboardData&&"function"!=typeof t.original.clipboardData.getData)return;const e=this._getSanitizedCode(t.original.clipboardData.getData("Text"));this.set("code",e);const s=this._getCodeAsString();this._codeIsValid(s)?this._sendCode(s):this.set("codeError",!0)}))},_selectPrevInputSibling(t){const e=t.original.srcElement.parentElement.previousSibling;e&&e.childNodes[0]&&(e.childNodes[0].focus(),e.childNodes[0].value="")},_selectNextInputSibling(t){const e=t.original.srcElement.parentElement.nextSibling;e&&e.childNodes[0]&&(e.childNodes[0].focus(),e.childNodes[0].value="")},_getCodeAsString(){return this.get("code").join("")},_codeIsValid(t){const e=6===t.length,s=/^\d+$/.test(t);return e&&s},_sendCode(t){this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"enterBTOK",data:{btok:ht.dataCryptoEnabled?ht.encrypt(t):t}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))},_isNumeric:t=>t>=48&&t<=57||t>=96&&t<=105,_getSanitizedCode(t){if("string"!=typeof t)return;return t.replace(/\s/g,"").split("").slice(0,6)}}),De=t.extend({template:{v:3,t:[{t:7,e:"Modal",f:[{t:7,e:"Icon",a:{name:"passwords-email",cssCls:"g-font--40"}}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.email.title")'}}]}," ",{t:7,e:"span",a:{class:"span -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.email.desc")'}}]}," ",{t:7,e:"span",a:{class:"span -small g-font--bold"},f:[{t:2,r:"email"}]},". ",{t:7,e:"div",a:{class:"g-margin-top--20 g-margin-bottom--20 text -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.email.alreadyClicked")'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30 modal__actions"},f:[{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"refreshSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.refresh")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:"btn -secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}]}]},components:{GenericError:Ee},data:function(){return{inProgress:!1,showGenericError:!1}},oninit(){this.observe("syncState",(t=>{t&&(this.set("inProgress",!1),"error"===t.reason&&this.set("showGenericError",!0))}),{init:!0}),this.set("inProgress",!1),this.on("Modal.close",(()=>{this.get("inProgress")||this.fire("modalAskCancelSync")})),this.on("refreshSync",(()=>{this.set("inProgress",!0),this.set("showGenericError",!1),n("app.pam.SynchronizationSetup",{request:"checkActivation"}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))}))}}),Oe=t.extend({template:{v:3,t:[{t:7,e:"Modal",f:[{t:7,e:"Icon",a:{name:"passwords-email",cssCls:"g-font--40"}}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.changeAvastIdPassword.title")'}}]}," ",{t:7,e:"span",a:{class:"span -small -secondary"},f:[{t:3,x:{r:["nls","email"],s:'_0("passwords.settings.sync.modal.changeAvastIdPassword.desc",_1)'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20 g-margin-bottom--20 text -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.changeAvastIdPassword.desc2")'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30 modal__actions"},f:[{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"refreshSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.refresh")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:"btn -secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--15 g-margin-bottom--10"},f:[{t:7,e:"a",a:{class:"a"},v:{click:"showPrevPasswordForm"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.changeAvastIdPassword.lnk.dontHaveAnotherDevice")'}}]}]}]}]},components:{GenericError:Ee},data:function(){return{inProgress:!1,showGenericError:!1}},oninit(){this.observe("syncState",(t=>{t&&(this.set("inProgress",!1),"error"===t.reason&&this.set("showGenericError",!0))}),{init:!0}),this.on("Modal.close",(()=>{this.get("inProgress")||this.fire("modalAskCancelSync")})),this.on("refreshSync",(()=>{this.set("inProgress",!0),this.set("showGenericError",!1),n("app.pam.SynchronizationSetup",{request:"refreshSync"}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))})),this.on("showPrevPasswordForm",(()=>{this.fire("enterPreviousPassword",!0)}))}}),Me=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.cancel.title")'}}]},f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.cancel.desc")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary"},v:{click:"callCancelSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.yesCancel.btn")'}}]}," ",{t:7,e:"button",a:{class:"btn g-margin-left--10"},v:{click:"callOpenPreviousModal"},f:[{t:3,x:{r:["nls"],s:'_0("global.no")'}}]}]}]}]},oninit(){this.previoslyOpenedModal=void 0,this.previoslyOpenedModalParams=void 0,this.on("callOpenPreviousModal",(()=>{this.fire("openPreviousModal",this.previoslyOpenedModal,this.previoslyOpenedModalParams)})),this.on("Modal.close",(()=>{this.fire("openPreviousModal")})),this.on("callCancelSync",(()=>{this.fire("cancelSync")}))},setPrevioslyOpenedModal(t,e){this.previoslyOpenedModal=t,this.previoslyOpenedModalParams=e}}),Te=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.restoreIdentity.passcode.title")'}}]},f:[{t:7,e:"form",a:{class:"pam_master_password_form"},f:[{t:7,e:"div",a:{class:"form__row g-margin-top--20"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:"clearInputErrors"},f:[{t:7,e:"Input",a:{id:"backupPassword",innerValue:[{t:2,r:"backupPassword"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.enterYourPassword")'}}],type:"password",message:[{t:3,x:{r:["backupPasswordError","nls"],s:'_0?_1("passwords.settings.masterPassword.error.incorrect"):""'}}],error:[{t:2,r:"backupPasswordError"}]}}]}]}," ",{t:7,e:"div",a:{class:"modal__actions g-margin-top--20"},f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"restoreIdentity"},f:[{t:3,x:{r:["nls"],s:'_0("global.continue")'}}]}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}]}]}]},components:{ButtonRevealSecret:K,GenericError:Ee},data:()=>({backupString:"",backupPassword:"",backupPasswordError:!1,inProgress:!1,showGenericError:!1}),oninit(){this.observe("syncState",(t=>{t&&(this.set("inProgress",!1),"invalid"===t.reason?this.set("backupPasswordError",!0):"error"===t.reason&&this.set("showGenericError",!0))}),{init:!0}),this.on("Modal.close",(()=>{this.get("inProgress")||this.fire("modalAskCancelSync")})),this.on("clearInputErrors",(()=>{this.set("backupPasswordError",!1)})),this.on("restoreIdentity",(()=>{this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"selfApprovalLegacyBackup",data:{backupString:ht.dataCryptoEnabled?ht.encrypt(this.get("backupString")):this.get("backupString"),backupPassword:ht.dataCryptoEnabled?ht.encrypt(this.get("backupPassword")):this.get("backupPassword")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t)),this.set("showGenericError",!0),this.set("inProgress",!1)}))}))}});const Be=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.solveCaptcha.title")'}}]},f:[{t:7,e:"div",a:{class:"g-margin-top--30"},f:[{t:7,e:"img",a:{src:[{t:2,r:"url"}]}}]}," ",{t:7,e:"form",a:{class:"pam_login_modal_form"},f:[{t:7,e:"div",a:{class:"form__row g-margin-top--40"},v:{click:"clearInputErrors"},f:[{t:7,e:"Input",a:{id:"captchaFormInput",innerValue:[{t:2,r:"captchaInput"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.solveCaptcha.label.retype")'}}],type:"text",message:[{t:3,x:{r:["captchaError","nls"],s:'_0?_1("passwords.settings.sync.modal.solveCaptcha.error"):""'}}],error:[{t:2,r:"captchaError"}]}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30 modal__actions"},f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"submitCaptcha"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.solveCaptcha.btn.submit")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,r:"inProgress"}],class:"btn -secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}]}]},css:"",components:{GenericError:Ee},data:function(){return{captchaInput:"",captchaError:!1,inProgress:!1,showGenericError:!1}},oninit(){this.observe("syncState",(t=>{t&&"solveCaptcha"===t.state&&(this.set("inProgress",!1),"invalid"===t.reason?this.set("captchaError",!0):"error"===t.reason?this.set("showGenericError",!0):this.set("captchaInput",""))}),{init:!0}),this.set("inProgress",!1),this.on("Modal.close",(()=>{this.get("openedFromMainUi")?this.fire("captchaClosed"):this.get("inProgress")||this.fire("modalAskCancelSync")})),this.on("clearInputErrors",(()=>{this.set("showGenericError",!1),this.set("captchaError",!1)})),this.on("submitCaptcha",(()=>{if(0===this.get("captchaInput").length)return this.set("captchaError",!0),!1;this.set("inProgress",!0),this.set("showGenericError",!1),this.set("captchaError",!1),n("app.pam.SynchronizationSetup",{request:"solveCaptcha",data:{cid:this.get("cid"),answer:this.get("captchaInput")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))}))}}),Ne=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,x:{r:["loading"],s:"_0===true"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["syncState.state"],s:'_0==="enabled"'},f:[" ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.syncStatus")'}}," ",{t:7,e:"span",a:{class:"color-ok -text g-font--uppercase"},f:[{t:3,x:{r:["nls"],s:'_0("global.switcher.on")'}}]}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"span",a:{class:"span -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.usingAccount")'}}]}," ",{t:7,e:"span",a:{class:"span -tiny"},f:[{t:2,r:"email"}]}]}," ",{t:7,e:"button",a:{class:"g-margin-top--20 btn -small -secondary"},v:{click:"askTurnOffSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.turnOffSync.btn")'}}]}," ",{t:7,e:"div",a:{class:"pam_line g-margin-top--20 g-margin-bottom--20"}}," ",{t:7,e:"SyncedDevices"}," ",{t:4,f:[{t:7,e:"div",a:{class:"pam_last_synced_time_cont text -tiny"},f:[{t:4,f:[{t:7,e:"span",a:{class:"pam_last_synced_time -syncing"},f:[{t:7,e:"Icon",a:{name:"passwords-sync",cssCls:"pam_synchronize_icon"}},{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.syncing")'}}]}],n:50,r:"synchronizing"},{t:4,n:51,f:[{t:7,e:"span",a:{class:"pam_last_synced_time"},v:{click:"synchronize"},f:[{t:7,e:"Icon",a:{name:"passwords-sync",cssCls:"pam_synchronize_icon"}},{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.lastSyncedAt")'}}," ",{t:2,r:"lastSyncTime"}]}],r:"synchronizing"}]}],n:50,r:"lastSyncTime"}]},{t:4,n:50,x:{r:["syncState.state"],s:'(!(_0==="enabled"))&&(_0==="waitApproval")'},f:[" ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_sync_info"},f:[{t:7,e:"Icon",a:{name:"passwords-all-devices",cssCls:"pam_settings_sync_icon"}}," ",{t:7,e:"div",a:{class:"pam_settings_sync_text"},f:[{t:7,e:"div",a:{class:"text -tiny"},f:[{t:7,e:"span",a:{class:"span -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.desc")'}}]}," ",{t:7,e:"div",a:{class:"pam_steps text -tiny"},f:[{t:7,e:"div",a:{class:"pam_step"},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.step1")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_step"},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls","email"],s:'_0("passwords.settings.sync.pending.device.step2",_1)'}}]}]}," ",{t:7,e:"div",a:{class:"pam_step"},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.step3")'}}]}]}]}]}]}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary g-margin-bottom--10"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.alreadyApproved")'}}]}," ",{t:7,e:"button",a:{class:"btn -small"},v:{click:"recheck"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.refresh")'}}]}," ",{t:7,e:"button",a:{class:"g-margin-left--10 btn -small -secondary"},v:{click:"askCancelSync"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}," ",{t:7,e:"div",a:{class:"text -tiny -secondary g-margin-top--20"},f:[{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.noSyncedDevice")'}},{t:7,e:"Icon",a:{name:"info",cssCls:"pam_info_icon"}}]}," ",{t:7,e:"Tooltip",a:{alignment:"bottom",position:"bottom",maxWidth:"400"},f:[{t:7,e:"span",a:{class:"text -tiny"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.pending.device.noSyncedDevice.tooltip")'}}]}]}]}]},{t:4,n:50,x:{r:["invalidSyncState","syncState.state","syncState.reason"],s:'(!(_1==="enabled"))&&((!(_1==="waitApproval"))&&(_0||((_1==="enterIDAPwd"||_1==="enterIDAEmail"||_1==="accountSetup")&&(_2==="afterUpdate"||_2==="prove"))))'},f:[" ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.banner.syncStopped.desc")'}}]}," ",{t:7,e:"button",a:{class:"btn -small"},v:{click:{n:"showLoginModal",a:["loginAfterUpdate"]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}," ",{t:7,e:"button",a:{class:"g-margin-left--10 btn -small -secondary"},v:{click:"askTurnOffSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.syncedDevices.turnOffSync.btn")'}}]}]},{t:4,n:50,x:{r:["invalidSyncState","syncState.state","syncState.reason"],s:'(!(_1==="enabled"))&&((!(_1==="waitApproval"))&&(!(_0||((_1==="enterIDAPwd"||_1==="enterIDAEmail"||_1==="accountSetup")&&(_2==="afterUpdate"||_2==="prove")))))'},f:[" ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_sync_info"},f:[{t:7,e:"Icon",a:{name:"passwords-all-devices",cssCls:"pam_settings_sync_icon"}}," ",{t:7,e:"div",a:{class:"pam_settings_sync_text"},f:[{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.subtitle1")'}}]}," ",{t:7,e:"div",a:{class:"text -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.desc1")'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_settings_sync_info"},f:[{t:7,e:"Icon",a:{name:"passwords-all-backed",cssCls:"pam_settings_sync_icon"}}," ",{t:7,e:"div",a:{class:"pam_settings_sync_text"},f:[{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.subtitle2")'}}]}," ",{t:7,e:"div",a:{class:"text -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.desc2")'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_settings_sync_info"},f:[{t:7,e:"Icon",a:{name:"passwords-all-secure",cssCls:"pam_settings_sync_icon"}}," ",{t:7,e:"div",a:{class:"pam_settings_sync_text"},f:[{t:7,e:"div",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.subtitle3")'}}]}," ",{t:7,e:"div",a:{class:"text -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.notSynced.desc3")'}}]}]}]}," ",{t:7,e:"button",a:{class:"g-margin-top--20 btn -small"},v:{click:"startSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.turnOn.btn")'}}]}]}],x:{r:["loading"],s:"_0===true"}},{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.turnOff.title")'}}]},f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.turnOff.desc")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"Button",a:{cssCls:"-secondary"},v:{click:"turnOffSync"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.turnOffAndDeleteData.btn")'}}]}," ",{t:7,e:"Button",a:{cssCls:"g-margin-left--10"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="turnOffSync"'}},{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.info.title")'}}]},f:[{t:7,e:"div",a:{class:"pam_steps"},f:[{t:7,e:"div",a:{class:"pam_step pam_step_big"},f:[{t:7,e:"div",f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.info.subtitle1")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.info.desc1")'}}]}]}]}," ",{t:7,e:"div",a:{class:"pam_step pam_step_big"},f:[{t:7,e:"div",f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.info.subtitle2")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.info.desc2")'}}]}]}]}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{class:"btn"},v:{click:"showMasterPasswordModal"},f:[{t:3,x:{r:["nls"],s:'_0("global.continue")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="createMasterPasswordInfo"'}},{t:4,f:[{t:7,e:"RestoreIdentity"}],n:50,x:{r:["modalDialog"],s:'_0==="restoreIdentity"'}},{t:4,f:[{t:7,e:"AskCancelSyncModal"}],n:50,x:{r:["modalDialog"],s:'_0==="askCancelSync"'}},{t:4,f:[{t:7,e:"CheckEmailModal",a:{syncState:[{t:2,r:"syncState"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="checkEmail"'}},{t:4,f:[{t:7,e:"ChangeAvastIdPasswordModal",a:{syncState:[{t:2,r:"syncState"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="changeAvastIdPassword"'}},{t:4,f:[{t:7,e:"EnterBtokModal",a:{syncState:[{t:2,r:"syncState"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="enterBtok"'}},{t:4,f:[{t:7,e:"EnterBackupPasswordModal",a:{syncState:[{t:2,r:"syncState"}],backupString:[{t:2,r:"restoringIdentity.backupString"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="enterBackupPassword"'}},{t:4,f:[{t:7,e:"LoginModal",a:{syncState:[{t:2,r:"syncState"}],socialLoginType:[{t:2,r:"socialLoginType"}],email:[{t:2,r:"email"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="login"'}},{t:4,f:[{t:7,e:"CaptchaModal",a:{syncState:[{t:2,r:"syncState"}],cid:[{t:2,r:"solvingCaptcha.cid"}],url:[{t:2,r:"solvingCaptcha.url"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="captcha"'}}]},css:".pam_settings_sync_info {\n  display: flex;\n  margin-bottom: 20px;\n}\n.pam_settings_sync_info .pam_email {\n  color: #fff;\n  font-weight: bold;\n}\n.pam_settings_sync_info .pam_steps {\n  color: rgba(255,255,255,0.7);\n}\n.pam_settings_sync_info .pam_settings_sync_icon {\n  font-size: 36px;\n  margin-right: 40px;\n}\n.pam_info_icon {\n  font-size: 13px;\n  margin-left: 4px;\n  margin-top: -1px;\n}\n.pam_last_synced_time_cont {\n  background-color: var(--overlay-bg);\n  position: absolute;\n  bottom: 0;\n  width: 80%;\n  height: 55px;\n  padding-top: 15px;\n}\n.pam_last_synced_time_cont .pam_last_synced_time {\n  cursor: pointer;\n  color: rgba(255,255,255,0.7);\n}\n.pam_last_synced_time_cont .pam_last_synced_time:hover:not(.-syncing) {\n  color: #fff;\n}\n.pam_last_synced_time_cont .pam_last_synced_time .pam_synchronize_icon {\n  font-size: 16px;\n  margin-right: 10px;\n}\n.pam_last_synced_time_cont .pam_last_synced_time.-syncing {\n  cursor: default;\n}\n.pam_last_synced_time_cont .pam_last_synced_time.-syncing .pam_synchronize_icon {\n  -webkit-animation: rotation 0.95s linear infinite;\n  animation: rotation 0.95s linear infinite;\n}\n",components:{SyncedDevices:Ce,LoginModal:ke,RestoreIdentity:Ae,EnterBtokModal:Ie,CheckEmailModal:De,ChangeAvastIdPasswordModal:Oe,AskCancelSyncModal:Me,EnterBackupPasswordModal:Te,CaptchaModal:Be},data:function(){return{loading:void 0,modalDialog:void 0,syncState:void 0,email:void 0,socialLoginType:void 0,lastSyncTime:void 0,synchronizing:!1,restoringIdentity:{inProgress:!1,backupString:""},solvingCaptcha:{cid:void 0,url:void 0},changeAvastIdPassword:{enterPreviousPassword:!1},invalidSyncState:!1}},onrender(){this.fire("render")},oninit:function(){this.set("loading",!0),i.emit("sensitiveModal.initPamCrypto"),this.synchronizeTimeout=void 0,this._callSyncInterval=void 0,this.listeners=[],this._setInitSyncState(),this.listeners.push(r.on("app.pam.onSyncSetup.statusChanged",(t=>{this._setSyncState(t)}))),this.listeners.push(r.on("app.pam.onStatusChanged.synchronizationDone",(()=>{this.set("synchronizing",!1),this._getLastSyncTime()}))),this.on("showMasterPasswordModal",(()=>{N("setMasterPassword",{width:680,height:423})})),this.on("showLoginModal",((t,e)=>{this._showLoginModal(e)})),this.on("RestoreIdentity.restoreStart",(t=>{this.set("restoringIdentity",{inProgress:!0,backupString:t.backupString}),"waitApproval"===this.get("syncState").state&&this.set("modalDialog","enterBackupPassword")})),this.on("LoginModal.enterPreviousPassword ChangeAvastIdPasswordModal.enterPreviousPassword",(t=>{this.set("changeAvastIdPassword.enterPreviousPassword",t),this._refreshSyncState()})),this.on("FacebookLogin.loggedIn GoogleLogin.loggedIn",(t=>{this.set("socialLoginType",t)})),this.on("recheck",(()=>{this._callSync()})),this.on("synchronize",(()=>{this.set("synchronizing",!0),this._clearSynchronizeTimeout(),this.synchronizeTimeout=setTimeout((()=>{n("app.pam.Synchronize").catch((t=>{console.error("app.pam.Synchronize",JSON.stringify(t))}))}),2e3)})),this.on("startSync",(()=>{n("app.pam.SynchronizationSetup",{request:"startSync"}).catch((e=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(e));const s=t.localization.nls("system.toasters.restart.text"),r={title:t.localization.nls("system.toasters.restart.title"),ok:t.localization.nls("system.toasters.restart.restartComputer")};return t.UI.confirm(s,r).then((()=>{n("app.system.Restart",{rebootType:"RebootFromUI"})}))}))})),this.on("askCancelSync",(()=>{this.set("modalDialog","askCancelSync")})),this.on("AskCancelSyncModal.openPreviousModal",((t,e)=>{"login"===t?this._showLoginModal(e.page):this.set("modalDialog",t)})),this.on("*.modalAskCancelSync",(t=>{const e=this.get("modalDialog");console.debug("previouslyOpenedModal",e),this._isSetupCompleted().then((s=>{s?(this.set("modalDialog",void 0),setTimeout((()=>{this.set("modalDialog","askCancelSync");this.findComponent("AskCancelSyncModal").setPrevioslyOpenedModal(e,t)}))):this._cancelSync()}))})),this.on("turnOffSync",(()=>{this.set("modalDialog",void 0),this.set("loading",!0),n("app.pam.SynchronizationSetup",{request:"stopSync"}).catch((e=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(e));const s=t.localization.nls("system.toasters.restart.text"),r={title:t.localization.nls("system.toasters.restart.title"),ok:t.localization.nls("system.toasters.restart.restartComputer")};return t.UI.confirm(s,r).then((()=>{n("app.system.Restart",{rebootType:"RebootFromUI"})}))}))})),this.on("askTurnOffSync",(()=>{this.set("modalDialog","turnOffSync")})),this.on("*.cancelSync",(()=>{this.set("modalDialog",void 0),this.set("loading",!0),this._cancelSync()})),this.on("Modal.close LoginModal.close RestoreIdentity.close",(()=>{this.set("modalDialog",void 0)}))},_setSyncState(t){this.set("invalidSyncState",!1),this.set("syncState",t),this._initAccountInfo().then((()=>{this.set("loading",!1)})).catch((()=>{this.set("loading",!1)})),this._clearCallSyncInterval(),this._getLastSyncTime();if(["invalid","wrongAccount","error","alreadyExist"].includes(t.reason)){const e=this.get("modalDialog");if("captcha"===e)return this._setSyncState(t.lastRequest),void this._setSyncState(t);if(e)return;this._tryCancelSync(t)}switch(t.state){case"disabled":this.set("modalDialog",void 0);break;case"enabled":this._isLoginModalPageOpened("loginAfterUpdateFromMainUi")&&this.fire("syncEnabled"),"turnOffSync"!==this.get("modalDialog")&&this.set("modalDialog",void 0);break;case"accountSetup":"afterUpdate"===t.reason||"prove"===t.reason||this._showLoginModal("login");break;case"enterIDAPwd":case"enterIDAEmail":"addNew"===t.reason?"enterIDAEmail"===t.state?this._showLoginModal("createLoginSocial"):this._showLoginModal("createPasswordSocial"):"none"===t.reason?this._showLoginModal("loginPasswordSocial"):"afterUpdate"===t.reason||"prove"===t.reason||this._callSyncAndWaitForEvent();break;case"enterCredForBackup":!0===this.get("changeAvastIdPassword.enterPreviousPassword")?this._showLoginModal("enterPreviousPassword"):this.set("modalDialog","changeAvastIdPassword");break;case"enterBTOK":this._startCallSyncInterval(),this.set("modalDialog","enterBtok");break;case"waitActivation":this.set("modalDialog","checkEmail");break;case"solveCaptcha":t.data.cid&&t.data.url?(this.set("modalDialog","captcha"),this.set("solvingCaptcha",{cid:t.data.cid,url:t.data.url})):this._callSyncAndWaitForEvent();break;case"waitApproval":this._startCallSyncInterval(),!0===this.get("restoringIdentity.inProgress")?this.set("modalDialog","enterBackupPassword"):this.set("modalDialog",void 0)}},_callSyncAndWaitForEvent(){this.set("loading",!0),this._callSync()},_tryCancelSync(t){this._isSetupCompleted().then((e=>{e?(console.debug("Uncertain sync state, diplay afterUpdate page. setupCompleted: true, state: ",JSON.stringify(t)),this.set("invalidSyncState",!0),this.set("loading",!1)):(console.debug("Uncertain sync state, call cancel sync, setupCompleted: false, state: ",JSON.stringify(t)),this._cancelSync())}))},_showLoginModal(t){this.set("modalDialog",void 0),this.set("modalDialog","login"),t&&this.findComponent("LoginModal").set({page:t})},_isLoginModalPageOpened(t){const e=this.findComponent("LoginModal");return e&&e.get("page")===t},_callSync(){console.debug("_callSync syncBackup.js"),n("app.pam.Synchronize")},_cancelSync(){n("app.pam.SynchronizationSetup",{request:"cancelSync"}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))},_refreshSyncState(){this._getSyncState().then((t=>{this._setSyncState({state:t.lastSyncState})}))},_setInitSyncState(){this._getSyncState().then((t=>{!1===["enabled","disabled","waitApproval"].includes(t.lastSyncState)?this._tryCancelSync({state:t.lastSyncState}):this._setSyncState({state:t.lastSyncState})}))},_isSetupCompleted(){return this._getSyncState().then((t=>t.setupCompleted))},_getSyncState:()=>n("app.pam.SynchronizationSetup",{request:"getState"}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))})),_getLastSyncTime(){n("app.pam.GetLastSynchronizationTime").then((e=>{if(e&&e.LastSyncTime){const s=t.localization.moment(1e3*e.LastSyncTime).format("LT");this.set("lastSyncTime",s)}}))},_initAccountInfo(){return n("app.pam.GetSyncAccountInfo").then((t=>{t&&t.primaryEmail?this.set("email",t.primaryEmail):this.set("email",void 0)})).catch((t=>{console.error("app.pam.GetSyncAccountInfo",JSON.stringify(t))}))},_clearSynchronizeTimeout(){this.synchronizeTimeout&&(clearTimeout(this.synchronizeTimeout),this.synchronizeTimeout=void 0)},_startCallSyncInterval(){this._callSyncInterval||(console.debug("_startCallSyncInterval"),this._callSyncInterval=setInterval((()=>{this._callSync()}),4e3))},_clearCallSyncInterval(){this._callSyncInterval&&(console.debug("_clearCallSyncInterval"),clearInterval(this._callSyncInterval),this._callSyncInterval=void 0)},onteardown(){this._clearCallSyncInterval(),this._clearSynchronizeTimeout(),this.listeners.forEach((t=>t()))}});const Le={chrome:1,firefox:2,asb:32,msedge:64},Re=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Modal",f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}]}],n:50,x:{r:["loading"],s:"_0===true"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page","browserPasswordCount"],s:'_0==="loginsFound"&&_1>0'},f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls","browserPasswordCount"],s:'_0("passwords.settings.import.loginsFound",_1)'}}," ",{t:2,r:"browserName"}]},f:[{t:7,e:"div",a:{class:"pam_settings_import_modal_browser"},f:[{t:7,e:"Browser",a:{browserId:[{t:2,r:"browserId"}]}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.loginsFound.subtitle")'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__actions"},f:[{t:7,e:"button",a:{class:"btn"},v:{click:"importFromBrowser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.loginsFound.importNow.btn")'}}]}," ",{t:7,e:"button",a:{class:"btn -secondary g-margin-left--10"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]},{t:4,n:50,x:{r:["page","browserPasswordCount"],s:'(!(_0==="loginsFound"&&_1>0))&&(_0==="loginsFound"&&_1===0)'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.noLoginsFound")'}}," ",{t:2,r:"browserName"}]},f:[{t:7,e:"div",a:{class:"g-margin-top--20 modal__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.ok")'}}]}]}]}]},{t:4,n:50,x:{r:["browserPasswordCount","page"],s:'(!(_1==="loginsFound"&&_0>0))&&((!(_1==="loginsFound"&&_0===0))&&(_1==="importing"))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.importing")'}}]},f:[{t:7,e:"div",a:{class:"spinner"}}]}]},{t:4,n:50,x:{r:["browserPasswordCount","page"],s:'(!(_1==="loginsFound"&&_0>0))&&((!(_1==="loginsFound"&&_0===0))&&((!(_1==="importing"))&&(_1==="importComplete")))'},f:[" ",{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.complete")'}}]},f:[{t:7,e:"svg",a:{version:"1.1",class:"color-ok -text",id:"import-ok-state-icon",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 500 500"},f:[{t:7,e:"path",a:{d:"M250.3,10.1c132.5,0,239.9,107.4,239.9,239.9S382.8,489.9,250.3,489.9S10.5,382.5,10.5,250\n\t\t\t\tS117.9,10.1,250.3,10.1z"}}," ",{t:7,e:"path",a:{d:"M103.6,254.2l101,101l195.5-195.5"}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__actions"},f:[{t:7,e:"button",a:{class:"btn"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.ok")'}}]}]}]}]}],x:{r:["loading"],s:"_0===true"}}]},css:"#import-ok-state-icon {\n  width: 75px !important;\n  height: 75px !important;\n}\n#import-ok-state-icon path {\n  stroke-width: 10px !important;\n}\n.pam_settings_import_modal_browser .pam_browser {\n  margin-right: 0;\n  margin-bottom: 20px;\n}\n.pam_settings_import_modal_browser .pam_browser_label {\n  display: none;\n}\n.pam_settings_import_modal_browser .pam_browser_icon {\n  font-size: 40px;\n}\n",components:{Browser:b},data:function(){return{page:"loginsFound",browserId:void 0,browserName:void 0,browserPasswordCount:0,loading:!0}},oninit:function(){this._init(),this.on("Modal.close",(()=>{this.fire("close")})),this.on("importFromBrowser",(()=>{this._importFromBrowser(this.get("browserId"))}))},_init(){const t=this.get("browserId");this.set("browserName",v(t)),this.set("loading",!0),n("app.pam.GetSelectedBrowserPasswordCount",{browser:Le[t]}).then((e=>{this.set("browserPasswordCount",e[Le[t]]),this.set("loading",!1)})).catch((t=>{console.error("app.pam.GetSelectedBrowserPasswordCount",JSON.stringify(t)),this.set("loading",!1)}))},_importFromBrowser(t){this.set("page","importing"),this.importProgressOff=r.on("app.pam.onStatusChanged.importProgress",(t=>{this.set("browserPasswordCount",t.browserpasswordscount),t.importedcount>=t.browserpasswordscount&&(this.set("page","importComplete"),new I("import-ok-state-icon",{duration:70,type:"delayed",animTimingFunction:I.EASE_OUT}))})),n("app.pam.ImportBrowserPasswords",{browser:Le[t]}).catch((t=>{console.error("app.pam.GetBrowserStatus",JSON.stringify(t))}))},onteardown(){this.importProgressOff&&this.importProgressOff()}});const ze=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Modal",f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["mode","nls"],s:'_0==="import"?_1("passwords.settings.import.importing"):_1("passwords.settings.export.exporting")'}}]}," ",{t:7,e:"div",a:{class:"pam_spinner_cont g-margin-top--60 g-margin-bottom--80"},f:[{t:7,e:"span",a:{class:"spinner -big"}}]}]}],n:50,x:{r:["page"],s:'_0==="PAGE_LOADING"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="PAGE_WAITING_FOR_FILE"'},f:[{t:7,e:"Modal",f:[{t:4,f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.fileSelect.title")'}}]}],n:50,x:{r:["mode"],s:'_0==="import"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.export.fileSelect.title")'}}]}],x:{r:["mode"],s:'_0==="import"'}}," ",{t:7,e:"div",a:{class:"modal__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.fileSelect.subtitle")'}}]}," ",{t:7,e:"div",a:{class:"pam_spinner_cont g-margin-top--60 g-margin-bottom--80"},f:[{t:7,e:"span",a:{class:"spinner -big"}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="PAGE_WAITING_FOR_FILE"))&&(_0==="PAGE_IMPORT_WARNING")'},f:[" ",{t:7,e:"Modal",f:[{t:7,e:"svg",a:{class:"icon-warning",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},f:[{t:7,e:"path",a:{fill:"#F1C80B","fill-rule":"nonzero",d:"M25.557.962L47.81 45.48A1.74 1.74 0 0 1 46.26 48H1.745C.45 48-.395 46.639.187 45.48L22.447.962c.638-1.283 2.471-1.283 3.11 0zM22 41h4v-4h-4v4zm0-9h4V16h-4v16z"}}]}," ",{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.title")'}}]}," ",{t:7,e:"div",a:{class:"modal__subtitle g-margin-top--10"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.subtitle")'}}]}," ",{t:7,e:"div",a:{class:"radio__group g-margin-left--20 g-align--left"},f:[{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"radio_merge",type:"radio",class:"radio",name:"import_mode_radio",checked:"checked",value:"merge"},v:{click:"setImportMode"}}," ",{t:7,e:"label",a:{for:"radio_merge",class:"radio__label"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.mergeSelection.title")'}}]}," ",{t:7,e:"p",a:{class:"settings__indent checkbox__desc "},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.mergeSelection.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"radio_replace",type:"radio",class:"radio",name:"import_mode_radio",value:"replace"},v:{click:"setImportMode"}}," ",{t:7,e:"label",a:{for:"radio_replace",class:"radio__label"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.replaceSelection.title")'}}]}," ",{t:7,e:"p",a:{class:"settings__indent checkbox__desc"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.import.dataInVault.replaceSelection.subtitle")'}}]}]}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"doAction",a:"continue"}},f:[{t:3,x:{r:["nls"],s:'_0("global.continue")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary"},v:{click:{n:"doAction",a:"close"}},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="PAGE_WAITING_FOR_FILE"))&&((!(_0==="PAGE_IMPORT_WARNING"))&&(_0==="PAGE_SUCCESS"))'},f:[" ",{t:7,e:"Modal",f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.general.success")'}}]}," ",{t:7,e:"svg",a:{class:"icon-done",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160 160",style:"enable-background:new 0 0 160 160;","xml:space":"preserve"},f:[{t:7,e:"g",f:[{t:7,e:"path",a:{style:"fill-rule:evenodd;clip-rule:evenodd;fill:#1cb84a;",d:"M80,0C35.82,0,0,35.82,0,80c0,44.18,35.82,80,80,80\n\ts80-35.82,80-80C160,35.82,124.18,0,80,0z M80,155.99c-41.97,0-75.99-34.02-75.99-75.99S38.03,4.01,80,4.01\n\tS155.99,38.03,155.99,80S121.97,155.99,80,155.99z M119.46,52.58c-0.81-0.81-2.12-0.81-2.93,0l-48.56,48.56L46.42,79.58\n\tc-0.81-0.81-2.11-0.81-2.92,0l-2.92,2.92c-0.81,0.81-0.81,2.11,0,2.92l22.79,22.79c0.06,0.09,0.13,0.18,0.21,0.26l2.93,2.93\n\tc0.41,0.41,0.95,0.61,1.49,0.6c0.54,0.01,1.07-0.19,1.48-0.6l2.92-2.92c0.07-0.07,0.13-0.16,0.19-0.24l49.8-49.8\n\tc0.81-0.81,0.81-2.12,0-2.93L119.46,52.58z"}}]}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--15"},f:[{t:3,x:{r:["nls","stats.processedCount"],s:'_0("passwords.settings.export.countOfItems",_1)'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{type:"button",class:"btn g-margin-top--20"},v:{click:{n:"doAction",a:"close"}},f:[{t:3,x:{r:["nls"],s:'_0("global.done")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary g-margin-top--20"},v:{click:{n:"doAction",a:"showFolder"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.export.showFile.btn")'}}]}]}],n:50,x:{r:["mode"],s:'_0==="export"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"g-margin-top--20 g-margin-bottom--20"},f:[{t:3,x:{r:["nls","stats.processedCount","stats.diffCount"],s:'_0("passwords.settings.import.countOfItems",_1,_2)'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"doAction",a:"close"}},f:[{t:3,x:{r:["nls"],s:'_0("global.done")'}}]}]}],x:{r:["mode"],s:'_0==="export"'}}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="PAGE_WAITING_FOR_FILE"))&&((!(_0==="PAGE_IMPORT_WARNING"))&&((!(_0==="PAGE_SUCCESS"))&&(_0==="PAGE_EXPORT_NO_DATA")))'},f:[" ",{t:7,e:"Modal",f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.export.noDataInVault.title")'}}]}," ",{t:7,e:"svg",a:{class:"icon-error",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160 160",style:"enable-background:new 0 0 160 160;","xml:space":"preserve"},f:[{t:7,e:"g",f:[{t:7,e:"path",a:{style:"fill-rule:evenodd;clip-rule:evenodd;fill:#DA2C2C;",d:"M109.39,53.5l-2.93-2.93c-0.81-0.81-2.12-0.81-2.93,0\n\tL79.97,74.15L56.43,50.61c-0.81-0.81-2.12-0.81-2.93,0l-2.93,2.93c-0.81,0.81-0.81,2.12,0,2.93L74.12,80l-23.54,23.54\n\tc-0.81,0.81-0.81,2.12,0,2.93l2.93,2.93c0.81,0.81,2.12,0.81,2.93,0l23.54-23.54l23.57,23.57c0.81,0.81,2.12,0.81,2.93,0\n\tl2.93-2.93c0.81-0.81,0.81-2.12,0-2.93L85.82,80l23.57-23.57C110.2,55.62,110.2,54.31,109.39,53.5z M80,0C35.82,0,0,35.82,0,80\n\tc0,44.18,35.82,80,80,80s80-35.82,80-80C160,35.82,124.18,0,80,0z M80,155.99c-41.97,0-75.99-34.02-75.99-75.99\n\tS38.03,4.01,80,4.01S155.99,38.03,155.99,80S121.97,155.99,80,155.99z"}}]}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"doAction",a:"close"}},f:[{t:3,x:{r:["nls"],s:'_0("global.ok")'}}]}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="PAGE_WAITING_FOR_FILE"))&&((!(_0==="PAGE_IMPORT_WARNING"))&&((!(_0==="PAGE_SUCCESS"))&&((!(_0==="PAGE_EXPORT_NO_DATA"))&&(_0==="PAGE_ERROR"))))'},f:[" ",{t:7,e:"Modal",f:[{t:7,e:"div",a:{class:"modal__title"},f:[{t:3,r:"errorTitle"}]}," ",{t:7,e:"div",f:[{t:3,r:"errorMessage"}]}," ",{t:7,e:"svg",a:{class:"icon-error",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160 160",style:"enable-background:new 0 0 160 160;","xml:space":"preserve"},f:[{t:7,e:"g",f:[{t:7,e:"path",a:{style:"fill-rule:evenodd;clip-rule:evenodd;fill:#DA2C2C;",d:"M109.39,53.5l-2.93-2.93c-0.81-0.81-2.12-0.81-2.93,0\n\tL79.97,74.15L56.43,50.61c-0.81-0.81-2.12-0.81-2.93,0l-2.93,2.93c-0.81,0.81-0.81,2.12,0,2.93L74.12,80l-23.54,23.54\n\tc-0.81,0.81-0.81,2.12,0,2.93l2.93,2.93c0.81,0.81,2.12,0.81,2.93,0l23.54-23.54l23.57,23.57c0.81,0.81,2.12,0.81,2.93,0\n\tl2.93-2.93c0.81-0.81,0.81-2.12,0-2.93L85.82,80l23.57-23.57C110.2,55.62,110.2,54.31,109.39,53.5z M80,0C35.82,0,0,35.82,0,80\n\tc0,44.18,35.82,80,80,80s80-35.82,80-80C160,35.82,124.18,0,80,0z M80,155.99c-41.97,0-75.99-34.02-75.99-75.99\n\tS38.03,4.01,80,4.01S155.99,38.03,155.99,80S121.97,155.99,80,155.99z"}}]}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"modal__content g-margin-bottom--20"},f:[{t:3,r:"errorMessageStatistics"}]}],n:50,r:"errorMessageStatistics"}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{type:"button",class:"btn"},v:{click:{n:"doAction",a:"tryAgain"}},f:[{t:3,x:{r:["buttonTryAgain","nls"],s:'_0?_1("passwords.settings.general.tryAgain.btn"):_1("passwords.settings.general.tryAnother.btn")'}}]}," ",{t:7,e:"button",a:{type:"button",class:"btn -secondary"},v:{click:{n:"doAction",a:"close"}},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]}],x:{r:["page"],s:'_0==="PAGE_LOADING"'}}]},css:".icon-warning {\n  width: 60px;\n  height: 60px;\n  margin-bottom: 20px;\n}\n.icon-done {\n  width: 82px;\n  margin: 7px auto 7px;\n}\n.icon-error {\n  width: 82px;\n  margin: 20px auto 20px;\n}\n",data:function(){return{mode:"",page:"",stats:void 0,filePath:"",errorMessageStatistics:"",errorMessage:"",errorTitle:"",importMode:"merge",buttonTryAgain:!0}},oninit:function(){this._init(),this.on("Modal.close",(()=>{this.fire("close")})),this.on("doAction",((t,e)=>{switch(e){case"import":case"export":this.proceedWithAction(e,this.get("path"));break;case"tryAgain":this._init();break;case"close":this.fire("close");break;case"showFolder":this.showFolder().then((()=>{this.fire("close")})).catch((()=>{this.fire("close")}));break;case"continue":this.set("page","PAGE_LOADING"),"replace"===this.get("importMode")?this.wipeVaultData().then((()=>{this.proceedWithAction("import",this.get("filePath"))})).catch((()=>{this.set("errorMessage","Failed to delete data from vault. Please try again."),this.set("page","PAGE_ERROR")})):this.proceedWithAction("import",this.get("filePath"));break;default:this.fire("close")}})),this.on("setImportMode",(t=>{this.set("importMode",t.node.value)}))},_init(){const e=this.get("mode");this.set("page","PAGE_WAITING_FOR_FILE"),this.wipeData(),Promise.all([n("app.pam.ExportImportPAMData",{aType:"import"===e?"getImpPath":"getExpPath"}),n("app.pam.ExportImportPAMData",{aType:"getState"})]).then((t=>{const s=t[0].path;if(!s)return void this.fire("close");this.set("filePath",s);const n=t[1].state;let r=!1;(n.lCnt>0||n.cCnt>0||n.nCnt>0)&&(r=!0),!0===r&&"import"===e?this.set("page","PAGE_IMPORT_WARNING"):!1===r&&"export"===e?this.set("page","PAGE_EXPORT_NO_DATA"):this.proceedWithAction(e,s)})).catch((e=>{console.error("app.pam.ExportImportPAMData",JSON.stringify(e)),this.set("errorMessage",t.localization.nls("passwords.settings.export.error.title")),this.set("page","PAGE_ERROR")}))},wipeVaultData:()=>n("app.pam.ExportImportPAMData",{aType:"wipeData"}),proceedWithAction(e,s){this.set("page","PAGE_LOADING"),n("app.pam.ExportImportPAMData",{aType:"import"===e?"imp":"exp",path:s}).then((e=>{const n=this.processStats(e),r=s.split("\\");0===n.sourceCount?(this.set("errorTitle",t.localization.nls("passwords.settings.import.emptyFileError.title")),this.set("errorMessage",t.localization.nls("passwords.settings.import.emptyFileError.subtitle",r[r.length-1])),this.set({errorMessageStatistics:"",buttonTryAgain:!1,page:"PAGE_ERROR"})):(this.set("stats",n),this.set("page","PAGE_SUCCESS"))})).catch((n=>{if(n.stats){const t=this.processStats(n);this.set("stats",t)}const r=s.split("\\");let a=t.localization.nls("passwords.settings.exportImport.error.subtitle"),o="",i="",l=!0;switch(n.id||(n.id="nan"),n.id){case"expFileCreationFailed":i=t.localization.nls("passwords.settings.export.fileError.title"),a=t.localization.nls("passwords.settings.export.fileError.subtitle",r[r.length-2]);break;case"genericExpError":case"expError":i=t.localization.nls("passwords.settings.export.error.title"),0===this.get("stats.processedCount")?o=t.localization.nls("passwords.settings.export.error.zeroCountOfItems",this.get("stats.processedCount"),this.get("stats.sourceCount")):this.get("stats.processedCount")>0&&(o=t.localization.nls("passwords.settings.export.error.countOfItems",this.get("stats.processedCount"),this.get("stats.sourceCount")));break;case"impFileOpenFailed":i=t.localization.nls("passwords.settings.import.fileError.title"),a=t.localization.nls("passwords.settings.import.fileError.subtitle",r[r.length-1]);break;case"genericImpError":case"impError":i=t.localization.nls("passwords.settings.import.error.title"),0===this.get("stats.processedCount")?o=t.localization.nls("passwords.settings.import.error.zeroCountOfItems",this.get("stats.processedCount"),this.get("stats.sourceCount")):this.get("stats.processedCount")>0&&(o=t.localization.nls("passwords.settings.import.error.countOfItems",this.get("stats.processedCount"),this.get("stats.sourceCount")));break;case"impDataDeleteFailed":i=t.localization.nls("passwords.settings.import.vaultDeleteError.title");break;case"impFileEmptyError":i=t.localization.nls("passwords.settings.import.emptyFileError.title"),a=t.localization.nls("passwords.settings.import.emptyFileError.subtitle",r[r.length-1]),l=!1;break;default:i="import"===e?t.localization.nls("passwords.settings.export.error.title"):t.localization.nls("passwords.settings.import.error.title")}this.set({errorMessage:a,errorMessageStatistics:o,errorTitle:i,buttonTryAgain:l,page:"PAGE_ERROR"})}))},processStats(t){const e=t.stats.LA+t.stats.CA+t.stats.NA,s=t.stats.LS+t.stats.CS+t.stats.NS;return{sourceCount:e,processedCount:s,diffCount:e-s}},showFolder(){return n("app.pam.ExportImportPAMData",{aType:"showFolder",path:this.get("filePath")})},wipeData(){this.set({filePath:"",stats:null,errorMessage:"",errorMessageStatistics:"",buttonTryAgain:!0,errorTitle:"",importMode:"merge",goToCustomerSupport:"https://support.avast.com"})}}),Ge=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,x:{r:["loading"],s:"_0===true"}},{t:4,n:51,f:[" ",{t:4,f:[{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_browsers g-margin-bottom--20"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_settings_browser_ext g-margin-top--20"},f:[{t:7,e:"div",a:{class:"pam_settings_browser"},f:[{t:7,e:"Browser",a:{browserId:[{t:2,r:"browser"}]}}," ",{t:7,e:"div",a:{class:"pam_settings_browser_text"},f:[{t:3,x:{r:["nls","name"],s:'_0("passwords.settings.importExport.import.browser",_1)'}}]}]}," ",{t:7,e:"button",a:{class:"btn -small -secondary"},v:{click:{n:"beginImportFromBrowser",d:[{t:2,r:"browser"}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.import.btn")'}}]}]}],n:52,r:"browsers"}]}],n:50,x:{r:["browsers.length"],s:"_0>0"}}," ",{t:7,e:"div",a:{class:"pam_settings_browsers"},f:[{t:7,e:"div",a:{class:"pam_line g-margin-top--20 g-margin-bottom--20"}}]}," ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.export.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_browsers g-margin-bottom--20"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_settings_browser_ext g-margin-top--20"},f:[{t:7,e:"div",a:{class:"pam_settings_browser"},f:[{t:7,e:"Browser",a:{browserId:[{t:2,r:"browser"}]}}," ",{t:7,e:"div",a:{class:"pam_settings_browser_text"},f:[{t:3,x:{r:["nls","name"],s:'_0("passwords.settings.importExport.export.browser",_1)'}}," ",{t:7,e:"span",a:{class:"span -secondary"},f:[{t:7,e:"a",a:{class:"a",href:[{t:2,r:"link"}]},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.export.browser.seeHow")'}}]}]}]}]}," ",{t:7,e:"button",a:{class:"btn -small -secondary"},v:{click:{n:"export",d:[{t:2,r:"browser"}]}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.export.btn")'}}]}]}],n:52,r:"browserExports"}]}," ",{t:7,e:"div",a:{class:"pam_settings_browsers"},f:[{t:7,e:"div",a:{class:"pam_line g-margin-top--20 g-margin-bottom--20"}}]}," ",{t:7,e:"h3",a:{class:"h3 g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.allData.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_settings_browsers g-margin-bottom--20"},f:[{t:7,e:"div",a:{class:"pam_settings_browser_ext g-margin-top--20"},f:[{t:7,e:"div",a:{class:""},f:[{t:7,e:"button",a:{class:"btn -small -secondary g-margin-right--10"},v:{click:{n:"beginBackup",a:"export"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.exportToFile.btn")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -secondary"},v:{click:{n:"beginBackup",a:"import"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport.importFromFile.btn")'}}]}]}]}]}],x:{r:["loading"],s:"_0===true"}},{t:4,f:[{t:7,e:"BrowserImportModal",a:{browserId:[{t:2,r:"importingBrowser"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="browserImportModal"'}},{t:4,f:[{t:7,e:"BackupModal",a:{mode:[{t:2,r:"backupMode"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="backupModal"'}}]},css:".pam_settings_browsers .pam_settings_browser_ext {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_csv_export_icon {\n  font-size: 36px;\n  padding-left: 2px;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_settings_browser_text {\n  font-size: 15px;\n}\n.pam_settings_browsers .pam_settings_browser_ext .btn {\n  white-space: nowrap;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_settings_browser {\n  display: flex;\n  align-items: center;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_settings_browser .pam_browser {\n  width: 40px;\n  font-size: 15px;\n  display: inline-flex;\n  align-items: center;\n  flex-direction: row;\n  margin-right: 20px;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_settings_browser .pam_browser .pam_browser_icon {\n  font-size: 40px;\n}\n.pam_settings_browsers .pam_settings_browser_ext .pam_settings_browser .pam_browser .pam_browser_label {\n  display: none;\n}\n",components:{Browser:b,BrowserImportModal:Re,BackupModal:ze},data:function(){return{browsers:[],browserExports:[],modalDialog:void 0,importingBrowser:void 0,backupMode:void 0,loading:!0}},oninit:function(){this._initBrowsers(),this._initBrowserExports(),this.on("Modal.close",(()=>{this.set("modalDialog",void 0)})),this.on("BrowserImportModal.close",(()=>{this.set("modalDialog",void 0)})),this.on("BackupModal.close",(()=>{this.set("modalDialog",void 0)})),this.on("beginImportFromBrowser",((t,e)=>{this.set("importingBrowser",e),this.set("modalDialog","browserImportModal")})),this.on("beginBackup",((t,e)=>{this.set("backupMode",e),this.set("modalDialog","backupModal")})),this.on("export",((t,e)=>{const s="pam_export_"+e;n("av.command",s).catch((t=>{console.error("av.command",s,JSON.stringify(t))}))}))},_initBrowsers(){this.set("loading",!0),n("app.pam.GetBrowserStatus").then((t=>{const e=[];for(const s of t)s.name=v(s.browser),e.push(s);this.set("browsers",e),this.set("loading",!1)})).catch((t=>{console.error("app.pam.GetBrowserStatus",JSON.stringify(t))}))},_initBrowserExports(){const t=[{browser:"chrome",name:v("chrome"),link:"https://www.avast.com/FAQ/AVKB273"},{browser:"firefox",name:v("firefox"),link:"https://www.avast.com/FAQ/AVKB274"}];this.set("browserExports",t)}}),We=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.deleteVault.title")'}}]},f:[{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.deleteVault.subtitle")'}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20 modal__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary","data-test":"deleteVault"},v:{click:"deleteVault"},f:[{t:3,x:{r:["nls"],s:'_0("global.delete")'}}]}," ",{t:7,e:"button",a:{class:"btn g-margin-left--10","data-test":"Modal.close"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}]}]},oninit:function(){this.on("Modal.close",(()=>{this.fire("close")})),this.on("deleteVault",(()=>{n("app.pam.DeletePAMVault").then((()=>{this.fire("close"),this.fire("vaultDeleted")})).catch((t=>{console.error("app.pam.DeletePAMVault",JSON.stringify(t))}))}))}}),Ve=t.extend({template:{v:3,t:[{t:7,e:"Overlay",a:{type:"main",title:[{t:3,x:{r:["nls"],s:'_0("global.product.AVAST_PASSWORDS")'}}," ",{t:3,x:{r:["nls"],s:'_0("settings")'}}]},f:[{t:7,e:"div",a:{class:"settings"},f:[{t:7,e:"div",a:{class:"settings__menu -single-column"},f:[{t:7,e:"button",a:{disabled:[{t:2,x:{r:["loading","settingsLocked"],s:"_0||_1"}}],class:["settings__item ",{t:2,x:{r:["category"],s:'_0==="security"?"-active":""'}}]},v:{click:{n:"setCategory",a:"security"}},f:[{t:7,e:"Icon",a:{name:"security"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords.settings.security")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,x:{r:["loading","settingsLocked"],s:"_0||_1"}}],class:["settings__item ",{t:2,x:{r:["category"],s:'_0==="browserIntegration"?"-active":""'}}]},v:{click:{n:"setCategory",a:"browserIntegration"}},f:[{t:7,e:"Icon",a:{name:"passwords-browser-integration"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords.settings.browserIntegration")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,x:{r:["loading","settingsLocked"],s:"_0||_1"}}],class:["settings__item ",{t:2,x:{r:["category"],s:'_0==="syncBackup"?"-active":""'}}]},v:{click:{n:"setCategory",a:"syncBackup"}},f:[{t:7,e:"Icon",a:{name:"passwords-sync"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords.settings.syncBackup")'}}]}," ",{t:7,e:"button",a:{disabled:[{t:2,x:{r:["loading","settingsLocked"],s:"_0||_1"}}],class:["settings__item ",{t:2,x:{r:["category"],s:'_0==="importExport"?"-active":""'}}]},v:{click:{n:"setCategory",a:"importExport"}},f:[{t:7,e:"Icon",a:{name:"passwords-import"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords.settings.importExport")'}}]}]}," ",{t:7,e:"div",a:{class:"settings__content pam_settings__content"},f:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,x:{r:["loading"],s:"_0===true"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["settingsLocked"],s:"_0===true"},f:[{t:4,f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.locked.msg")'}}]}," ",{t:7,e:"button",a:{class:"g-margin-top--20 btn -small","data-test":"Overlay.close"},v:{click:"Overlay.close"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.unlock")'}}]}],n:50,x:{r:["page"],s:'_0!=="systemLoginError"'}}," ",{t:7,e:"p",a:{class:"g-margin-top--20 p -small"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.locked.reset.title")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.locked.reset.desc")'}}]}," ",{t:7,e:"p",a:{class:"g-margin-top--20 p -small"},f:[{t:7,e:"button",a:{class:"a","data-test":"showModal:deleteVault"},v:{click:{n:"showModal",a:"deleteVault"}},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.locked.deleteAll")'}}]}]}]},{t:4,n:50,x:{r:["settingsLocked","category"],s:'(!(_0===true))&&(_1==="security")'},f:[" ",{t:7,e:"Security"}]},{t:4,n:50,x:{r:["settingsLocked","category"],s:'(!(_0===true))&&((!(_1==="security"))&&(_1==="browserIntegration"))'},f:[" ",{t:7,e:"BrowserIntegration"}]},{t:4,n:50,x:{r:["settingsLocked","category"],s:'(!(_0===true))&&((!(_1==="security"))&&((!(_1==="browserIntegration"))&&(_1==="syncBackup")))'},f:[" ",{t:7,e:"SyncBackup"}]},{t:4,n:50,x:{r:["settingsLocked","category"],s:'(!(_0===true))&&((!(_1==="security"))&&((!(_1==="browserIntegration"))&&((!(_1==="syncBackup"))&&(_1==="importExport"))))'},f:[" ",{t:7,e:"ImportExport"}]}],x:{r:["loading"],s:"_0===true"}}]}]}]}," ",{t:4,f:[{t:7,e:"DeleteVaultModal"}],n:50,x:{r:["modalDialog"],s:'_0==="deleteVault"'}},{t:4,f:[{t:7,e:"AirbondModal"}],n:50,x:{r:["modalDialog"],s:'_0==="airbond"'}}]},css:".pam_settings__content {\n  padding: 3rem 14rem;\n}\n.pam_line {\n  border-bottom: 1px solid #000;\n  opacity: 0.2;\n}\n.pam_ipm_modal .modal {\n  height: 440px;\n}\n.pam_ipm_modal .modal .nui_ipm {\n  margin-top: 30px;\n}\n.pam_steps {\n  display: flex;\n  list-style: none;\n  margin: 20px 10px 0 30px;\n  counter-reset: li;\n  flex-direction: column;\n  justify-content: space-around;\n}\n.pam_steps .pam_step {\n  text-align: left;\n  padding: 5px 0;\n  position: relative;\n  flex-grow: 1;\n  font-size: 12px;\n}\n.pam_steps .pam_step:before {\n  content: counter(li);\n  counter-increment: li;\n  position: absolute;\n  left: -28px;\n  top: 4px;\n  border: 1px solid rgba(255,255,255,0.7);\n  width: 15px;\n  height: 15px;\n  border-radius: 30px;\n  padding-top: 2px;\n  text-align: center;\n  font-size: 9px;\n}\n.pam_steps .pam_step.pam_step_big {\n  padding: 5px 0 10px 20px;\n}\n.pam_steps .pam_step.pam_step_big:before {\n  left: -23px;\n  width: 30px;\n  height: 30px;\n  padding-top: 4px;\n  font-size: 15px;\n}\n",components:{Security:xe,BrowserIntegration:Se,SyncBackup:Ne,ImportExport:Ge,DeleteVaultModal:We,AirbondModal:be},data:function(){return{category:void 0,settingsLocked:void 0,loading:!0,modalDialog:void 0}},oninit:function(){this.listeners=[],this.listeners.push(r.on("app.pam.onStatusChanged.vaultLocked",(()=>{this._init()}))),this.on("Overlay.close",(()=>{this.fire("overlayClose")})),this.on("setCategory",((t,e)=>{this.setCategory(e)})),this.on("DeleteVaultModal.close",(()=>{this.set("modalDialog",void 0)})),this.on("LoginModal.loginClosed DeleteVaultModal.vaultDeleted",(()=>{this.fire("overlayClose")})),this.on("showModal",((t,e)=>{this.set("modalDialog",e)})),this.on("Modal.close",(()=>{this.set("modalDialog",void 0)})),this._init()},setCategory(t){this.set("category",t);const e=t.charAt(0).toUpperCase()+t.slice(1);s.view("pam/Settings/"+e)},_getCategory(){return this.get("category")||"security"},_init(){this.set("loading",!0),n("app.pam.GetPAMVaultState").then((t=>{3===t||1===t||2===t?(this.set({settingsLocked:!0,loading:!1,category:this._getCategory()}),s.view("pam/Settings/Locked")):(this.set({settingsLocked:!1,loading:!1}),this.setCategory(this._getCategory()))})).catch((t=>{console.error("app.pam.GetPAMVaultState",JSON.stringify(t))}))},onteardown(){this.listeners.forEach((t=>{t()}))}});const Fe=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"avs nui_standalone","data-product":[{t:2,r:"product"}]},f:[{t:7,e:"div",a:{class:"nui_main nui_main_standalone"},f:[{t:16}]}," ",{t:7,e:"Titlebar",a:{product:[{t:2,r:"product"}],title:[{t:2,r:"title"}],menuIcon:"true",menuIconTitle:[{t:2,x:{r:["nls"],s:'_0("menu")'}}],menuItems:[{t:2,x:{r:["onSettings","nls","onLicenses"],s:'[{title:_1("passwords.settings"),icon:"settings",onclick:_0},{title:_1("my.licenses"),icon:"avast-ameba-outline",onclick:_2}]'}}],minimizeIconTitle:[{t:3,x:{r:["nls"],s:'_0("global.minimize")'}}],closeIconTitle:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}}," ",{t:4,f:[{t:7,e:"Overlay",a:{type:"main",title:[{t:3,x:{r:["nls"],s:'_0("my.licenses")'}}]},f:[{t:7,e:"Module",a:{name:"MyLicenses"}}]}],n:50,r:"showLicenses"}]}],n:50,r:"IS_STANDALONE_WINDOW"},{t:4,n:51,f:[{t:16}],r:"IS_STANDALONE_WINDOW"}]},css:".nui_standalone .nui_main {\n  z-index: auto;\n}\n.nui_standalone .pam_list {\n  top: 0;\n  padding-top: 8rem;\n  margin-top: 0;\n  left: 218px;\n}\n.nui_standalone .pam_empty-screen {\n  margin-top: 10rem;\n}\n.nui_standalone .pam_panel {\n  margin-top: 0;\n}\n.nui_standalone .pam_section_content {\n  margin-top: 3rem;\n}\n.nui_standalone .pam_section_title {\n  position: fixed;\n  background: linear-gradient(to bottom, #f4f4f4 69%, rgba(244,244,244,0) 100%);\n  height: 90px;\n  padding-top: 30px;\n  top: 42;\n  left: 240;\n  z-index: 1;\n  width: 750px;\n  text-align: center;\n  display: block;\n}\n.nui_standalone .pam_filter {\n  top: 3rem;\n  color: #767683;\n}\n.nui_standalone .pam_unlock_standalone {\n  margin-top: 50px;\n}\n.nui_standalone .nui_page__scroll {\n  --scrollbar-bg: rgba(180,180,180,0.4);\n  --scrollbar-bg-hover: rgba(180,180,180,0.6);\n}\n.nui_standalone .color-light-grey.-bg {\n  background-color: #f4f4f4;\n  color: #2d364c;\n}\n.nui_standalone .color-light.-bg {\n  background-color: #f4f4f4;\n  color: #767683;\n}\n.nui_standalone .color-white.-bg {\n  background-color: #fff;\n  color: #3d5870;\n}\n.nui_standalone .color-white.-text {\n  color: #fff;\n}\n[dir=rtl] .nui_standalone .pam_section_title {\n  right: 240;\n}\n[dir=rtl] .nui_standalone .pam_list {\n  right: 218px;\n  left: 0;\n}\n",components:{StandaloneMenu:xt,Settings:Ve},data:function(){return{module:null,product:null,showSettings:!1,onSettings:this._onSettings,onLicenses:this._onLicenses}},computed:{IS_STANDALONE_WINDOW:function(){return new RegExp("module="+this.get("module")).test(location.search)}},oninit(){this.on("Titlebar.minimizeWindow",(()=>{a.minimize()})),this.on("Titlebar.closeWindow",(()=>{a.close()})),this.on("*.overlayClose",(()=>{this.set("showLicenses",!1)}))},_onSettings(){this.parent.fire("openSettings")},_onLicenses(){this.set("showLicenses",!0)}});class Ue{static isStandalonePamAllowed(){return this.get("avdef://config/Pam/StandaloneUiFeature").then((t=>parseInt(t))).catch((()=>0))}static get(t){return d.getValue(t)}}const He=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["g-align--center ",{t:2,x:{r:["isStandAlone"],s:'_0?"pam_unlock_standalone":""'}}]},f:[{t:7,e:"SvgIcon",a:{name:"pam-lock",cssCls:"pam_unlock__icon"}}," ",{t:4,f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.sync.page.enterAccountPassword.desc")'}}]}," ",{t:7,e:"p",a:{class:"p g-margin-top--10 g-margin-bottom--10"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.sync.page.enterAccountPassword.desc2")'}}]}],n:50,x:{r:["syncState.reason","syncState.lastRequest.reason"],s:'_0==="changed"||_1==="changed"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"pam_account_generic"},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.banner.syncStopped.desc")'}}]}]}],x:{r:["syncState.reason","syncState.lastRequest.reason"],s:'_0==="changed"||_1==="changed"'}}," ",{t:7,e:"form",a:{class:"pam_account_password_form"},f:[{t:4,f:[{t:8,r:"prefilled_email_partial"}],n:50,r:"email"},{t:4,n:51,f:[{t:8,r:"email_partial"}],r:"email"}," ",{t:8,r:"password_partial"}," ",{t:4,f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn -large ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"loginPasswordClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}],n:50,x:{r:["syncState.state"],s:'_0==="enterIDAPwd"'}},{t:4,n:51,f:[{t:7,e:"button",a:{type:"submit",disabled:[{t:2,r:"inProgress"}],class:["btn -large ",{t:2,x:{r:["inProgress"],s:'_0?"-loading":""'}}]},v:{click:"loginClick"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.login.btn.login")'}}]}],x:{r:["syncState.state"],s:'_0==="enterIDAPwd"'}}," ",{t:7,e:"GenericError",a:{show:[{t:2,r:"showGenericError"}]}}," ",{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"a",a:{class:"a",href:"https://id.avast.com/#recoverPassword"},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.lnk.forgotPassword")'}}]}]}]}]}," ",{t:4,f:[{t:7,e:"CaptchaModal",a:{cid:[{t:2,r:"solvingCaptcha.cid"}],url:[{t:2,r:"solvingCaptcha.url"}]}}],n:50,x:{r:["modalDialog"],s:'_0==="captcha"'}}," "],p:{email_partial:[{t:7,e:"div",a:{class:"form__row"},v:{click:{n:"clearInputErrors",a:"email"}},f:[{t:7,e:"Input",a:{id:"email",innerValue:[{t:2,r:"input.email"}],label:[{t:2,x:{r:["page","nls"],s:'_0==="createAccount"?_1("passwords.settings.sync.label.email"):_1("passwords.settings.sync.label.enterEmail")'}}],type:"text",message:[{t:2,r:"inputError.email.message"}],error:[{t:2,r:"inputError.email.error"}]}}]}],prefilled_email_partial:[{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"Input",a:{disabled:0,id:"email",innerValue:[{t:2,r:"email"}],label:"",type:"text"}}]}],password_partial:[{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:{n:"clearInputErrors",a:"password"}},f:[{t:7,e:"Input",a:{id:"password",innerValue:[{t:2,r:"input.password"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.sync.page.enterAccountPassword.inputPassword.label")'}}],type:"password",message:[{t:2,r:"inputError.password.message"}],error:[{t:2,r:"inputError.password.error"}]}}]}]}]}},css:".pam_unlock__icon {\n  font-size: 80px;\n  margin-bottom: 15px;\n}\n.pam_account_generic {\n  width: 400px;\n  margin: auto;\n}\n.pam_account_password_form {\n  width: 300px !important;\n  margin-top: 20px !important;\n}\n.pam_account_password_form .form__row {\n  min-height: 6rem !important;\n}\n",components:{ButtonRevealSecret:K,GenericError:Ee},data:()=>({inProgress:!1,input:{password:"",email:""},inputError:{password:{error:!1,message:""},email:{error:!1,message:""}}}),oninit(){this.observe("email",(t=>{this.update("input.email"),this.set("input.email",t)}),{init:!0}),this.observe("syncState",(e=>{e&&(this.set("inProgress",!1),"invalid"===e.reason?this.set({"inputError.password.error":!0,"inputError.password.message":t.localization.nls("passwords.settings.sync.modal.loginPassword.error.incorrectPassword")}):"error"===e.reason&&this.set("showGenericError",!0))}),{init:!0}),this.on("clearInputErrors",((t,e,s)=>{this._clearInputErrors(e,s)})),this.on("loginPasswordClick",(()=>{if(this._validateInput("password"),this.get("inputError.password.error"))return!1;this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"enterIDAPwd",data:{pwd:ht.dataCryptoEnabled?ht.encrypt(this.get("input.password")):this.get("input.password")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))})),this.on("loginClick",(()=>{if(this._validateInput("email"),this._validateInput("password"),this.get("inputError.email.error")||this.get("inputError.password.error"))return!1;this.set("inProgress",!0),n("app.pam.SynchronizationSetup",{request:"accountSetup",data:{create:!1,account:"Avast",email:ht.dataCryptoEnabled?ht.encrypt(this.get("input.email")):this.get("input.email"),pwd:ht.dataCryptoEnabled?ht.encrypt(this.get("input.password")):this.get("input.password")}}).catch((t=>{console.error("app.pam.SynchronizationSetup",JSON.stringify(t))}))}))},_validateInput(e){const s=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([a-zA-Z0-9]+(\.|\-))*([a-zA-Z0-9]+)\.)+[a-zA-Z]{2,}$/;switch(e){case"email":this._clearInputErrors(e),s.test(this.get("input.email"))||this.set({"inputError.email.error":!0,"inputError.email.message":t.localization.nls("passwords.settings.sync.modal.create.error.invalidEmail")});break;case"password":this._clearInputErrors(e),0===this.get("input.password").length&&this.set({"inputError.password.error":!0})}},_clearInputErrors(t,e=!0){this.set("showGenericError",!1),t&&(e?this.set("inputError."+t,{error:!1,message:""}):this.set("inputError."+t+".error",!1))}});const je=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{cssCls:"pam_detail_modal pam_sensitive_modal",scrollable:0,autoClose:0,title:[{t:3,x:{r:["masterPasswordSet","nls"],s:'_0?_1("passwords.settings.masterPassword.change.title"):_1("passwords.settings.masterPassword.create.title")'}}]},f:[{t:7,e:"div",a:{class:"modal pam_form"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.create.desc")'}}]}],n:50,x:{r:["masterPasswordSet"],s:"!_0"}}," ",{t:7,e:"form",a:{class:"pam_master_password_form",onsubmit:"return false"},f:[{t:4,f:[{t:7,e:"div",a:{class:"form__row g-margin-top--20 g-margin-bottom--20"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:{n:"clearInputErrors",a:"oldMasterPassword"}},f:[{t:7,e:"Input",a:{id:"oldMasterPassword",innerValue:[{t:2,r:"input.oldMasterPassword"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.current.label")'}}],type:"password",message:[{t:2,r:"inputError.oldMasterPassword.message"}],error:[{t:2,r:"inputError.oldMasterPassword.error"}]}}]}]}],n:50,r:"masterPasswordSet"}," ",{t:7,e:"div",a:{class:"form__row g-margin-top--20"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_password_tooltip_cont"},f:[{t:7,e:"div",a:{class:"tooltip pam_password_tooltip"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_password_tooltip_text_cont"},f:[{t:7,e:"Icon",a:{name:"tick-circle-small",cssCls:"color-ok -text"}}," ",{t:7,e:"div",a:{class:"color-ok -text text -tiny"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.strong.tooltip")'}}]}]}],n:50,x:{r:["passwordStrength"],s:"_0===3"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["passwordStrength"],s:"_0===4"},f:[{t:7,e:"div",a:{class:"pam_password_tooltip_text_cont"},f:[{t:7,e:"Icon",a:{name:"tick-circle-small",cssCls:"color-ok -text"}}," ",{t:7,e:"div",a:{class:"color-ok -text text -tiny"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.veryStrong.tooltip")'}}]}]}]},{t:4,n:50,x:{r:["passwordStrength"],s:"(!(_0===4))&&(_0===2)"},f:[" ",{t:7,e:"div",a:{class:"pam_password_tooltip_text_cont"},f:[{t:7,e:"Icon",a:{name:"info"}}," ",{t:7,e:"div",a:{class:"text -tiny"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.good.tooltip")'}}]}]}]},{t:4,n:50,x:{r:["passwordStrength"],s:"(!(_0===4))&&((!(_0===2))&&(_0<2))"},f:[" ",{t:7,e:"div",a:{class:"pam_password_tooltip_text_cont"},f:[{t:7,e:"Icon",a:{name:"info"}}," ",{t:7,e:"div",a:{class:"text -tiny"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.weak.tooltip")'}}]}]}]}],x:{r:["passwordStrength"],s:"_0===3"}}]}]}],n:50,x:{r:["passwordStrength","input.masterPassword.length","hidePasswordTooltip"],s:"_0>-1&&_1>0&&!_2"}}," ",{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:{n:"clearInputErrors",a:"masterPassword"}},f:[{t:7,e:"Input",a:{id:"masterPassword",innerValue:[{t:2,r:"input.masterPassword"}],label:[{t:3,x:{r:["masterPasswordSet","nls"],s:'_0?_1("passwords.settings.masterPassword.new.label"):_1("passwords.settings.masterPassword.create.btn")'}}],type:"password",message:[{t:2,r:"inputError.masterPassword.message"}],error:[{t:2,r:"inputError.masterPassword.error"}]},v:{blur:"hidePasswordTooltip",focus:"showPasswordTooltip"}}]}]}," ",{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"div",a:{class:"pam_settings_input_reveal_secret_cont"},v:{click:{n:"clearInputErrors",a:"masterPasswordConfirm"}},f:[{t:7,e:"Input",a:{id:"masterPasswordConfirm",innerValue:[{t:2,r:"input.masterPasswordConfirm"}],label:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.retype.label")'}}],type:"password",message:[{t:2,r:"inputError.masterPasswordConfirm.message"}],error:[{t:2,r:"inputError.masterPasswordConfirm.error"}]}}]}]}," ",{t:7,e:"div",a:{class:"pam_master_password_checkbox text -small g-margin-top--20"},f:[{t:7,e:"input",a:{id:"masterPasswordAcknowledge",class:"checkbox g-margin-right--10",type:"checkbox",checked:[{t:2,r:"input.masterPasswordAcknowledged"}]},v:{click:{n:"clearInputErrors",a:"masterPasswordAcknowledged"}}}," ",{t:7,e:"label",a:{class:["g-align--left ",{t:2,x:{r:["inputError.masterPasswordAcknowledged.error"],s:'_0?"color-critical -text":""'}}],for:"masterPasswordAcknowledge"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.acknowledgeCheckbox")'}}]}]}," ",{t:7,e:"div",a:{class:"g-align--center g-margin-top--20"},f:[{t:7,e:"kin-button",a:{size:"large","data-test":"saveMasterPassword"},v:{click:"saveMasterPassword"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.masterPassword.save.btn")'}}]}]}]}]}]}]},css:".pam_master_password_form .pam_master_password_checkbox {\n  display: flex;\n}\n.pam_master_password_form .pam_master_password_checkbox .input__label {\n  opacity: 1;\n  font-size: 15px;\n}\n.pam_master_password_form .pam_master_password_checkbox .input__label:not(.color-critical) {\n  color: rgba(255,255,255,0.7);\n}\n.pam_master_password_form .pam_master_password_checkbox .input__label:not(.color-critical) strong {\n  color: #fff;\n}\n.pam_master_password_form .pam_master_password_checkbox .checkbox {\n  flex-shrink: 0;\n}\n.pam_master_password_form .pam_password_tooltip_cont {\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n}\n.pam_master_password_form .pam_password_tooltip_cont .pam_password_tooltip {\n  position: absolute;\n  z-index: 9999;\n  margin-left: -10px;\n  width: 400px;\n  padding: 10px;\n}\n.pam_master_password_form .pam_password_tooltip_cont .pam_password_tooltip .pam_password_tooltip_text_cont {\n  display: flex;\n  text-align: left;\n}\n.pam_master_password_form .pam_password_tooltip_cont .pam_password_tooltip .pam_password_tooltip_text_cont .icon {\n  margin-right: 10px;\n}\n.pam_master_password_form .pam_password_tooltip_cont .pam_password_tooltip::after {\n  content: '';\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -7px;\n  border-width: 7px;\n  border-style: solid;\n  border-color: rgba(20,28,45,0.9) transparent transparent transparent;\n}\n",components:{ButtonRevealSecret:K,SensitiveInput:gt},data:function(){return{input:{masterPassword:"",masterPasswordConfirm:"",oldMasterPassword:"",masterPasswordAcknowledged:!1},inputError:{masterPassword:{error:!1,message:""},masterPasswordConfirm:{error:!1,message:""},oldMasterPassword:{error:!1,message:""},masterPasswordAcknowledged:{error:!1,message:""}},passwordStrength:-1,hidePasswordTooltip:!0,masterPasswordSet:void 0}},oninit:function(){this.typingPasswordTimeout=void 0,this.observe("input.masterPassword",(t=>{this.set("hidePasswordTooltip",!1),this._setPAMPasswordStrength(t),t=""}),{init:!1}),this.on("close",(()=>{this.teardown()})),this.on("Modal.close",(()=>{this.fire("close")})),this.on("clearInputErrors",((t,e)=>{this._clearInputErrors(e)})),this.on("hidePasswordTooltip",(()=>{this.set("hidePasswordTooltip",!0)})),this.on("showPasswordTooltip",(()=>{this.set("hidePasswordTooltip",!1)})),this.on("saveMasterPassword",(()=>{this._clearInputErrors();const e=this.get("masterPasswordSet");let s=this.get("input.masterPassword"),r=this.get("input.masterPasswordConfirm"),a=this.get("input.oldMasterPassword");const o=this.get("input.masterPasswordAcknowledged");let l=0;if(e&&0===a.length&&(l+=1,this.set("inputError.oldMasterPassword",{error:!0,message:""})),0===s.length?(l+=1,this.set("inputError.masterPassword",{error:!0,message:""})):s!==r&&(l+=1,this.set("inputError.masterPassword",{error:!0,message:""}),this.set("inputError.masterPasswordConfirm",{error:!0,message:t.localization.nls("passwords.settings.masterPassword.error.passwordsDontMatch")})),o||(l+=1,this.set("inputError.masterPasswordAcknowledged",{error:!0})),l>0)return!1;e?(this._clearInputErrors(),n("app.pam.ChangeDevicePassword",{oldPassword:ht.masterPasswordCryptoEnabled?ht.encrypt(a):a,newPassword:ht.masterPasswordCryptoEnabled?ht.encrypt(s):s}).then((()=>{s="",a="",i.emit("sensitiveModal.masterPasswordModal.masterPasswordChanged"),this.fire("close")})).catch((e=>{console.error("app.pam.ChangeDevicePassword",JSON.stringify(e)),this.set("inputError.oldMasterPassword",{error:!0,message:t.localization.nls("passwords.settings.masterPassword.error.incorrect")})}))):(this._clearInputErrors(),n("app.pam.CreateMasterPasswordAndRemoveSystemLogin",{masterPassword:ht.masterPasswordCryptoEnabled?ht.encrypt(s):s}).then((()=>{s="",r="",i.emit("sensitiveModal.masterPasswordModal.masterPasswordCreated"),this.fire("close")})).catch((t=>{console.error("app.pam.CreateMasterPasswordAndRemoveSystemLogin",JSON.stringify(t))})))}))},_clearInputErrors(t){t?this.set("inputError."+t,{error:!1,message:""}):this.set("inputError",{masterPassword:{error:!1,message:""},masterPasswordConfirm:{error:!1,message:""},oldMasterPassword:{error:!1,message:""},masterPasswordAcknowledged:{error:!1}})},_setPAMPasswordStrength(t){if(0===t.length)return this.set("passwordStrength",-1),this._clearTypingPasswordTimeout(),void(t="");n("app.pam.GetPAMPasswordStrength",{password:ht.masterPasswordCryptoEnabled?ht.encrypt(t):t}).then((t=>{t.secureScore<=2?(this._clearTypingPasswordTimeout(),this.typingPasswordTimeout=setTimeout((()=>{this.set("passwordStrength",t.secureScore)}),800)):(this._clearTypingPasswordTimeout(),this.set("passwordStrength",t.secureScore))})),t=""},_clearTypingPasswordTimeout(){this.typingPasswordTimeout&&(clearTimeout(this.typingPasswordTimeout),this.typingPasswordTimeout=void 0)},onteardown(){this._clearTypingPasswordTimeout(),this.set("input.oldMasterPassword",""),this.set("input.masterPassword",""),this.set("input.masterPasswordConfirm",""),i.emit("sensitiveModal.initPamCrypto"),setTimeout((()=>{window.app.asyncCall("window.close",(t=>{}),[])}),0)}});var Je=-1!=window.location.href.indexOf("#pam")||window.location.href.includes("sensitiveModal");function Qe(){n("app.pam.OnClosingLockScreen")}console.log("isMainWnd: ",Je);const Ke=t.extend({template:{v:3,t:[{t:7,e:"Modal",a:{cssCls:"pam_detail_modal pam_sensitive_modal",scrollable:0,autoClose:0,title:""},f:[{t:7,e:"div",a:{class:"modal pam_form"},f:[{t:7,e:"div",a:{class:["g-align--center ",{t:2,x:{r:["isStandAlone"],s:'_0?"pam_unlock_standalone":""'}}]},f:[{t:7,e:"div",m:[{t:4,f:['class="animated shakeLess"'],n:50,r:"shake"}],f:[{t:7,e:"SvgIcon",a:{name:"pam-lock",cssCls:"pam_unlock__icon"}}," ",{t:7,e:"h2",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.enterMasterPassword")'}}]}," ",{t:7,e:"br"}," ",{t:7,e:"form",a:{class:"pam_unlock"},f:[{t:7,e:"input",o:"eventHandler",a:{class:["input ",{t:4,f:["-error"],n:50,x:{r:["error"],s:'_0==="wrongPassword"||_0==="forgotPassword"'}}," pam_unlock__field"],type:"password",name:"password",value:[{t:2,r:"password"}],placeholder:[{t:3,x:{r:["nls"],s:'_0("passwords.enterYourPassword")'}}],"aria-label":[{t:3,x:{r:["nls"],s:'_0("passwords.enterYourPassword")'}}],autofocus:"true"}}," ",{t:7,e:"p",a:{class:"pam_error text -small color-danger -text"}}," ",{t:7,e:"br"}," ",{t:7,e:"button",a:{class:"btn -large",type:"submit"},v:{click:"unlock"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.unlock")'}}]}," ",{t:7,e:"br"}]}]}]}]}]}]},css:B,data:()=>({password:"",error:"",shake:!1}),oninit(){s.view("pam/"+(Je?"Unlock":"UnlockDialog"));var t=window.location.href.match(/&attempt=([0-9]+)/);t&&parseInt(t[1])>1&&this.set("error","wrongPassword"),this.on("unlock",(t=>{var e=this.get("password");e.length>0?this.unlock(e).then((t=>{"success"===t?(e="",s.event("Passwords-Unlock","Success",""),this.setError(""),this.fire("success"),i.emit("sensitiveModal.unlockCefDialog.success"),this.fire("close")):(s.event("Passwords-Unlock","Error",t),this.setError(t))})):this.setError("emptyPassword"),t.original.preventDefault()})),this.on("Modal.close",(()=>{this.fire("close")})),this.on("close",(()=>{this.teardown()})),Je&&(n("app.pam.OnOpeningLockScreen").catch((t=>{console.error("OnOpeningLockScreen",t)})),window.addEventListener("beforeunload",Qe))},onteardown(){Je&&(window.removeEventListener("beforeunload",Qe),Qe()),this.set("password",""),i.emit("sensitiveModal.initPamCrypto"),setTimeout((()=>{window.app.asyncCall("window.close",(t=>{}),[])}),0)},unlock:t=>n("app.pam.EnterDevicePassword",ht.masterPasswordCryptoEnabled?ht.encrypt(t):t).then((e=>(console.log("EnterDevicePassword",e),!0===e.login_successfull?(t="","success"):"wrongPassword"))).catch((t=>(console.error("EnterDevicePassword error:",t),"serviceError"))),setError(t){var e=[this.set("error",t)];return t&&e.push(this.set("shake",!0)),setTimeout((()=>{this.set("shake",!1)}),800),Promise.all(e)}}),Ze=/module=pam/.test(location.search),qe=t.extend({router:new e,template:{v:3,t:[{t:7,e:"Standalone",a:{module:"pam",product:"passwords",title:[{t:3,x:{r:["nls"],s:'_0("global.product.AVAST_PASSWORDS")'}}],minimizeIconTitle:[{t:3,x:{r:["nls"],s:'_0("global.minimize")'}}],closeIconTitle:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]},f:[{t:7,e:"div",a:{class:"nui_page pam"},f:[{t:4,f:[{t:7,e:"Header",a:{section:"privacy",customBreadcrumbs:0,moduleId:"passwords",gradient:"false",cssCls:["pam_header ",{t:2,x:{r:["page"],s:'_0==="passwordsList"?"pam_top-menu-header":""'}}],innerYield:0},f:[{t:7,e:"div",a:{class:"nui_header__buttons pam_lock"},f:[{t:4,f:[{t:7,e:"button",a:{class:"a"},v:{click:"lock"},f:[{t:7,e:"Icon",a:{name:"lock"}},{t:3,x:{r:["nls"],s:'_0("passwords.lock")'}}]}],n:50,x:{r:["page","hasSystemLogin"],s:'_0==="passwordsList"&&!_1'}}," ",{t:4,f:[{t:7,e:"button",a:{class:"a g-margin-left--5"},v:{click:"openSettings"},f:[{t:7,e:"Icon",a:{name:"settings"}},{t:3,x:{r:["nls"],s:'_0("passwords.settings")'}}]}],n:50,x:{r:["page"],s:'_0==="passwordsList"||_0==="unlockScreen"||_0==="systemLoginError"'}}]}]}],n:50,x:{r:["IS_STANDALONE_WINDOW","offerStandaloneUi"],s:"!_0&&!_1"}}," ",{t:4,f:[{t:7,e:"Settings",a:{page:[{t:2,r:"page"}]}}],n:50,r:"showSettings"}," ",{t:4,f:[{t:7,e:"OpenStandaloneUi"}],n:50,r:"offerStandaloneUi"},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="setMasterPassword"'},f:[{t:7,e:"MasterPasswordModal",a:{masterPasswordSet:[{t:2,r:"sensitiveModalParams.masterPasswordSet"}]}}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&(_0==="unlockCefDialog")'},f:[" ",{t:7,e:"UnlockCefDialog"}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&(_0==="passwordDetails"))'},f:[" ",{t:7,e:"Modal",a:{cssCls:"pam_detail_modal pam_sensitive_modal",scrollable:0,autoClose:0,title:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("passwords.addPassword")'}}],n:50,x:{r:["sensitiveModalParams.mode","CONST.MODES.PASSWORDADD"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sensitiveModalParams.mode","CONST.MODES.PASSWORDVIEW"],s:"_0===_1"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordDetail")'}}]},{t:4,n:50,x:{r:["CONST.MODES.PASSWORDVIEW","sensitiveModalParams.mode","CONST.MODES.PASSWORDEDIT"],s:"(!(_1===_0))&&(_1===_2)"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.editPassword")'}}]}],x:{r:["sensitiveModalParams.mode","CONST.MODES.PASSWORDADD"],s:"_0===_1"}}]},f:[{t:7,e:"PasswordDetails",a:{mode:[{t:2,r:"sensitiveModalParams.mode"}],passwordId:[{t:2,r:"sensitiveModalParams.passwordId"}]}}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&(_0==="loading")))'},f:[" ",{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"Loading",a:{title:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&((!(_0==="loading"))&&(_0==="onboarding"))))'},f:[" ",{t:7,e:"Onboarding"}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&((!(_0==="loading"))&&((!(_0==="onboarding"))&&(_0==="unlockScreen")))))'},f:[" ",{t:7,e:"div",a:{class:"nui_page__scroll"},f:[{t:7,e:"Unlock",a:{isStandAlone:[{t:2,r:"IS_STANDALONE_WINDOW"}]}}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&((!(_0==="loading"))&&((!(_0==="onboarding"))&&((!(_0==="unlockScreen"))&&(_0==="enterAccountScreen"))))))'},f:[" ",{t:7,e:"div",a:{class:"nui_page__scroll"},f:[{t:7,e:"EnterAccountScreen",a:{syncState:[{t:2,r:"syncState"}],reason:[{t:2,r:"enterAccountScreen.reason"}],email:[{t:2,r:"email"}],isStandAlone:[{t:2,r:"IS_STANDALONE_WINDOW"},"/"]},f:[]}]}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&((!(_0==="loading"))&&((!(_0==="onboarding"))&&((!(_0==="unlockScreen"))&&((!(_0==="enterAccountScreen"))&&(_0==="passwordsList")))))))'},f:[" ",{t:7,e:"List",a:{isStandAlone:[{t:2,r:"IS_STANDALONE_WINDOW"}],page:[{t:2,r:"page"}],hasSystemLogin:[{t:2,r:"hasSystemLogin"}]}}]},{t:4,n:50,x:{r:["page"],s:'(!(_0==="setMasterPassword"))&&((!(_0==="unlockCefDialog"))&&((!(_0==="passwordDetails"))&&((!(_0==="loading"))&&((!(_0==="onboarding"))&&((!(_0==="unlockScreen"))&&((!(_0==="enterAccountScreen"))&&((!(_0==="passwordsList"))&&(_0==="systemLoginError"))))))))'},f:[" ",{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"div",a:{style:"font-size: 150px; margin: 50px; color:#f5203e;"},f:[{t:7,e:"Icon",a:{name:"exclamation-sign"}}]}," ",{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("global.error")'}}," 0x8009000BU"]}]}]}]}],r:"offerStandaloneUi"}]}," ",{t:4,f:[{t:7,e:"CaptchaModal",a:{syncState:[{t:2,r:"syncState"}],openedFromMainUi:[{t:2,r:"solvingCaptcha.openedFromMainUi"}],cid:[{t:2,r:"solvingCaptcha.cid"}],url:[{t:2,r:"solvingCaptcha.url"}]}}],n:50,r:"solvingCaptcha.show"},{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("passwords.settings.sync.modal.allDone.title")'}}]},f:[{t:7,e:"Icon",a:{name:"tick-circle",cssCls:"g-font--120 g-margin-top--20 g-margin-bottom--20 color-ok -text"}}," ",{t:7,e:"div",a:{class:"modal__actions g-margin-top--20"},f:[{t:7,e:"button",a:{class:"btn"},v:{click:"hideSyncEnabledModal"},f:[{t:3,x:{r:["nls"],s:'_0("global.done")'}}]}]}]}],n:50,r:"showSyncEnabledModal"}]}]},css:g,components:{Onboarding:M,Unlock:L,List:ve,Settings:Ve,Standalone:Fe,OpenStandaloneUi:T,EnterAccountScreen:He,CaptchaModal:Be,MasterPasswordModal:je,PasswordDetails:mt,UnlockCefDialog:Ke},data:()=>({IS_STANDALONE_WINDOW:Ze,hasSystemLogin:!1,hasDevicePasswordLogin:!0,showInfo:!1,vaultState:null,showSettings:!1,offerStandaloneUi:!1,syncState:void 0,showSyncStopped:!1,showEnterAccountScreen:!1,solvingCaptcha:{show:!1,cid:void 0,url:void 0,openedFromMainUi:void 0},email:void 0,showSyncEnabledModal:!1,sensitiveModalParams:{}}),computed:{page:function(){const t=this.get("vaultState");if(!t)return"loading";const e=this.get("hasSystemLogin"),s=this.get("hasDevicePasswordLogin"),n=this.get("showEnterAccountScreen");if(window.location.href.includes("sensitiveModal")){const t=new URLSearchParams(window.location.href),e=JSON.parse(window.atob(t.get("sensitiveModalParams")));return this.set("sensitiveModalParams",e),t.get("sensitiveModal")}switch(t){case R.VAULTSTATES.UNKNOWN:case R.VAULTSTATES.NO_VAULT:return"onboarding";case R.VAULTSTATES.VAULT_EXISTS:return e&&!s?"systemLoginError":"unlockScreen";default:return n?"enterAccountScreen":"passwordsList"}}},oninit(){this._initRouter(),ht.initPamCrypto(),Ue.isStandalonePamAllowed().then((t=>{!Ze&&t?this.set("offerStandaloneUi",!0):this._init()}))},_init(){this._callSync(),this.updatePage(),this.on("Settings.overlayClose",(()=>{this.set("showSettings",!1),this.updatePage()})),this.on("SyncBackup.syncEnabled",(()=>{this.set("showSettings",!1),this.set("showSyncEnabledModal",!0)})),this.on("hideSyncEnabledModal",(()=>{this.set("showSyncEnabledModal",!1)})),this.on("openSettings",(()=>{this.set("showSettings",!0)})),this.on("Onboarding.done",(t=>{console.log("Onboarding.done",t),this.updatePage()})),this.on("Unlock.success",(()=>{this.updatePage()})),r.on("sensitiveModal.unlockCefDialog.success",(()=>{this.updatePage()})),r.on("sensitiveModal.initPamCrypto",(()=>{setTimeout((()=>{ht.initPamCrypto()}),100)})),this.vaultLockedStatusOff=r.on("app.pam.onStatusChanged.vaultLocked",(()=>{"onboarding"!==this.get("page")&&this.updatePage()})),this.vaultDeletedStatusOff=r.on("pam.onStatusChanged.vaultDeleted",(()=>{this.updatePage()})),this.syncStatusChangedOff=r.on("app.pam.onSyncSetup.statusChanged",(t=>{console.debug("Sync state changed event",JSON.stringify(t)),this.set("syncState",t);const e=t=>t&&("enterIDAPwd"===t.state||"accountSetup"===t.state)&&("changed"===t.reason||["none","error","invalid"].includes(t.reason)&&!this._isSettingsCategoryOpened("SyncBackup")),s="solveCaptcha"===t.state&&e(t.lastRequest),n=e(t),r=t=>t&&("enterIDAPwd"===t.state||"accountSetup"===t.state)&&("afterUpdate"===t.reason||"prove"===t.reason),a="solveCaptcha"===t.state&&r(t.lastRequest),o=r(t);"solveCaptcha"===t.state&&!this._isSettingsCategoryOpened("SyncBackup")?this.set("solvingCaptcha",{show:!0,cid:t.data.cid,url:t.data.url,openedFromMainUi:!0}):this.set("solvingCaptcha",{show:!1,cid:void 0,url:void 0,openedFromMainUi:void 0}),o||a?this._initAccountInfo().then((()=>{this.set("showSyncStopped",!0)})):this.set("showSyncStopped",!1),n||s?(this.set("showSettings",!1),this.set("loading",!0),this._initAccountInfo().then((()=>{this.set("showEnterAccountScreen",!0),this.set("loading",!1)}))):this.set("showEnterAccountScreen",!1)})),this.on("List.showLoginModal",(()=>{this._openSyncBackupModal("login","LoginModal",{page:"loginAfterUpdateFromMainUi",email:this.get("email")})})),this.on("CaptchaModal.captchaClosed",(()=>{this.set("solvingCaptcha",{show:!1,cid:void 0,url:void 0,openedFromMainUi:void 0})})),this.on("lock",(()=>{n("app.pam.LockPAMVault").then((t=>{m.vault.lockedManually(),console.log("LockPAMVault",t)})).catch((t=>{console.error("LockPAMVault",t)}))})),this.updateRouter()},_initRouter(){if(Ze){const t=this.updateRouter.bind(this);window.addEventListener("hashchange",t),this.offHashChange=window.removeEventListener.bind(window,"hashchange",t),this.router.on("/:level1",(t=>{"pam"===t.level1&&this.router.emit("/"+t.level2)})),this.router.on("/:level1/:level2",(t=>{"pam"===t.level1&&this.router.emit("/"+t.level2)})),this.router.on("/:level1/:level2/:level3",(t=>{"pam"===t.level1&&this.router.emit("/"+t.level2+"/"+t.level3)}))}this.router.on("/",(()=>{})),this.router.on("passwordGuardian",this._showPasswordGuardian.bind(this)),this.router.on("passwordGuardian/:id",this._showPasswordGuardian.bind(this)),this.router.on("restoreIdentity/*",(t=>{this._restoreIdentity({backupString:t.wildcard})})),this.router.on("setupAirbond",this._setupAirbond.bind(this)),this.router.on("settings/:category",this._openSettingsCategory.bind(this)),this.router.on("settings",this._openSettings.bind(this))},_initAccountInfo(){return n("app.pam.GetSyncAccountInfo").then((t=>{t&&t.primaryEmail&&this.set("email",t.primaryEmail)})).catch((t=>{console.error("app.pam.GetSyncAccountInfo",JSON.stringify(t))}))},_setupAirbond(){location.hash="pam",this.set("showSettings",!0);const t=this.findComponent("Settings");setTimeout((()=>{t.set("modalDialog","airbond")}),400)},_openSettings(){location.hash="pam",this.set("showSettings",!0)},_openSettingsCategory(t){location.hash="pam",this.set("showSettings",!0);this.findComponent("Settings").setCategory(t.category)},_restoreIdentity(t){location.hash="pam",this._openSyncBackupModal("restoreIdentity","RestoreIdentity",{backupString:t.backupString})},_isSettingsCategoryOpened(t){const e=this.findComponent("Settings");return e&&e.findComponent(t)},_openSyncBackupModal(t,e,s){this.set("showSettings",!0);this.findComponent("Settings").setCategory("syncBackup");const n=s=>{const n=this.findComponent("SyncBackup");setTimeout((()=>{n.set("modalDialog",t);this.findComponent(e).set(s)}),400)};this.findComponent("SyncBackup")?n(s):this.on("SyncBackup.render",(()=>{this.off("SyncBackup.render"),n(s)}))},_showPasswordGuardian(t){location.hash="pam";const e=t=>{const e=this.findComponent("List");let s;"accounts"===e.get("subPage")?s=this.findComponent("Accounts"):(s=this.findComponent("PasswordGuardian"),e.set("subPage","passwordGuardian")),s&&t.id?s.showPasswordDetail(t.id):e.set("subPage","passwordGuardian")};this.findComponent("List")?e(t):this.on("List.loaded",(()=>{this.off("List.loaded"),e(t)}))},_callSync(){console.debug("_callSync index.js"),n("app.pam.Synchronize")},updateLoginMethods(){n("app.pam.GetLoginMethods").then((t=>{this.set("hasSystemLogin",t.hasSystemLogin),this.set("hasDevicePasswordLogin",t.hasDevicePasswordLogin)})).catch((t=>console.error("GetLoginMethods",t)))},onteardown(){this.vaultLockedStatusOff&&this.vaultLockedStatusOff(),this.vaultDeletedStatusOff&&this.vaultDeletedStatusOff(),this.offHashChange&&this.offHashChange(),this.syncStatusChangedOff&&this.syncStatusChangedOff()},updateRouter(){this.router.emit(window.location.hash)},updatePage(){this.updateLoginMethods(),n("app.pam.GetPAMVaultState").then((t=>{this.set("vaultState",t),console.log("getPAMVaultState",t)})).catch((t=>{console.error("GetPAMVaultState",t)}))}}),Ye=t.extend({template:{v:3,t:[{t:7,e:"header",a:{id:"nui_titlebar",class:"nui_titlebar nui_caption",style:"border-bottom: 0px;"},f:[{t:7,e:"h1",a:{class:"nui_logo"},f:[{t:7,e:"span",a:{class:"logo -white -width-70"}}]}," ",{t:7,e:"div",a:{class:"nui_controls"},f:[{t:7,e:"button",v:{click:"closeDlg"},a:{class:"nui_controls__item -close -win nui_caption_client",title:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]},f:[{t:7,e:"Icon",a:{name:"titlebar-close"}}]}]}]}," ",{t:7,e:"div",a:{style:"padding-top:44px; visibility: hidden"}}," ",{t:7,e:"Unlock"}]},components:{Unlock:L},data:()=>({windowWidth:400,windowHeight:355}),oninit(){r.on("app.pam.onStatusChanged.vaultLocked",(t=>{console.log("onStatusChanged.vaultLocked",t),t||a.close()})),this.on("Unlock.success",(()=>{a.close()})),this.on("Unlock.airbondIntro",(()=>{a.close()})),this.on("Unlock.airbondSetup",(()=>{a.close()})),this.on("closeDlg",this.closeDialog.bind(this,{keyCode:27})),window.addEventListener("keyup",this.closeDialog)},onteardown(){window.removeEventListener("keyup",this.closeDialog)},closeDialog(t){27==t.keyCode&&(s.event("Passwords-Unlock","Cancel","Dismiss"),a.close())}}),Xe={toasterView:!0,toasterClose:!0},$e=t.extend({template:{v:3,t:[{t:7,e:"Toaster",a:{loading:[{t:2,r:"loading"}],icon:["icon-s-programs-",{t:2,r:"browser"}],iconSize:"64",theme:0,skin:"white",customContent:0,autoResize:"true",windowHeight:[{t:2,r:"windowHeight"}],title:[{t:3,x:{r:["nls","browser"],s:'_0("passwords.extensionActivationToaster.caption."+_1)'}}],text:[{t:3,x:{r:["nls"],s:'_0("passwords.extensionActivationToaster.description")'}}],burgerTracker:[{t:2,r:"burgerTracker"}]},f:[{t:7,e:"div",a:{class:"toaster__content"},f:[{t:7,e:"button",a:{class:"btn toaster__btn -block",type:"button"},v:{click:"activateExtension"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.extensionActivationToaster.activateButton")'}}]}," ",{t:4,f:[{t:7,e:"button",a:{class:"a g-margin-top--5 span -small -secondary"},v:{click:"disableToaster"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.extensionActivationToaster.disable")'}}]}],n:50,x:{r:["displayCount"],s:"_0>0"}},{t:4,n:51,f:[{t:7,e:"br"}],x:{r:["displayCount"],s:"_0>0"}}]}]}]},data:()=>({browser:"chrome",browserPath:null,displayCount:"0",windowWidth:360,burgerToasterTracker:Xe}),asyncLoad:!0,oninit(){var t=this.parseOptions();for(var e in this.on("Toaster.close",(function(){a.close()})),t)this.set(e,t[e]);this.on("activateExtension",(()=>{n("av.command","install_pam_plugin(browser="+this.get("browser")+(this.get("browserPath")?",path="+this.get("browserPath"):"")+",cn=App%20extension%20install,cs=Toaster)").catch((t=>console.error("install_pam_plugin",t))),s.event("Passwords-Setup","Install button - "+this.get("browser")),o.toaster.click({label:"Install"+this.get("browser")}),a.close()})),this.on("disableToaster",(()=>{n("app.pam.SetFlagDisablingActivationExtensionToaster",{browser:this.get("browser"),flag:!0}).catch((t=>{console.error("app.pam.SetFlagDisablingActivationExtensionToaster",t)})),s.event("Passwords-Setup","Dont show again button",this.get("browser")),o.toaster.click({label:"Dont show again - "+this.get("browser")}),a.close()})),this.get("browser")?(this.set("loading",!1),this.ready()):console.error("browser not loaded")},parseOptions(){var t=["module","view"];if(!window.location.search)return{};var e=window.location.search.substr(1).split("&"),s={};return e.forEach((e=>{var n=e.split("=");-1==t.indexOf(n[0])&&(s[n[0]]=n.length>1?n[1]:null)})),this.validateOptions(s)},validateOptions(t){var e=["chrome","firefox"];return t.browser&&-1!=e.indexOf(t.browser)||(t.browser=e[0]),void 0===t.displayCount&&(t.displayCount=1),t}});const ts=t.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"nui_page__scroll -actions nui_page__step"},t1:{n:"animatecss",a:"fadeIn"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_flex pam_-check"},f:[{t:7,e:"h2",a:{class:"h2 -margins g-align--center"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.title")'}}]}," ",{t:7,e:"Screen",f:[{t:7,e:"div",a:{class:"pam_issues"},f:[{t:7,e:"div",a:{class:"pam_issues__key pam_flex_center"},f:[{t:4,f:[{t:7,e:"div",a:{class:"pam_issues__number pam_flex_center"},f:[{t:2,r:"numberOfPasswordsWarning"}]}],n:50,r:"numberOfPasswordsWarning"}," ",{t:7,e:"svg",a:{width:"35",height:"34",viewBox:"0 0 35 34",version:"1.1"},f:[{t:7,e:"g",a:{style:"fill-rule:evenodd;fill:none"},f:[{t:7,e:"g",a:{fill:"#FFF"},f:[{t:7,e:"path",a:{d:"M34 33.3C33.8 33.5 33.6 33.6 33.3 33.6L27.9 33.6 27.4 33.1 27.4 29.4 23.7 29.4 23.2 28.9 23.2 25.2 19.5 25.2 19 24.7 16.9 22.6 16.6 22.2C15.2 22.8 13.7 23.1 12.2 23.1 5.8 23.1 0.7 17.9 0.7 11.5 0.7 5.2 5.8 0 12.2 0 18.6 0 23.7 5.2 23.7 11.5 23.7 12.8 23.5 14.1 23.1 15.3L22.8 15.8 34.2 27.3C34.2 27.3 34.2 31.4 34.2 32.7 34.2 32.9 34.1 33.1 34 33.3 34 33.3 34 33.3 34 33.3L34 33.3ZM8 4.2C9.7 4.2 11.1 5.6 11.1 7.3 11.1 9.1 9.7 10.5 8 10.5 6.3 10.5 4.8 9.1 4.8 7.3 4.8 5.6 6.3 4.2 8 4.2L8 4.2Z"}}]}]}]}]}," ",{t:3,x:{r:["nls","numberOfVulnerablePasswords"],s:'_0("smartscan.scanPasswords.message",_1)'}}]}," ",{t:7,e:"div",a:{class:"p pam_issues__promo"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.withSetup.description")'}}],n:50,r:"hasPasswordsSetup"},{t:4,n:51,f:[{t:7,e:"h3",f:[{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.noSetup.title")'}}]}," ",{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.noSetup.description")'}}],r:"hasPasswordsSetup"}]}]}]}],n:50,x:{r:["page"],s:'_0==="Result"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"pam_smartscan pam_flex"},f:[{t:4,f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.setupTitle",1,2)'}}]}," ",{t:7,e:"InstallBrowsersExtensions",a:{smartscan:"true"}}],n:50,x:{r:["page"],s:'_0==="InstallBrowsersExtensions"'}}," ",{t:4,f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls","skipExtension"],s:'_0("passwords.setupTitle",2-_1,2-_1)'}}]}," ",{t:7,e:"ImportBrowsersPasswords",a:{allowSkip:"false"}}],n:50,x:{r:["page"],s:'_0==="ImportBrowsersPasswords"'}}," ",{t:4,f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["nls","skipExtension"],s:'_0("passwords.setupTitle",2-_1,2-_1)'}}]}," ",{t:7,e:"h3",a:{class:"h2 pam_title"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.onboardingFinish.desc")'}}]}," ",{t:7,e:"div",a:{class:"pam_navigation_hint"},f:[{t:7,e:"div",a:{class:"pam_navigation_hint__item"},f:[{t:7,e:"i",a:{class:"logo -ameba",style:"height: 64px; width: 64px"}}," ",{t:3,x:{r:["nls"],s:'_0("global.av")'}}]}," ",{t:7,e:"Icon",a:{name:"arrow-more",cssCls:"pam_navigation__arrow"}}," ",{t:7,e:"div",a:{class:"pam_navigation_hint__item"},f:[{t:7,e:"i",a:{class:"icon -privacy nui_menu__icon_circle color-brand-lila -bg"}}," ",{t:3,x:{r:["nls"],s:'_0("privacy")'}}]}," ",{t:7,e:"Icon",a:{name:"arrow-more",cssCls:"pam_navigation__arrow"}}," ",{t:7,e:"div",a:{class:"pam_navigation_hint__item"},f:[{t:7,e:"i",a:{class:"icon -passwords nui_menu__icon_circle color-brand-lila -bg"}}," ",{t:3,x:{r:["nls"],s:'_0("passwords")'}}]}]}," ",{t:7,e:"div",a:{class:"pam_importedpasswords color-ok -text"},f:[{t:3,x:{r:["nls","numImportedPasswords"],s:'_0("passwords.onboardingFinish.importedPasswords",_1)'}}]}],n:50,x:{r:["page"],s:'_0==="Finish"'}}]}],x:{r:["page"],s:'_0==="Result"'}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"nui_actions"},f:[{t:4,f:[{t:4,f:[{t:7,e:"ApiButton",v:{domClick:"movePasswords"},a:{cssCls:"-large g-margin-right--10"},m:[{t:4,f:["disabled"],n:50,x:{r:["numberOfVulnerablePasswords"],s:"!_0"}}],f:[{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.withSetup.resolve")'}}]}],n:50,r:"hasPasswordsSetup"},{t:4,n:51,f:[{t:7,e:"ApiButton",a:{cssCls:"-large g-margin-right--10"},v:{domClick:"setupPasswords"},m:[{t:4,f:["disabled"],n:50,x:{r:["numberOfVulnerablePasswords"],s:"!_0"}}],f:[{t:3,x:{r:["nls"],s:'_0("smartscan.scanPasswords.noSetup.resolve")'}}]}],r:"hasPasswordsSetup"}," ",{t:7,e:"button",v:{click:"skip"},a:{class:"btn -large -secondary"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipThisStep")'}}]}],n:50,x:{r:["page"],s:'_0==="Result"'}}," ",{t:4,f:[{t:7,e:"button",a:{class:"btn -large",type:"button"},v:{click:"done"},f:[{t:3,x:{r:["nls"],s:'_0("global.continue")'}}]}],n:50,x:{r:["page"],s:'_0==="Finish"'}}]}],n:50,x:{r:["page"],s:'_0==="Result"||_0==="Finish"'}}]},css:g,data:()=>({page:"Result",hasPasswordsSetup:null,numberOfVulnerablePasswords:null,numberOfPasswordsWarning:null,skipExtension:0}),components:{ApiButton:f,InstallBrowsersExtensions:P,ImportBrowsersPasswords:D},oninit(){this.updatePasswordsSetupStatus(),this.updateNumberOfVulnerablePasswords(),this.showPageAfterGettingData(),s.view("SmartScan/Resolve/pam/Intro"),n("app.smartScan.SendBurgerEvent",{event:"1.1.15.10"}),m.onboarding.smartscan.viewIntro(),this.on("setupPasswords",(()=>n("app.pam.CreateVaultWithSystemLogin").then((()=>this.maybeInstallBrowserExtensionsPage())).catch((t=>console.error("app.pam.CreateVaultWithSystemLogin",t))))),this.on("InstallBrowsersExtensions.done",(()=>{this.fire("movePasswords")})),this.on("movePasswords",(()=>{this.set("page","ImportBrowsersPasswords"),s.view("SmartScan/Resolve/pam/ImportBrowsersPasswords")})),this.on("ImportBrowsersPasswords.done",(t=>{this.set("numImportedPasswords",t),this.set("page","Finish"),s.view("SmartScan/Resolve/pam/Finish")})),this.on("done",(()=>{this.emit("next","done")})),this.on("skip",(()=>{console.log("skipped"),this.emit("next","")}))},maybeInstallBrowserExtensionsPage(){V("SmartScanOnboardingSkipExtensionFeature").then((t=>{if(!t)return this.set("page","InstallBrowsersExtensions"),void s.view("SmartScan/Resolve/pam/InstallBrowsersExtensions");this.set("skipExtension",1),this.fire("movePasswords")}))},showPageAfterGettingData(){this.observe("hasPasswordsSetup numberOfVulnerablePasswords",(()=>{var t=this.get("numberOfVulnerablePasswords");null!==t&&this.set("numberOfPasswordsWarning",t<100?t:"99+"),null!==this.get("hasPasswordsSetup")&&null!==t&&this.screenReady()}),{init:!1})},updatePasswordsSetupStatus(){return n("app.pam.GetPAMVaultState").then((t=>{t===R.VAULTSTATES.UNKNOWN||t===R.VAULTSTATES.NO_VAULT?this.set("hasPasswordsSetup",!1):this.set("hasPasswordsSetup",!0)})).catch((t=>{console.error("GetPAMVaultState",t)}))},updateNumberOfVulnerablePasswords(){return n("app.pam.GetBrowserPasswordCount").then((t=>{this.set("numberOfVulnerablePasswords",t.browserPasswordCount)})).catch((t=>{console.error("app.pam.GetBrowserPasswordCount",t)}))}});const es=t.extend({asyncLoad:!0,template:{v:3,t:[{t:7,e:"Toaster",a:{windowHeight:[{t:2,r:"windowHeight"}],windowWidth:[{t:2,r:"windowWidth"}],customContent:"true"},f:[{t:7,e:"div",a:{class:"toaster-content"},f:[{t:4,f:[{t:7,e:"div",a:{class:"password-changed-cont"},f:[{t:7,e:"div",f:[{t:7,e:"kin-icon",a:{name:"circle-ok",size:"64"}}," ",{t:7,e:"div",a:{class:"g-margin-top--20 g-margin-bottom--30 small -text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.guardianToaster.passwordChanged")'}}]}," ",{t:7,e:"button",a:{class:"btn -small"},v:{click:"confirmToaster"},f:[{t:3,x:{r:["nls"],s:'_0("global.ok")'}}]}]}]}],n:50,x:{r:["page"],s:'_0==="passwordChanged"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["page"],s:'_0==="passwordSteps"'},f:[{t:7,e:"div",a:{class:"guardian-icon-cont"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-guardian-full",size:"48",class:"guardian guardian-icon"}}]}," ",{t:7,e:"div",a:{class:"g-font--bold g-font--bold -small text"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.guardianToaster.title")'}}]}," ",{t:7,e:"div",a:{class:"pam_steps"},f:[{t:7,e:"div",a:{class:"pam_step_space"}}," ",{t:7,e:"div",a:{class:"pam_step"},f:[{t:3,x:{r:["nls","serviceName"],s:'_0("passwords.passwordGuardian.guardianToaster.step1",_1)'}}]}," ",{t:7,e:"div",a:{class:"pam_step_space"}}," ",{t:7,e:"div",a:{class:"pam_step"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.guardianToaster.step2")'}}]}," ",{t:7,e:"div",a:{class:"pam_step_space"}}," ",{t:7,e:"div",a:{class:"pam_step"},f:[{t:3,x:{r:["nls"],s:'_0("passwords.passwordGuardian.guardianToaster.step3")'}}]}," ",{t:7,e:"div",a:{class:"pam_step_space"}}]}]}],x:{r:["page"],s:'_0==="passwordChanged"'}}]}]}]},css:".toaster-content {\n  padding: 0 20px;\n}\n.toaster-content .password-changed-cont {\n  flex-direction: column;\n  display: flex;\n  justify-content: center;\n  height: 200px;\n}\n.toaster-content .guardian-icon-cont {\n  height: 50px;\n  width: 50px;\n  margin: 0 auto 15px;\n  position: relative;\n}\n.toaster-content .guardian-icon-cont .guardian-icon {\n  font-size: 50px;\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n.toaster-content .pam_steps {\n  display: flex;\n  list-style: none;\n  margin: 0 10px 0 30px;\n  counter-reset: li;\n  flex-direction: column;\n  justify-content: space-around;\n  height: 150px;\n}\n.toaster-content .pam_steps .pam_step_space {\n  flex-grow: 1;\n}\n.toaster-content .pam_steps .pam_step {\n  text-align: left;\n  padding: 6px 0 5px 10px;\n  position: relative;\n  flex-grow: 1;\n  font-size: 13px;\n}\n.toaster-content .pam_steps .pam_step:before {\n  content: counter(li);\n  counter-increment: li;\n  position: absolute;\n  left: -28px;\n  top: 3px;\n  background-color: rgba(0,0,0,0.2);\n  width: 25px;\n  height: 25px;\n  border-radius: 30px;\n  padding-top: 4px;\n  text-align: center;\n  font-size: 13px;\n  z-index: -1;\n}\n",data:function(){return{page:"passwordSteps",windowWidth:380,windowHeight:300,windowPlacement:"right_bottom",serviceName:void 0,isStandalonePamAllowed:!1}},oninit:function(){this.set("serviceName",this.get("params").serviceName);const t=parseInt(this.get("params").id);this.set("passwordId",t),this.listeners=[],this.listeners.push(r.on("app.pam.onPasswordChanged",(e=>{t===e.id&&(this._removeListeners(),this._setPage("passwordChanged"))}))),this.on("Toaster.close",(()=>a.close())),this.on("confirmToaster",(()=>this._openPasswords())),Ue.isStandalonePamAllowed().then((t=>{this.set("isStandalonePamAllowed",t),setTimeout(this.ready.bind(this),0)}))},_setPage(t){switch(t){case"passwordChanged":this.set("page","passwordChanged"),s.event("Toaster","PasswordChanged",""),this.closeDialogTimeout||(this.closeDialogTimeout=setTimeout((()=>{this._clearCloseDialogTimeout(),a.close()}),5e3));break;case"passwordSteps":this.set("page","passwordSteps")}},_openPasswords(){const t=this.get("passwordId")||"";this.get("isStandalonePamAllowed")?n("app.windowManager.ShowWindow",{url:"https://local.avast.com/MainWindow.html?module=pam#pam/passwordGuardian/"+t,id:"pam",type:"CEF",width:1010,height:674,setAsForegroundWnd:!0,title:"Avast Password Manager",iconSmall:215,iconBig:215,appUserModelRelaunchIcon:215,appUserModelID:"avast.pam"}):(n("app.windowManager.ShowMainWindow",{route:"pam/passwordGuardian/"+t}),a.close())},_removeListeners(){this.listeners.forEach((t=>{t()}))},onteardown(){this._removeListeners(),this._clearCloseDialogTimeout()},_clearCloseDialogTimeout(){this.closeDialogTimeout&&(clearTimeout(this.closeDialogTimeout),this.closeDialogTimeout=null)}});function ss(){}function ns(t){return t()}function rs(){return Object.create(null)}function as(t){t.forEach(ns)}function os(t){return"function"==typeof t}function is(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function ls(t,e,s,n){if(t){const r=cs(t,e,s,n);return t[0](r)}}function cs(t,e,s,n){return t[1]&&n?function(t,e){for(const s in e)t[s]=e[s];return t}(s.ctx.slice(),t[1](n(e))):s.ctx}function ds(t,e,s,n,r,a,o){const i=function(t,e,s,n){if(t[2]&&n){const r=t[2](n(s));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],s=Math.max(e.dirty.length,r.length);for(let n=0;n<s;n+=1)t[n]=e.dirty[n]|r[n];return t}return e.dirty|r}return e.dirty}(e,n,r,a);if(i){const r=cs(e,s,n,o);t.p(r,i)}}function ps(t,e){t.appendChild(e)}function us(t,e,s){t.insertBefore(e,s||null)}function hs(t){t.parentNode.removeChild(t)}function gs(t,e){for(let s=0;s<t.length;s+=1)t[s]&&t[s].d(e)}function ms(t){return document.createElement(t)}function fs(t){return document.createTextNode(t)}function _s(){return fs(" ")}function ws(){return fs("")}function vs(t,e,s,n){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s,n)}function ys(t,e,s){null==s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s)}function bs(t,e,s){e in t?t[e]=s:ys(t,e,s)}function xs(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ss(t,e,s,n){t.style.setProperty(e,s,n?"important":"")}function Cs(t,e,s){t.classList[s?"add":"remove"](e)}let Ps;function Es(t){Ps=t}function ks(){if(!Ps)throw new Error("Function called outside component initialization");return Ps}function As(){const t=ks();return(e,s)=>{const n=t.$$.callbacks[e];if(n){const r=function(t,e){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,!1,!1,e),s}(e,s);n.slice().forEach((e=>{e.call(t,r)}))}}}const Is=[],Ds=[],Os=[],Ms=[],Ts=Promise.resolve();let Bs=!1;function Ns(t){Os.push(t)}let Ls=!1;const Rs=new Set;function zs(){if(!Ls){Ls=!0;do{for(let t=0;t<Is.length;t+=1){const e=Is[t];Es(e),Gs(e.$$)}for(Es(null),Is.length=0;Ds.length;)Ds.pop()();for(let t=0;t<Os.length;t+=1){const e=Os[t];Rs.has(e)||(Rs.add(e),e())}Os.length=0}while(Is.length);for(;Ms.length;)Ms.pop()();Bs=!1,Ls=!1,Rs.clear()}}function Gs(t){if(null!==t.fragment){t.update(),as(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ns)}}const Ws=new Set;let Vs;function Fs(t,e){t&&t.i&&(Ws.delete(t),t.i(e))}function Us(t,e,s,n){if(t&&t.o){if(Ws.has(t))return;Ws.add(t),Vs.c.push((()=>{Ws.delete(t),n&&(s&&t.d(1),n())})),t.o(e)}}const Hs="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function js(t,e,s,n){const{fragment:r,on_mount:a,on_destroy:o,after_update:i}=t.$$;r&&r.m(e,s),n||Ns((()=>{const e=a.map(ns).filter(os);o?o.push(...e):as(e),t.$$.on_mount=[]})),i.forEach(Ns)}function Js(t,e){const s=t.$$;null!==s.fragment&&(as(s.on_destroy),s.fragment&&s.fragment.d(e),s.on_destroy=s.fragment=null,s.ctx=[])}function Qs(t,e){-1===t.$$.dirty[0]&&(Is.push(t),Bs||(Bs=!0,Ts.then(zs)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ks(t,e,s,n,r,a,o=[-1]){const i=Ps;Es(t);const l=t.$$={fragment:null,ctx:null,props:a,update:ss,not_equal:r,bound:rs(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i?i.$$.context:[]),callbacks:rs(),dirty:o,skip_bound:!1};let c=!1;if(l.ctx=s?s(t,e.props||{},((e,s,...n)=>{const a=n.length?n[0]:s;return l.ctx&&r(l.ctx[e],l.ctx[e]=a)&&(!l.skip_bound&&l.bound[e]&&l.bound[e](a),c&&Qs(t,e)),s})):[],l.update(),c=!0,as(l.before_update),l.fragment=!!n&&n(l.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);l.fragment&&l.fragment.l(t),t.forEach(hs)}else l.fragment&&l.fragment.c();e.intro&&Fs(t.$$.fragment),js(t,e.target,e.anchor,e.customElement),zs()}Es(i)}class Zs{$destroy(){Js(this,1),this.$destroy=ss}$on(t,e){const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(e),()=>{const t=s.indexOf(e);-1!==t&&s.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var qs=/^\s+|\s+$/g,Ys=/^[-+]0x[0-9a-f]+$/i,Xs=/^0b[01]+$/i,$s=/^0o[0-7]+$/i,tn=parseInt,en="object"==typeof k&&k&&k.Object===Object&&k,sn="object"==typeof self&&self&&self.Object===Object&&self,nn=en||sn||Function("return this")(),rn=Object.prototype.toString,an=Math.max,on=Math.min,ln=function(){return nn.Date.now()};function cn(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function dn(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==rn.call(t)}(t))return NaN;if(cn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=cn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(qs,"");var s=Xs.test(t);return s||$s.test(t)?tn(t.slice(2),s?2:8):Ys.test(t)?NaN:+t}var pn=function(t,e,s){var n,r,a,o,i,l,c=0,d=!1,p=!1,u=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var s=n,a=r;return n=r=void 0,c=e,o=t.apply(a,s)}function g(t){return c=t,i=setTimeout(f,e),d?h(t):o}function m(t){var s=t-l;return void 0===l||s>=e||s<0||p&&t-c>=a}function f(){var t=ln();if(m(t))return _(t);i=setTimeout(f,function(t){var s=e-(t-l);return p?on(s,a-(t-c)):s}(t))}function _(t){return i=void 0,u&&n?h(t):(n=r=void 0,o)}function w(){var t=ln(),s=m(t);if(n=arguments,r=this,l=t,s){if(void 0===i)return g(l);if(p)return i=setTimeout(f,e),h(l)}return void 0===i&&(i=setTimeout(f,e)),o}return e=dn(e)||0,cn(s)&&(d=!!s.leading,a=(p="maxWait"in s)?an(dn(s.maxWait)||0,e):a,u="trailing"in s?!!s.trailing:u),w.cancel=function(){void 0!==i&&clearTimeout(i),c=0,n=l=r=i=void 0},w.flush=function(){return void 0===i?o:_(ln())},w};const{window:un}=Hs;function hn(t,e,s){const n=t.slice();return n[49]=e[s],n}function gn(t,e,s){const n=t.slice();return n[52]=e[s],n}function mn(t,e,s){const n=t.slice();return n[55]=e[s],n[57]=s,n}const fn=t=>({}),_n=t=>({});function wn(t){let e,s,n,r,a,o,i,l,c,d,p,h,g,m,f,_,w,v,y,b,x,S,C,P=t[0].icon&&vn(t),E=t[0].title&&Sn(t);const k=t[30].default,A=ls(k,t,t[29],null);let I=t[0].text&&Cn(t),D=t[0].actionText&&Pn(t);const O=t[30]["custom-content"],M=ls(O,t,t[29],_n);let T=!t[3]&&t[0].actions&&t[0].actions.length&&En(t),B=t[3]&&Tn(t),N=t[0].dontShowAgain&&Nn(t),L=t[0].details&&t[0].details.length&&Ln(t),R=t[2]&&Gn(t),z=(t[11]||t[14]>1)&&$n(t);return{c(){e=ms("div"),s=ms("div"),n=ms("h1"),n.innerHTML='<span class="logo -white -width-70"></span>',r=_s(),a=ms("div"),o=ms("button"),i=_s(),l=ms("div"),P&&P.c(),c=_s(),E&&E.c(),d=_s(),A&&A.c(),p=_s(),I&&I.c(),h=_s(),D&&D.c(),g=_s(),M&&M.c(),m=_s(),T&&T.c(),f=_s(),B&&B.c(),_=_s(),N&&N.c(),w=_s(),L&&L.c(),v=_s(),R&&R.c(),y=_s(),z&&z.c(),ys(n,"class","nui_logo"),ys(o,"class","nui_controls__item -close nui_caption_client g-cursor--pointer"),ys(o,"title",u("global.closeModalWindow")),ys(a,"class","nui_controls"),ys(s,"class","nui_titlebar -toaster nui_caption"),ys(l,"class","sve_toaster__main"),Cs(l,"-auto-v-scroll",t[10]),ys(e,"class",b="sve_toaster -detection "+(t[0].color?"-"+t[0].color:"")),Ss(e,"width",t[1]+"px")},m(u,b){var k;us(u,e,b),ps(e,s),ps(s,n),ps(s,r),ps(s,a),ps(a,o),ps(e,i),ps(e,l),P&&P.m(l,null),ps(l,c),E&&E.m(l,null),ps(l,d),A&&A.m(l,null),ps(l,p),I&&I.m(l,null),ps(l,h),D&&D.m(l,null),ps(l,g),M&&M.m(l,null),ps(l,m),T&&T.m(l,null),ps(l,f),B&&B.m(l,null),ps(l,_),N&&N.m(l,null),ps(l,w),L&&L.m(l,null),ps(e,v),R&&R.m(e,null),ps(e,y),z&&z.m(e,null),x=!0,S||(C=[vs(o,"click",t[19]),(k=t[24].call(null,e),k&&os(k.destroy)?k.destroy:ss)],S=!0)},p(t,s){t[0].icon?P?P.p(t,s):(P=vn(t),P.c(),P.m(l,c)):P&&(P.d(1),P=null),t[0].title?E?E.p(t,s):(E=Sn(t),E.c(),E.m(l,d)):E&&(E.d(1),E=null),A&&A.p&&536870912&s[0]&&ds(A,k,t,t[29],s,null,null),t[0].text?I?I.p(t,s):(I=Cn(t),I.c(),I.m(l,h)):I&&(I.d(1),I=null),t[0].actionText?D?D.p(t,s):(D=Pn(t),D.c(),D.m(l,g)):D&&(D.d(1),D=null),M&&M.p&&536870912&s[0]&&ds(M,O,t,t[29],s,fn,_n),!t[3]&&t[0].actions&&t[0].actions.length?T?T.p(t,s):(T=En(t),T.c(),T.m(l,f)):T&&(T.d(1),T=null),t[3]?B?B.p(t,s):(B=Tn(t),B.c(),B.m(l,_)):B&&(B.d(1),B=null),t[0].dontShowAgain?N?N.p(t,s):(N=Nn(t),N.c(),N.m(l,w)):N&&(N.d(1),N=null),t[0].details&&t[0].details.length?L?L.p(t,s):(L=Ln(t),L.c(),L.m(l,null)):L&&(L.d(1),L=null),1024&s[0]&&Cs(l,"-auto-v-scroll",t[10]),t[2]?R?R.p(t,s):(R=Gn(t),R.c(),R.m(e,y)):R&&(R.d(1),R=null),t[11]||t[14]>1?z?z.p(t,s):(z=$n(t),z.c(),z.m(e,null)):z&&(z.d(1),z=null),(!x||1&s[0]&&b!==(b="sve_toaster -detection "+(t[0].color?"-"+t[0].color:"")))&&ys(e,"class",b),(!x||2&s[0])&&Ss(e,"width",t[1]+"px")},i(t){x||(Fs(A,t),Fs(M,t),x=!0)},o(t){Us(A,t),Us(M,t),x=!1},d(t){t&&hs(e),P&&P.d(),E&&E.d(),A&&A.d(t),I&&I.d(),D&&D.d(),M&&M.d(t),T&&T.d(),B&&B.d(),N&&N.d(),L&&L.d(),R&&R.d(),z&&z.d(),S=!1,as(C)}}}function vn(t){let e;function s(t,e){return t[0].icon.base64data?bn:yn}let n=s(t),r=n(t);return{c(){e=ms("div"),r.c(),ys(e,"class","sve_toaster__icon__container")},m(t,s){us(t,e,s),r.m(e,null)},p(t,a){n===(n=s(t))&&r?r.p(t,a):(r.d(1),r=n(t),r&&(r.c(),r.m(e,null)))},d(t){t&&hs(e),r.d()}}}function yn(t){let e,s,n,r,a,o,i,l=t[0].icon.color&&xn(t);return{c(){e=ms("kin-icon"),n=_s(),r=ms("kin-icon"),o=_s(),l&&l.c(),i=ws(),bs(e,"illustration","true"),bs(e,"name",s="ok"==t[0].icon.color?"i-detection-ok":"critical"==t[0].icon.color?"i-detection-critical":""),bs(e,"size","144"),bs(e,"width","264"),bs(e,"class","sve_toaster__icon__bg"),bs(r,"class","sve_toaster__icon"),bs(r,"name",a=t[0].icon.name),bs(r,"size","72")},m(t,s){us(t,e,s),us(t,n,s),us(t,r,s),us(t,o,s),l&&l.m(t,s),us(t,i,s)},p(t,n){1&n[0]&&s!==(s="ok"==t[0].icon.color?"i-detection-ok":"critical"==t[0].icon.color?"i-detection-critical":"")&&bs(e,"name",s),1&n[0]&&a!==(a=t[0].icon.name)&&bs(r,"name",a),t[0].icon.color?l?l.p(t,n):(l=xn(t),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},d(t){t&&hs(e),t&&hs(n),t&&hs(r),t&&hs(o),l&&l.d(t),t&&hs(i)}}}function bn(t){let e,s,n;return{c(){e=ms("img"),ys(e,"class","kin-img"),ys(e,"height","60"),e.src!==(s="data:image/png;base64,"+t[0].icon.base64data)&&ys(e,"src",s),ys(e,"alt",n=t[0].title)},m(t,s){us(t,e,s)},p(t,r){1&r[0]&&e.src!==(s="data:image/png;base64,"+t[0].icon.base64data)&&ys(e,"src",s),1&r[0]&&n!==(n=t[0].title)&&ys(e,"alt",n)},d(t){t&&hs(e)}}}function xn(t){let e,s;return{c(){e=ms("kin-icon"),bs(e,"class","sve_toaster__icon__status"),bs(e,"name",s="ok"==t[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured"),bs(e,"size","32")},m(t,s){us(t,e,s)},p(t,n){1&n[0]&&s!==(s="ok"==t[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured")&&bs(e,"name",s)},d(t){t&&hs(e)}}}function Sn(t){let e,s=t[0].title+"";return{c(){e=ms("h2"),ys(e,"class","sve_toaster__title h2")},m(t,n){us(t,e,n),e.innerHTML=s},p(t,n){1&n[0]&&s!==(s=t[0].title+"")&&(e.innerHTML=s)},d(t){t&&hs(e)}}}function Cn(t){let e,s=t[0].text+"";return{c(){e=ms("p"),ys(e,"class","sve_toaster__text p")},m(t,n){us(t,e,n),e.innerHTML=s},p(t,n){1&n[0]&&s!==(s=t[0].text+"")&&(e.innerHTML=s)},d(t){t&&hs(e)}}}function Pn(t){let e,s,n=t[0].actionText+"";return{c(){e=ms("p"),s=fs(n),ys(e,"class","sve_toaster__text p -small -secondary")},m(t,n){us(t,e,n),ps(e,s)},p(t,e){1&e[0]&&n!==(n=t[0].actionText+"")&&xs(s,n)},d(t){t&&hs(e)}}}function En(t){let e,s,n,r,a,o,i,l,c,d,p,u,h=t[0].actions[0].label+"",g=null!=t[9]&&kn(t),m=1===t[0].actions.length&&t[14]>1&&t[15]&&An(t);function f(t,e){return 2!==t[0].actions.length||t[0].hideSecondAction?t[0].actions.length>2||t[0].hideSecondAction&&t[0].actions.length>1?In:void 0:Dn}let _=f(t),w=_&&_(t),v=t[0].errorText&&Mn(t);return{c(){e=ms("div"),s=ms("kin-button"),n=ms("span"),r=fs(h),a=_s(),g&&g.c(),i=_s(),m&&m.c(),l=_s(),w&&w.c(),c=_s(),v&&v.c(),d=ws(),bs(s,"processing",t[8]),bs(s,"data-test",o="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn"),ys(e,"class","sve_toaster__btns")},m(o,h){us(o,e,h),ps(e,s),ps(s,n),ps(n,r),ps(n,a),g&&g.m(n,null),ps(e,i),m&&m.m(e,null),ps(e,l),w&&w.m(e,null),us(o,c,h),v&&v.m(o,h),us(o,d,h),p||(u=vs(s,"click",t[31]),p=!0)},p(t,a){1&a[0]&&h!==(h=t[0].actions[0].label+"")&&xs(r,h),null!=t[9]?g?g.p(t,a):(g=kn(t),g.c(),g.m(n,null)):g&&(g.d(1),g=null),256&a[0]&&bs(s,"processing",t[8]),1&a[0]&&o!==(o="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn")&&bs(s,"data-test",o),1===t[0].actions.length&&t[14]>1&&t[15]?m?m.p(t,a):(m=An(t),m.c(),m.m(e,l)):m&&(m.d(1),m=null),_===(_=f(t))&&w?w.p(t,a):(w&&w.d(1),w=_&&_(t),w&&(w.c(),w.m(e,null))),t[0].errorText?v?v.p(t,a):(v=Mn(t),v.c(),v.m(d.parentNode,d)):v&&(v.d(1),v=null)},d(t){t&&hs(e),g&&g.d(),m&&m.d(),w&&w.d(),t&&hs(c),v&&v.d(t),t&&hs(d),p=!1,u()}}}function kn(t){let e,s,n;return{c(){e=fs("("),s=fs(t[9]),n=fs(")")},m(t,r){us(t,e,r),us(t,s,r),us(t,n,r)},p(t,e){512&e[0]&&xs(s,t[9])},d(t){t&&hs(e),t&&hs(s),t&&hs(n)}}}function An(t){let e,s,n,r,a,o,i,l=u("detection.action.closeAll")+"";return{c(){e=ms("kin-button"),s=fs(l),n=fs("\n\t\t\t\t\t\t\t("),r=fs(t[14]),a=fs(")"),bs(e,"class","g-margin-left--10"),bs(e,"kin-disabled",t[8]),bs(e,"data-test","closeAll"),bs(e,"type","secondary")},m(l,c){us(l,e,c),ps(e,s),ps(e,n),ps(e,r),ps(e,a),o||(i=vs(e,"click",t[19]),o=!0)},p(t,s){16384&s[0]&&xs(r,t[14]),256&s[0]&&bs(e,"kin-disabled",t[8])},d(t){t&&hs(e),o=!1,i()}}}function In(t){let e,s,n,r,a,o,i,l,c=u("global.moreOptions")+"",d=t[0].actions,p=[];for(let u=0;u<d.length;u+=1)p[u]=On(mn(t,d,u));return{c(){e=ms("kin-dropdown"),s=ms("div"),n=ms("kin-button"),r=fs(c),a=_s(),o=ms("kin-icon"),i=_s(),l=ms("div");for(let t=0;t<p.length;t+=1)p[t].c();bs(o,"class","g-margin-left--5"),bs(o,"name","icon-s-controls-arrow-down"),bs(o,"size","16"),bs(n,"type","secondary"),bs(n,"data-test","dd_dropdown_btn"),ys(s,"slot","dropdown-activator"),bs(e,"class","g-margin-left--10")},m(t,c){us(t,e,c),ps(e,s),ps(s,n),ps(n,r),ps(n,a),ps(n,o),ps(e,i),ps(e,l);for(let e=0;e<p.length;e+=1)p[e].m(l,null)},p(t,e){if(8388609&e[0]){let s;for(d=t[0].actions,s=0;s<d.length;s+=1){const n=mn(t,d,s);p[s]?p[s].p(n,e):(p[s]=On(n),p[s].c(),p[s].m(l,null))}for(;s<p.length;s+=1)p[s].d(1);p.length=d.length}},d(t){t&&hs(e),gs(p,t)}}}function Dn(t){let e,s,n,r,a,o=t[0].actions[1].label+"";return{c(){e=ms("kin-button"),s=fs(o),bs(e,"class","g-margin-left--10"),bs(e,"kin-disabled",t[8]),bs(e,"data-test",n="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn"),bs(e,"type","secondary")},m(n,o){us(n,e,o),ps(e,s),r||(a=vs(e,"click",t[32]),r=!0)},p(t,r){1&r[0]&&o!==(o=t[0].actions[1].label+"")&&xs(s,o),256&r[0]&&bs(e,"kin-disabled",t[8]),1&r[0]&&n!==(n="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn")&&bs(e,"data-test",n)},d(t){t&&hs(e),r=!1,a()}}}function On(t){let e,s=0!==t[57]&&function(t){let e,s,n,r,a,o,i=t[55].label+"";function l(){return t[33](t[57])}return{c(){e=ms("kin-dropdown-item"),s=fs(i),n=_s(),bs(e,"data-test",r="dd_dropdown_"+t[55].labelTest||"dd_dropdown_"+t[57])},m(t,r){us(t,e,r),ps(e,s),ps(e,n),a||(o=vs(e,"click",l),a=!0)},p(n,a){t=n,1&a[0]&&i!==(i=t[55].label+"")&&xs(s,i),1&a[0]&&r!==(r="dd_dropdown_"+t[55].labelTest||"dd_dropdown_"+t[57])&&bs(e,"data-test",r)},d(t){t&&hs(e),a=!1,o()}}}(t);return{c(){s&&s.c(),e=ws()},m(t,n){s&&s.m(t,n),us(t,e,n)},p(t,e){0!==t[57]&&s.p(t,e)},d(t){s&&s.d(t),t&&hs(e)}}}function Mn(t){let e,s,n=t[0].errorText+"";return{c(){e=ms("p"),s=fs(n),ys(e,"class","g-margin-top--5 g-margin-bottom--10 p -small -secondary -text color-danger")},m(t,n){us(t,e,n),ps(e,s)},p(t,e){1&e[0]&&n!==(n=t[0].errorText+"")&&xs(s,n)},d(t){t&&hs(e)}}}function Tn(t){let e,s,n,r=(t[5]||t[4]&&t[4].text)&&Bn(t);return{c(){e=ms("div"),s=ms("kin-progress"),n=_s(),r&&r.c(),bs(s,"percentage","-1"),ys(e,"class","sve_toaster__progress")},m(t,a){us(t,e,a),ps(e,s),ps(e,n),r&&r.m(e,null)},p(t,s){t[5]||t[4]&&t[4].text?r?r.p(t,s):(r=Bn(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&hs(e),r&&r.d()}}}function Bn(t){let e,s,n=(t[5]||t[4].text)+"";return{c(){e=ms("p"),s=fs(n),ys(e,"class","g-margin-top--10 p -small -secondary")},m(t,n){us(t,e,n),ps(e,s)},p(t,e){48&e[0]&&n!==(n=(t[5]||t[4].text)+"")&&xs(s,n)},d(t){t&&hs(e)}}}function Nn(t){let e,s,n,r,a,o,i,l=t[0].dontShowAgain.label+"";return{c(){e=ms("p"),s=ms("input"),n=_s(),r=ms("label"),a=fs(l),ys(s,"type","checkbox"),ys(s,"id","detection_dontShowAgain"),ys(s,"class","checkbox"),ys(r,"for","detection_dontShowAgain"),ys(r,"class","g-margin-left--5"),ys(e,"class","sve_toaster__text p  g-margin-top--10")},m(l,c){us(l,e,c),ps(e,s),ps(e,n),ps(e,r),ps(r,a),o||(i=vs(s,"click",t[34]),o=!0)},p(t,e){1&e[0]&&l!==(l=t[0].dontShowAgain.label+"")&&xs(a,l)},d(t){t&&hs(e),o=!1,i()}}}function Ln(t){let e,s,n;function r(t,e){return t[2]?zn:Rn}let a=r(t),o=a(t);return{c(){e=ms("button"),o.c(),ys(e,"class","span -small -secondary g-cursor--pointer g-margin-top--10"),ys(e,"data-test","btn_toggleDetails")},m(r,a){us(r,e,a),o.m(e,null),s||(n=vs(e,"click",t[20]),s=!0)},p(t,s){a===(a=r(t))&&o?o.p(t,s):(o.d(1),o=a(t),o&&(o.c(),o.m(e,null)))},d(t){t&&hs(e),o.d(),s=!1,n()}}}function Rn(t){let e,s,n,r=u("global.showDetails")+"";return{c(){e=fs(r),s=_s(),n=ms("kin-icon"),bs(n,"name","icon-s-controls-arrow-down"),bs(n,"size","16")},m(t,r){us(t,e,r),us(t,s,r),us(t,n,r)},p:ss,d(t){t&&hs(e),t&&hs(s),t&&hs(n)}}}function zn(t){let e,s,n,r=u("global.hideDetails")+"";return{c(){e=fs(r),s=_s(),n=ms("kin-icon"),bs(n,"name","icon-s-controls-arrow-up"),bs(n,"size","16")},m(t,r){us(t,e,r),us(t,s,r),us(t,n,r)},p:ss,d(t){t&&hs(e),t&&hs(s),t&&hs(n)}}}function Gn(t){let e,s,n,r,a,o=t[0].details,i=[];for(let p=0;p<o.length;p+=1)i[p]=Un(gn(t,o,p));let l=t[4]&&Hn(t),c=t[6]&&Jn(t),d=t[7]&&Qn(t);return{c(){e=ms("div"),s=ms("dl");for(let t=0;t<i.length;t+=1)i[t].c();n=ws(),l&&l.c(),r=ws(),c&&c.c(),a=ws(),d&&d.c(),ys(s,"class","desclist -short"),ys(e,"class","sve_toaster__details")},m(t,o){us(t,e,o),ps(e,s);for(let e=0;e<i.length;e+=1)i[e].m(s,null);ps(s,n),l&&l.m(s,null),ps(s,r),c&&c.m(s,null),ps(s,a),d&&d.m(s,null)},p(t,e){if(1&e[0]){let r;for(o=t[0].details,r=0;r<o.length;r+=1){const a=gn(t,o,r);i[r]?i[r].p(a,e):(i[r]=Un(a),i[r].c(),i[r].m(s,n))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}t[4]?l?l.p(t,e):(l=Hn(t),l.c(),l.m(s,r)):l&&(l.d(1),l=null),t[6]?c?c.p(t,e):(c=Jn(t),c.c(),c.m(s,a)):c&&(c.d(1),c=null),t[7]?d?d.p(t,e):(d=Qn(t),d.c(),d.m(s,null)):d&&(d.d(1),d=null)},d(t){t&&hs(e),gs(i,t),l&&l.d(),c&&c.d(),d&&d.d()}}}function Wn(t){let e,s,n,r=t[52].title+"";function a(t,e){return"scoreMeter"===t[52].type&&4>t[52].value?Fn:Vn}let o=a(t),i=o(t);return{c(){e=ms("dt"),s=fs(r),i.c(),n=ws()},m(t,r){us(t,e,r),ps(e,s),i.m(t,r),us(t,n,r)},p(t,e){1&e[0]&&r!==(r=t[52].title+"")&&xs(s,r),o===(o=a(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(n.parentNode,n)))},d(t){t&&hs(e),i.d(t),t&&hs(n)}}}function Vn(t){let e,s,n,r=t[52].value+"";return{c(){e=ms("dd"),s=fs(r),ys(e,"data-test",n=t[52].testValue)},m(t,n){us(t,e,n),ps(e,s)},p(t,a){1&a[0]&&r!==(r=t[52].value+"")&&xs(s,r),1&a[0]&&n!==(n=t[52].testValue)&&ys(e,"data-test",n)},d(t){t&&hs(e)}}}function Fn(t){let e,s,n,r,a,o,i,l,c;return{c(){e=ms("dd"),s=ms("div"),n=ms("div"),r=_s(),a=ms("div"),o=_s(),i=ms("div"),c=_s(),ys(s,"class",l="scoremeter -val-"+t[52].value)},m(t,l){us(t,e,l),ps(e,s),ps(s,n),ps(s,r),ps(s,a),ps(s,o),ps(s,i),ps(e,c)},p(t,e){1&e[0]&&l!==(l="scoremeter -val-"+t[52].value)&&ys(s,"class",l)},d(t){t&&hs(e)}}}function Un(t){let e,s=t[52].value&&Wn(t);return{c(){s&&s.c(),e=ws()},m(t,n){s&&s.m(t,n),us(t,e,n)},p(t,n){t[52].value?s?s.p(t,n):(s=Wn(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},d(t){s&&s.d(t),t&&hs(e)}}}function Hn(t){let e,s,n,r,a,o=t[4].text+"",i=t[4].action&&jn(t);return{c(){e=ms("dt"),e.textContent=`${u("global.status")}`,s=ms("dd"),n=fs(o),r=_s(),i&&i.c(),a=_s(),ys(s,"data-test","status")},m(t,o){us(t,e,o),us(t,s,o),ps(s,n),ps(s,r),i&&i.m(s,null),ps(s,a)},p(t,e){16&e[0]&&o!==(o=t[4].text+"")&&xs(n,o),t[4].action?i?i.p(t,e):(i=jn(t),i.c(),i.m(s,a)):i&&(i.d(1),i=null)},d(t){t&&hs(e),t&&hs(s),i&&i.d()}}}function jn(t){let e,s,n,r,a,o,i=t[4].actionLabel+"";return{c(){e=fs("| "),s=ms("button"),n=fs(i),ys(s,"class","a"),ys(s,"data-test",r="scn_"+t[4].actionLabelGa)},m(r,i){us(r,e,i),us(r,s,i),ps(s,n),a||(o=vs(s,"click",t[21]),a=!0)},p(t,e){16&e[0]&&i!==(i=t[4].actionLabel+"")&&xs(n,i),16&e[0]&&r!==(r="scn_"+t[4].actionLabelGa)&&ys(s,"data-test",r)},d(t){t&&hs(e),t&&hs(s),a=!1,o()}}}function Jn(t){let e,s,n,r,a,o,i,l,c=t[6].text+"";return{c(){e=ms("dt"),e.textContent=`${u("global.option")}`,s=ms("dd"),n=ms("button"),r=fs(c),o=_s(),ys(n,"class","a"),ys(n,"data-test",a="scn_"+t[6].actionLabelGa),ys(s,"data-test","option")},m(a,c){us(a,e,c),us(a,s,c),ps(s,n),ps(n,r),ps(s,o),i||(l=vs(n,"click",t[22]),i=!0)},p(t,e){64&e[0]&&c!==(c=t[6].text+"")&&xs(r,c),64&e[0]&&a!==(a="scn_"+t[6].actionLabelGa)&&ys(n,"data-test",a)},d(t){t&&hs(e),t&&hs(s),i=!1,l()}}}function Qn(t){let e,s=t[7],n=[];for(let r=0;r<s.length;r+=1)n[r]=Xn(hn(t,s,r));return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=ws()},m(t,s){for(let e=0;e<n.length;e+=1)n[e].m(t,s);us(t,e,s)},p(t,r){if(33554560&r[0]){let a;for(s=t[7],a=0;a<s.length;a+=1){const o=hn(t,s,a);n[a]?n[a].p(o,r):(n[a]=Xn(o),n[a].c(),n[a].m(e.parentNode,e))}for(;a<n.length;a+=1)n[a].d(1);n.length=s.length}},d(t){gs(n,t),t&&hs(e)}}}function Kn(t){let e;return{c(){e=ms("dt"),e.textContent=`${u("global.options")}`},m(t,s){us(t,e,s)},p:ss,d(t){t&&hs(e)}}}function Zn(t){let e,s,n=t[49].title+"";return{c(){e=ms("dt"),s=fs(n)},m(t,n){us(t,e,n),ps(e,s)},p(t,e){128&e[0]&&n!==(n=t[49].title+"")&&xs(s,n)},d(t){t&&hs(e)}}}function qn(t){let e,s,n,r,a,o,i,l,c,d=t[49].label+"";function p(){return t[35](t[49])}return{c(){e=ms("input"),r=_s(),a=ms("label"),o=fs(d),ys(e,"type","checkbox"),ys(e,"class","checkbox"),e.checked=s=t[49].value,ys(e,"id",n="form_checkbox_"+t[49].valueName),ys(a,"for",i="form_checkbox_"+t[49].valueName),ys(a,"class","g-margin-left--5")},m(t,s){us(t,e,s),us(t,r,s),us(t,a,s),ps(a,o),l||(c=vs(e,"click",p),l=!0)},p(r,l){t=r,128&l[0]&&s!==(s=t[49].value)&&(e.checked=s),128&l[0]&&n!==(n="form_checkbox_"+t[49].valueName)&&ys(e,"id",n),128&l[0]&&d!==(d=t[49].label+"")&&xs(o,d),128&l[0]&&i!==(i="form_checkbox_"+t[49].valueName)&&ys(a,"for",i)},d(t){t&&hs(e),t&&hs(r),t&&hs(a),l=!1,c()}}}function Yn(t){let e,s,n,r=t[49].label+"";return{c(){e=ms("label"),s=fs(r),ys(e,"for",n="form_checkbox_"+t[49].valueName)},m(t,n){us(t,e,n),ps(e,s)},p(t,a){128&a[0]&&r!==(r=t[49].label+"")&&xs(s,r),128&a[0]&&n!==(n="form_checkbox_"+t[49].valueName)&&ys(e,"for",n)},d(t){t&&hs(e)}}}function Xn(t){let e,s,n;function r(t,e){return t[49].title?Zn:Kn}let a=r(t),o=a(t),i="checkbox"===t[49].type&&qn(t),l="label"===t[49].type&&Yn(t);return{c(){o.c(),e=ms("dd"),i&&i.c(),s=_s(),l&&l.c(),n=_s()},m(t,r){o.m(t,r),us(t,e,r),i&&i.m(e,null),ps(e,s),l&&l.m(e,null),ps(e,n)},p(t,c){a===(a=r(t))&&o?o.p(t,c):(o.d(1),o=a(t),o&&(o.c(),o.m(e.parentNode,e))),"checkbox"===t[49].type?i?i.p(t,c):(i=qn(t),i.c(),i.m(e,s)):i&&(i.d(1),i=null),"label"===t[49].type?l?l.p(t,c):(l=Yn(t),l.c(),l.m(e,n)):l&&(l.d(1),l=null)},d(t){o.d(t),t&&hs(e),i&&i.d(),l&&l.d()}}}function $n(t){let e,s,n,r,a=t[11]&&tr(t),o=t[14]>1&&er(t);return{c(){e=ms("div"),s=ms("div"),a&&a.c(),n=_s(),r=ms("div"),o&&o.c(),ys(e,"class","sve_toaster__footer")},m(t,i){us(t,e,i),ps(e,s),a&&a.m(s,null),ps(e,n),ps(e,r),o&&o.m(r,null)},p(t,e){t[11]?a?a.p(t,e):(a=tr(t),a.c(),a.m(s,null)):a&&(a.d(1),a=null),t[14]>1?o?o.p(t,e):(o=er(t),o.c(),o.m(r,null)):o&&(o.d(1),o=null)},d(t){t&&hs(e),a&&a.d(),o&&o.d()}}}function tr(t){let e,s,n,r,a,o,i,l,c,d,p,h,g=t[12]?"/"+t[12]:"";return{c(){e=ms("span"),s=fs(t[11]),n=fs(g),r=_s(),a=ms("kin-tooltip"),o=ms("span"),o.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',i=_s(),l=ms("div"),c=ms("h4"),c.textContent=`${u("detection.alertid.title")}`,d=_s(),p=ms("p"),p.textContent=`${u("detection.alertid.desc")}`,h=ms("p"),ys(e,"class","span -small -secondary"),ys(e,"data-test","dd_alertid_text"),ys(o,"slot","tooltip-activator"),ys(c,"class","h4 -margins"),ys(p,"class","p -small"),ys(l,"slot","tooltip"),bs(a,"severity","highlight")},m(t,u){us(t,e,u),ps(e,s),ps(e,n),us(t,r,u),us(t,a,u),ps(a,o),ps(a,i),ps(a,l),ps(l,c),ps(l,d),ps(l,p),ps(l,h)},p(t,e){2048&e[0]&&xs(s,t[11]),4096&e[0]&&g!==(g=t[12]?"/"+t[12]:"")&&xs(n,g)},d(t){t&&hs(e),t&&hs(r),t&&hs(a)}}}function er(t){let e,s,n,r,a,o,i,l,c,d,p,h,g,m=t[13]+1+"";return{c(){e=ms("span"),e.textContent=`${u("detection.more.detections")}`,s=_s(),n=ms("kin-button"),r=ms("kin-icon"),a=_s(),o=fs(m),i=fs("\n\t\t\t\t\t\t/\n\t\t\t\t\t\t"),l=ms("kin-button"),c=fs(t[14]),d=_s(),p=ms("kin-icon"),ys(e,"class","span -small -secondary"),bs(r,"name","icon-s-controls-arrow-left"),bs(r,"size","16"),bs(r,"rtlflip","true"),bs(n,"type","blank"),bs(n,"size","small"),bs(n,"class","sve_toaster__paginator g-margin-left--5"),bs(n,"data-test","dd_prev_btn"),bs(p,"name","icon-s-controls-arrow-right"),bs(p,"size","16"),bs(p,"rtlflip","true"),bs(l,"type","blank"),bs(l,"size","small"),bs(l,"class","sve_toaster__paginator"),bs(l,"data-test","dd_next_btn")},m(u,m){us(u,e,m),us(u,s,m),us(u,n,m),ps(n,r),ps(n,a),ps(n,o),us(u,i,m),us(u,l,m),ps(l,c),ps(l,d),ps(l,p),h||(g=[vs(n,"click",t[17]),vs(l,"click",t[18])],h=!0)},p(t,e){8192&e[0]&&m!==(m=t[13]+1+"")&&xs(o,m),16384&e[0]&&xs(c,t[14])},d(t){t&&hs(e),t&&hs(s),t&&hs(n),t&&hs(i),t&&hs(l),h=!1,as(g)}}}function sr(t){let e,s,n,r,a=t[0]&&wn(t);return{c(){a&&a.c(),e=ws()},m(o,i){a&&a.m(o,i),us(o,e,i),s=!0,n||(r=vs(un,"keydown",t[16]),n=!0)},p(t,s){t[0]?a?(a.p(t,s),1&s[0]&&Fs(a,1)):(a=wn(t),a.c(),Fs(a,1),a.m(e.parentNode,e)):a&&(Vs={r:0,c:[],p:Vs},Us(a,1,1,(()=>{a=null})),Vs.r||as(Vs.c),Vs=Vs.p)},i(t){s||(Fs(a),s=!0)},o(t){Us(a),s=!1},d(t){a&&a.d(t),t&&hs(e),n=!1,r()}}}function nr(t,e,n){let r,o,i,l,c,d,u,{$$slots:g={},$$scope:m}=e;const f=As();let _,w,v,y,b,x,{windowWidth:S=600}=e,{config:C=null}=e,{windowClose:P=null}=e,E=!1,k=null,A=null,I=!1,D=!1,O=!1,M=!1;var T;function B(t=!1){const e=C&&C.closeResponse;P?P(e):(f("close",e),(t||d<=1)&&a.close())}function N(t){L(C.actions[t],t)}function L(t,e){const r=t.action&&t.action(),a=Date.now();if(A&&A(),null==r)null==t.nextConfig?B():R(t.nextConfig,a,t.minDuration);else{const s=1===e&&2===C.actions.length&&!C.hideSecondAction;t.status||0!==e&&!s?(n(4,_=t.status),n(5,w=void 0),n(6,v=t.option),n(3,I=!0)):n(8,D=!0),r.then((e=>{R(e,a,t.minDuration)})).catch((e=>{R(e,a,t.minDuration)}))}t.labelGa&&s.event("DetectionDialog","Click",t.labelGa)}function R(t,e,s){const r=Math.max(s-(Date.now()-e),0);if(k&&k(),r>0){const e=window.setTimeout((()=>{!t&&d>0?B():n(0,C=t),k&&k()}),r);k=()=>{window.clearTimeout(e),k=null}}else!t&&d>0?B():n(0,C=t)}function z(t){t?(n(3,I=C.progress),n(4,_=C.status),n(5,w=C.progressStatusText),n(6,v=C.option),n(7,y=C.formItems),n(8,D=!1),function(){if(A&&A(),C.actions&&C.actions.length&&C.actions[0].countdown){n(9,b=C.actions[0].countdown);const t=window.setInterval((function(){b?n(9,b--,b):L(C.actions[0],0)}),1e3);A=function(){window.clearInterval(t),n(9,b=null),A=null}}}()):B()}function G(t){const e=Math.max(400,t.scrollHeight);M&&(M=!1,n(10,O=e>window.screen.availHeight)),a.resize(S,Math.min(e,window.screen.availHeight))}function W(t){t.value=!t.value,f("formItemUpdated",t)}T=()=>{p.play("threat")},ks().$$.on_mount.push(T),function(t){ks().$$.on_destroy.push(t)}((()=>{k&&k(),A&&A(),x&&x.cancel()}));return t.$$set=t=>{"windowWidth"in t&&n(1,S=t.windowWidth),"config"in t&&n(0,C=t.config),"windowClose"in t&&n(26,P=t.windowClose),"$$scope"in t&&n(29,m=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&z(C),1&t.$$.dirty[0]&&n(27,r=C&&C.trackerTitle),134217728&t.$$.dirty[0]&&function(t){const e=a.getUrlParams();null!=t&&s.view(e.module+"_"+e.view+(t?"_"+t:""))}(r),1&t.$$.dirty[0]&&n(28,o=C&&C.detectionInfo||{}),268435456&t.$$.dirty[0]&&n(11,i=o.id||""),268435456&t.$$.dirty[0]&&n(12,l=o.timestamp&&h(o.timestamp).format("YYMMDD.HHmmZZ")||""),268435456&t.$$.dirty[0]&&n(13,c=o.index||0),268435456&t.$$.dirty[0]&&n(14,d=o.total||0),268435456&t.$$.dirty[0]&&n(15,u=o.showCloseAllBtn||!1)},[C,S,E,I,_,w,v,y,D,b,O,i,l,c,d,u,function(t){const e=C.actions;e&&e.length&&e.some(((e,s)=>{if(e.shortcut&&e.shortcut.code===t.code&&!!e.shortcut.ctrlKey===t.ctrlKey&&!!e.shortcut.shiftKey===t.shiftKey&&!!e.shortcut.altKey===t.altKey&&!!e.shortcut.metaKey===t.metaKey)return L(e,s),!0}))},function(){f("prev")},function(){f("next")},function(){!function(t=!1){s.event("DetectionDialog","Close"),f("ignore"),B(t)}(!0)},function(){n(2,E=!E),M=!0},function(){const t=_.actionLabelGa,e=_.action;t&&s.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} StatusAction is not function")},function(){const t=v.actionLabelGa,e=v.action;t&&s.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} OptionAction is not function")},N,function(t){G(t),x=pn(G.bind(this,t),25);const e=new MutationObserver(x);return e.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:e.disconnect.bind(e)}},W,P,r,o,m,g,()=>N(0),()=>N(1),t=>N(t),t=>C.dontShowAgain.action(t.target.checked),t=>W(t)]}class rr extends Zs{constructor(t){super(),Ks(this,t,nr,sr,is,{windowWidth:1,config:0,windowClose:26},[-1,-1])}}function ar(t){let e,s,n=t[0]&&function(t){let e,s;return e=new rr({props:{config:t[0]}}),{c(){var t;(t=e.$$.fragment)&&t.c()},m(t,n){js(e,t,n),s=!0},p:ss,i(t){s||(Fs(e.$$.fragment,t),s=!0)},o(t){Us(e.$$.fragment,t),s=!1},d(t){Js(e,t)}}}(t);return{c(){n&&n.c(),e=ws()},m(t,r){n&&n.m(t,r),us(t,e,r),s=!0},p(t,[e]){t[0]&&n.p(t,e)},i(t){s||(Fs(n),s=!0)},o(t){Us(n),s=!1},d(t){n&&n.d(t),t&&hs(e)}}}function or(t){const e=a.getUrlParams(),s=function(){const t=e.serviceName,s=e.leakCount,n=u("passwords.passwordGuardian.leakedDialog.title",s),r=s>1?u("passwords.passwordGuardian.leakedDialog.desc2"):u("passwords.passwordGuardian.leakedDialog.desc1",t);return{color:"red",icon:{name:"password-protection",color:"critical"},title:n,text:r,actions:[{label:u("global.showDetails"),action:o.bind(this)}],details:[]}}();let r=!1;function o(){const t=parseInt(e.id)||"";r?n("app.windowManager.ShowWindow",{url:"https://local.avast.com/MainWindow.html?module=pam#pam/passwordGuardian/"+t,id:"pam",type:"CEF",width:1010,height:674,setAsForegroundWnd:!0,title:"Avast Password Manager",iconSmall:215,iconBig:215,appUserModelRelaunchIcon:215,appUserModelID:"avast.pam"}):(a.openMainWindow({route:"pam/passwordGuardian/"+t}),a.close())}return Ue.isStandalonePamAllowed().then((t=>{r=t})),[s]}const ir=Ye,lr=$e,cr=$e,dr=ts,pr=es,ur=class extends Zs{constructor(t){super(),Ks(this,t,or,ar,is,{})}};export default qe;export{pr as GuardianToaster,ur as LeakedDialog,dr as SmartScan,cr as activateToaster,lr as extensionActivationToaster,ir as unlock};const hr={name:"pam",version:"1.2.146",created:"2021-09-06T10:54:47.935Z"};export{hr as metadata};