Settings-BmdyOOHu.js

42.9 KB · raw

1import{A as e,C as t,D as n,E as r,I as i,N as a,O as o,P as s,S as c,T as l,_ as u,a as d,b as f,f as p,h as m,i as h,j as g,k as _,l as v,m as y,n as b,o as x,p as S,r as C,t as w,v as T,w as E,x as D,y as O}from"./index-NO7TZDKB.js";var ee=l(`<span class=peach-pro-mark aria-label="Pro feature">✦`),te=l(`<button class=peach-settings-cat-row><div class=peach-settings-cat-icon></div><div class=peach-settings-cat-content><span class=peach-settings-cat-name></span><span class=peach-settings-cat-desc></span></div><svg class=peach-settings-cat-chevron width=6 height=10 viewBox="0 0 6 10"fill=none stroke=currentColor stroke-width=1.1 stroke-linecap=round stroke-linejoin=round><path d="M1 1l4 4-4 4">`),ne=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M8 2L3 4.5V8c0 3 2.5 5 5 6 2.5-1 5-3 5-6V4.5L8 2z">`),re=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M4 10a3 3 0 100-6 3 3 0 000 6zm3-3h6m-2-2v4">`),ie=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><rect x=3 y=7 width=10 height=7 rx=1.5></rect><path d="M6 7V5a3 3 0 016 0v2">`),ae=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M4 8a4 4 0 014-4m4 4a4 4 0 01-4 4"></path><path d="M14 6l-2 2-2-2"></path><path d="M2 10l2-2 2 2">`),oe=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><circle cx=8 cy=8 r=3></circle><path d="M8 2v1m0 10v1M2 8h1m10 0h1m-2.1-4.1-.7.7M4.8 11.3l-.7.7m0-7.7.7.7m6.5 6.3-.7.7">`),se=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><rect x=2 y=5 width=5 height=4 rx=1></rect><rect x=9 y=7 width=5 height=4 rx=1></rect><path d="M7 7h2m-2 2h2">`),ce=l(`<svg width=14 height=14 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.2 stroke-linecap=round stroke-linejoin=round><path d="M3 4h10a1 1 0 011 1v6a1 1 0 01-1 1H5l-3 2V5a1 1 0 011-1z">`),le=l(`<p class=peach-settings-nav-label>MOBILE`),ue=l(`<div class=peach-settings-body><p class=peach-settings-nav-label>PROTECTION</p><p class=peach-settings-nav-label>VAULT</p><p class=peach-settings-nav-label>PREFERENCES</p><p class=peach-settings-nav-label>SUPPORT</p><div class=peach-settings-footer><span>Peach </span><span class=peach-divider></span><span>Browser extension`),de=l(`<div class="peach-settings-row peach-settings-row--meta"><span>Last check</span><span class=peach-settings-value>`),fe=l(`<p class="peach-hint peach-hint-error"style=margin:0>`),pe=l(`<p class=peach-hint style=margin:0;color:var(--peach-accent)>password changed ✓`),me=l(`<div class=peach-settings-stack style="padding:4px 0 2px;gap:6px"><input class=peach-settings-input type=password placeholder="current password"autocomplete=current-password><input class=peach-settings-input type=password placeholder="new password (min 12 chars)"autocomplete=new-password><input class=peach-settings-input type=password placeholder="confirm new password"autocomplete=new-password><button class="peach-btn peach-btn--accent peach-btn--sm"style=align-self:flex-start>`),he=l(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--peach-t2)>If someone forces you to unlock Peach, enter the duress password instead. A decoy empty vault opens; your real vault stays hidden.`),ge=l(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:var(--peach-sync-ok)>`),_e=l(`<div class="peach-settings-row peach-settings-row--meta"><button class="peach-btn peach-btn--subtle peach-btn--sm">`),ve=l(`<label class=peach-label>new duress password`),ye=l(`<input class=peach-settings-input type=password placeholder="duress password (min 8 chars)"autocomplete=new-password>`),be=l(`<label class=peach-label>confirm duress password`),xe=l(`<input class=peach-settings-input type=password placeholder="confirm duress password"autocomplete=new-password>`),Se=l(`<p class="peach-hint peach-hint-error">`),Ce=l(`<button class="peach-btn peach-btn--ghost peach-btn--sm"style=color:var(--peach-breach)>`),we=l(`<button class="peach-btn peach-btn--accent peach-btn--sm">`),Te=l(`<div class=peach-duress-form><label class=peach-label>main password (to confirm)</label><input class=peach-settings-input type=password placeholder="your current master password"autocomplete=current-password><div class=peach-duress-actions><button class="peach-btn peach-btn--subtle peach-btn--sm">cancel`),Ee=l(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:#e7b36b>`),De=l(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>LOCKING</p><div class=peach-settings-row><span>Lock on close</span><button aria-label="Toggle lock on close"><span class=peach-toggle-knob></span></button></div><div class=peach-settings-row><span>Auto-lock after</span><select class=peach-settings-select><option value=1>1 minute</option><option value=5>5 minutes</option><option value=15>15 minutes</option><option value=30>30 minutes</option><option value=0>Never</option></select></div><p class=peach-settings-sub-label>BREACH PROTECTION</p><div class=peach-settings-row><span>Breach monitoring</span><button aria-label="Toggle breach monitoring"><span class=peach-toggle-knob></span></button></div><div class="peach-settings-row peach-settings-row--meta"><span>Check all passwords</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>MASTER PASSWORD</p><div class="peach-settings-row peach-settings-row--meta"><span>Master password</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>DURESS PASSWORD</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Duress password</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--t2)>If entered under coercion, shows a decoy empty vault instead of your real one.</span></div><div></div></div><p class=peach-settings-sub-label>CANARY ENTRIES</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Canary entries</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--peach-t2)>Silently pings a webhook when an entry is accessed. Configure canary on any entry in your vault.</span></div><span class=peach-settings-value style=flex-shrink:0></span></div><p class=peach-settings-sub-label>PASSKEYS</p><div class="peach-settings-row peach-settings-row--top"><div class=peach-settings-row-main><span>Intercept passkey requests</span><span class=peach-settings-value style=font-size:11px;line-height:1.5;color:var(--t2)>Peach can handle passkey sign-in and creation on supported Chromium browsers.</span></div><button aria-label="Toggle passkey interception"><span class=peach-toggle-knob></span></button></div><div class="peach-settings-row peach-settings-row--meta"><span>Status</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Browser</span><span class=peach-settings-value></span></div><div class=peach-info-notice style=margin-top:8px>Only one passkey provider can be active at a time. Disable Bitwarden or 1Password passkey interception if Peach reports a conflict.`),Oe=l(`<div class="peach-settings-row peach-settings-row--meta"><span style=overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0></span><button class="peach-btn peach-btn--subtle peach-btn--sm"style=flex-shrink:0>`),ke=l(`<span class=peach-settings-value style=color:var(--peach-sync-ok)>`),Ae=l(`<div class="peach-settings-row peach-settings-row--meta"style=flex-direction:column;align-items:stretch;gap:6px><div class=peach-restore-warning> duplicate <!> found. The newest copy of each will be kept; older duplicates will be moved to trash.</div><div style=display:flex;gap:6px><button class="peach-btn peach-btn--subtle peach-btn--sm">cancel</button><button class="peach-btn peach-btn--accent peach-btn--sm">`),je=l(`<div class="peach-settings-row peach-settings-row--meta"><span> card<!> set to never save</span><button class="peach-btn peach-btn--subtle peach-btn--sm">Clear`),Me=l(`<div class="peach-danger-card peach-danger-card--hazard"><div class=peach-danger-card-head><span class=peach-danger-card-glyph aria-hidden=true>⚠</span><h3 class=peach-danger-card-title>Destroy vault</h3></div><p class=peach-danger-card-copy>Permanently wipes every entry, setting, and license on this device. There is no recovery.</p><button class=peach-danger-card-button>Begin destruction`),Ne=l(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>ENTRIES</p><div class="peach-settings-row peach-settings-row--meta"><span>Entries</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Duplicates</span></div><p class=peach-settings-sub-label>MAINTENANCE</p><div class="peach-settings-row peach-settings-row--meta"><span>Trash auto-delete</span><select class=peach-settings-select><option value=7>7 days</option><option value=30>30 days</option><option value=90>90 days</option><option value=0>Never</option></select></div><div class="peach-settings-row peach-settings-row--meta"><span>Vault Health</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><p class=peach-settings-sub-label>DATA</p><div class="peach-settings-row peach-settings-row--meta"><span>Import passwords</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><div class="peach-settings-row peach-settings-row--meta"><span>Export backup</span><button class="peach-btn peach-btn--subtle peach-btn--sm">open</button></div><div class=peach-danger-card><div class=peach-danger-card-head><span class=peach-danger-card-glyph aria-hidden=true>⟳</span><h3 class=peach-danger-card-title>Replace vault from backup</h3></div><p class=peach-danger-card-copy>Wipes the current vault and restores from a backup file. Recoverable only if your backup is good.</p><button class=peach-danger-card-button>Choose backup file`),Pe=l(`<button class="peach-btn peach-btn--subtle peach-btn--sm">`),Fe=l(`<div class=peach-settings-body><div class=peach-pro-upgrade><div class=peach-pro-upgrade-hero><svg class=peach-sync-hero-icon width=36 height=36 viewBox="0 0 36 36"fill=none aria-hidden=true><circle cx=9 cy=18 r=4.5 stroke=currentColor stroke-width=1.2 opacity=0.9></circle><circle cx=27 cy=18 r=4.5 stroke=currentColor stroke-width=1.2 opacity=0.9></circle><path d="M13.5 15.5C15 12 17 10 18 10C19 10 21 12 22.5 15.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.6></path><path d="M13.5 20.5C15 24 17 26 18 26C19 26 21 24 22.5 20.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.6></path><path d="M13.5 18H22.5"stroke=currentColor stroke-width=1.2 stroke-linecap=round opacity=0.35></path><path d="M20 16L22.5 18L20 20"stroke=var(--peach-accent) stroke-width=1.2 stroke-linecap=round stroke-linejoin=round></path><path d="M16 16L13.5 18L16 20"stroke=var(--peach-accent) stroke-width=1.2 stroke-linecap=round stroke-linejoin=round></path></svg><h2 class=peach-pro-upgrade-title>Peach Sync</h2><p class=peach-pro-upgrade-tagline>Encrypted · peer-to-peer · local</p></div><div class=peach-pro-features><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Always in sync</span><span class=peach-pro-feature-desc>Your vault stays current across all your devices automatically</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>No cloud. No relay.</span><span class=peach-pro-feature-desc>Direct device-to-device on your local network — nothing leaves your hands</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Tailscale supported</span><span class=peach-pro-feature-desc>Sync securely from anywhere over your private Tailscale network</span></div></div><div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name>Zero friction after setup</span><span class=peach-pro-feature-desc>Mark a network as trusted once — sync happens in the background</span></div></div></div><button class="peach-btn peach-btn--accent peach-pro-upgrade-cta">Upgrade to Pro</button><button class=peach-pro-key-link>Already have a key? Enter it →`),Ie=l(`<button class="peach-btn peach-btn--subtle peach-btn--sm">Mark current network as trusted`),Le=l(`<div class=peach-settings-body><div class=peach-settings-group><div class=peach-settings-row><span>Status</span><span class="peach-settings-value peach-settings-value--status"><span class=peach-sync-status-dot></span></span></div><div class="peach-settings-row peach-settings-row--meta"><span>Last sync</span><span class=peach-settings-value></span></div><div class="peach-settings-row peach-settings-row--meta"><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><div class="peach-settings-row peach-settings-row--meta peach-settings-row--stack"><span class=peach-sync-section-label>Paired devices (<!>)</span><div class=peach-settings-actions--row><button class="peach-btn peach-btn--subtle peach-btn--sm">Pair a new device</button><button class="peach-btn peach-btn--subtle peach-btn--sm">Pair with another device</button></div></div><div class="peach-settings-row peach-settings-row--meta peach-settings-row--stack"><span class=peach-sync-section-label>Trusted networks (<!>)</span><div class=peach-settings-actions--row></div><span class=peach-sync-device-meta>Tailscale is always trusted`),Re=l(`<div class=peach-sync-device-row><div class=peach-sync-device-info><span class=peach-sync-device-name></span><span class=peach-sync-device-meta>Last seen: <!> · Last synced: </span></div><button class="peach-btn peach-btn--ghost peach-btn--sm peach-sync-remove-btn">Remove`),ze=l(`<div class=peach-sync-device-row><span class=peach-sync-device-name></span><button class="peach-btn peach-btn--ghost peach-btn--sm peach-sync-remove-btn">Remove`),Be=l(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-sub-label>THEME</p><div class="peach-settings-row peach-settings-row--meta"><span>Theme</span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div><p class=peach-settings-sub-label>ACCENT</p><div class="peach-settings-row peach-settings-row--meta peach-settings-row--accent"><span>Accent</span><div class=peach-accent-picker></div></div><p class=peach-settings-sub-label>DISPLAY FONT</p><div class="peach-settings-row peach-settings-row--meta peach-settings-row--font"><span>Font</span><div class=peach-font-picker></div></div><p class=peach-settings-sub-label>TEXT SIZE</p><div class="peach-settings-row peach-settings-row--meta"><span>Size</span><div class=peach-pill-group></div></div><p class=peach-settings-sub-label>MOTION</p><div class="peach-settings-row peach-settings-row--meta"><span>Reduce motion</span><button class="peach-btn peach-btn--subtle peach-btn--sm">`),Ve=l(`<button class=peach-accent-swatch>`),He=l(`<button class=peach-font-swatch><span class=peach-font-swatch-glyph></span><span class=peach-font-swatch-name>`),Ue=l(`<button class="peach-btn peach-btn--ghost peach-btn--sm">`),We=l(`<div class=peach-shortcuts-conflict>`),Ge=l(`<div class=peach-settings-body><div class="peach-settings-group peach-shortcuts-group"><p class=peach-settings-sub-label>ENTRY VIEW</p></div><div class="peach-settings-group peach-shortcuts-group"><p class=peach-settings-sub-label>ANYWHERE IN POPUP</p></div><div class=peach-settings-group style=display:flex;flex-direction:column;gap:8px><div class="peach-settings-row peach-settings-row--meta"><span>Inline autofill on page</span><a class=peach-settings-link href=chrome://extensions/shortcuts>⌘⇧P — customize ↗</a></div><button class="peach-btn peach-btn--subtle peach-btn--sm"style=align-self:flex-start>Reset all to defaults`),Ke=l(`<button class=peach-shortcut-reset title="Reset to default">↺`),qe=l(`<div class=peach-shortcut-row><span class=peach-shortcut-row-label></span><button class=peach-shortcut-chip>`),Je=l(`<div class=peach-settings-license><span class=peach-settings-label>LICENSE KEY</span><div class=peach-settings-license-row><span class=peach-settings-license-key></span><button class=peach-settings-license-copy>`),Ye=l(`<div class=peach-pro-active><div class=peach-pro-active-hero><div class=peach-pro-active-mark-wrap></div><h2 class=peach-pro-active-title>Peach Pro</h2><p class=peach-pro-active-since></p></div><div class=peach-pro-active-features></div><button class=peach-pro-deactivate>`),Xe=l(`<div class=peach-settings-body>`),Ze=l(`<p class=peach-pro-key-error>That key doesn't look right.`),Qe=l(`<div class=peach-pro-key-ceremony><p class=peach-pro-key-ceremony-label>Enter your license key</p><input class="peach-underline-input peach-pro-key-input"type=text placeholder=PPK-XXXX-XXXX-XXXX-XXXX-XXXX autocomplete=off><button class="peach-btn peach-btn--accent peach-pro-key-activate"></button><button class=peach-pro-key-cancel>cancel`),$e=l(`<div class=peach-pro-upgrade><div class=peach-pro-upgrade-hero><div class=peach-pro-upgrade-mark-wrap></div><h2 class=peach-pro-upgrade-title>Peach Pro</h2><p class=peach-pro-upgrade-tagline>Everything on every device.</p></div><div class=peach-pro-features></div><div class=peach-pro-upgrade-actions><p class=peach-pro-pricing>$39 · once · yours forever</p><a href=https://peachpasswords.com/#pricing target=_blank rel="noopener noreferrer"class="peach-btn peach-btn--accent peach-pro-upgrade-cta">Get Peach Pro</a><div class=peach-pro-key-divider><span>or</span></div><button class=peach-pro-key-link>Activate a license key`),et=l(`<div class=peach-pro-feature><span class=peach-pro-feature-mark>✦</span><div class=peach-pro-feature-text><span class=peach-pro-feature-name></span><span class=peach-pro-feature-desc>`),tt=l(`<div class=peach-pro-active-feature><span class=peach-pro-active-feature-mark>✦</span><span class=peach-pro-active-feature-name>`),nt=l(`<p class="peach-feedback-result peach-feedback-result--ok">Sent — thank you`),rt=l(`<p class="peach-feedback-result peach-feedback-result--err">Failed to send — try again`),it=l(`<div class=peach-settings-body><div class="peach-settings-group peach-feedback-group"><p class=peach-feedback-intro>Help us improve Peach. Every report goes directly to our inbox.</p><p class=peach-settings-sub-label>TYPE</p><div class=peach-feedback-chips></div><p class=peach-settings-sub-label>MESSAGE</p><textarea class=peach-feedback-textarea placeholder="Describe the issue or idea..."></textarea><p class=peach-feedback-meta>Version <!> · will be included automatically</p><button class="peach-btn peach-btn--accent peach-btn--sm peach-feedback-submit"></button><p class=peach-feedback-anon>Sent anonymously · no account required`),at=l(`<button>`),ot=l(`<div class=peach-settings-body><div class=peach-settings-group><p class=peach-settings-label>Autofill service</p><div class=peach-mobile-row><span class=peach-mobile-status></span><button class="peach-btn peach-btn--subtle peach-btn--sm"></button></div></div><div class=peach-settings-group><p class=peach-settings-label>Biometric unlock</p><div class=peach-mobile-row><span class=peach-mobile-status>`),st=l(`<div class="peach-overlay-view ov-enter-right"style=display:flex><div class=peach-overlay-header><button class="peach-btn peach-btn--ghost peach-btn--sm peach-icon-btn"aria-label=Back><svg width=7 height=12 viewBox="0 0 7 12"fill=none stroke=currentColor stroke-width=1.1 stroke-linecap=round stroke-linejoin=round><path d="M6 1L1 6L6 11"></path></svg></button><span class=peach-overlay-title></span><div class=peach-overlay-spacer>`),ct=[`Bug report`,`Feature request`,`Question`,`Other`];function lt(e){if(!e)return`Active`;try{let t=new Date(e);return Number.isNaN(t.getTime())?`Active`:`Active since ${t.toLocaleDateString(void 0,{month:`long`,year:`numeric`})}`}catch{return`Active`}}function ut(e){return e===`security`||e===`vault`||e===`sync`||e===`appearance`||e===`shortcuts`||e===`license`||e===`feedback`||e===`mobile`}function k(l){let f=chrome.runtime.getManifest().version,k=l.initialSection,[A,j]=s(k&&ut(k)?k:null),[dt,ft]=s(!1),[pt,mt]=s(null),[ht,gt]=s(null),[_t,vt]=s(``),[yt,M]=s(null),[bt,xt]=s(null),[St,Ct]=s(!1),[wt,Tt]=s([]),[Et,Dt]=s([]),[N,Ot]=s(`offline`),[kt,At]=s(void 0),[jt,Mt]=s(!1),P=()=>l.isPro??jt(),[Nt,Pt]=s(!1),[F,Ft]=s(null),[It,Lt]=s(!1),[I,Rt]=s(null),[L,R]=s(!1),[z,zt]=s(null),[Bt,Vt]=s(0),[Ht,Ut]=s(!1),[B,Wt]=s(``),[V,Gt]=s(``),[Kt,qt]=s(``),[Jt,Yt]=s(!1),[Xt,H]=s(null),[Zt,Qt]=s(!1),[U,$t]=s(!1),[en,W]=s(!1),[tn,nn]=s(``),[rn,an]=s(``),[G,K]=s(``),[q,J]=s(!1),[on,Y]=s(null),[sn,X]=s(null),[Z,cn]=s([]);function ln(){try{return u(`Autofill`)}catch{return null}}let un=ln(),[dn,fn]=s(!1),[pn,mn]=s(!1),hn=m.getPlatform()===`android`,[gn,_n]=s(null),[vn,yn]=s(null),[bn,xn]=s(`Bug report`),[Q,Sn]=s(``),[Cn,wn]=s(!1),[Tn,En]=s(null);i(async()=>{let[e,t,n,r,i,a]=await Promise.all([w({type:`GET_LICENSE`}),w({type:`GET_SYNC_STATE`}),w({type:`GET_PASSKEY_PROVIDER_STATE`}),w({type:`IS_DURESS_ENABLED`}),w({type:`GET_SETTINGS`}),w({type:`GET_LICENSE_KEY`})]);if(e.ok&&gt(e.data??null),t.ok){let e=t;e.data&&(Tt(e.data.pairedDevices??[]),Dt(e.data.trustedNetworks??[]),Ot(e.data.status??`offline`),At(e.data.lastSyncAt),Mt(e.data.isPro??!1))}if(n.ok&&Ft(n.data??null),r.ok&&$t(r.data??!1),i.ok){let e=i.data;Vt(e?.declinedCardFingerprints?.length??0)}a.ok&&dr(a.data??null);let o=await w({type:`GET_ENTRIES`});if(o.ok&&cn((o.data??[]).filter(e=>e.canary?.webhookUrl).map(e=>({id:e.id,title:e.title,canary:e.canary}))),hn){if(un){let{enabled:e}=await un.isEnabledAsAutofillService();fn(e)}mn(await v())}chrome.runtime.onMessage.addListener(e=>{e.type===`SYNC_STATE_UPDATE`&&(Tt(e.pairedDevices??[]),Dt(e.trustedNetworks??[]),Ot(e.status??`offline`),At(e.lastSyncAt),Mt(e.isPro??!1))})});async function Dn(){if(H(null),!B().trim()){H(`enter your current password`);return}if(V().length<12){H(`new password must be at least 12 characters`);return}if(V()!==Kt()){H(`new passwords do not match`);return}if(V()===B()){H(`new password must differ from current`);return}Yt(!0);let e=await w({type:`CHANGE_PASSWORD`,payload:{currentPassword:B(),newPassword:V()}});e.ok?(Qt(!0),Wt(``),Gt(``),qt(``),setTimeout(()=>{Qt(!1),Ut(!1)},2200)):H(e.error??`failed to change password`),Yt(!1)}let[On,kn]=s(!1);async function An(e){await navigator.clipboard.writeText(e),kn(!0),setTimeout(()=>kn(!1),2e3)}async function jn(){let e=_t().trim();if(!e)return;Ct(!0),M(null),xt(null);let t=await w({type:`ACTIVATE_LICENSE`,payload:{key:e}});if(Ct(!1),t.ok){let n=t.data;n?.valid?(gt(n),dr(e),xt(`License activated!`),vt(``)):M(`Invalid license key`)}else M(`Activation failed`)}async function Mn(){let e=F();if(!e||!e.supported)return;Lt(!0);let t=await w({type:`SET_PASSKEY_PROVIDER_ENABLED`,payload:{enabled:!e.enabled}});Lt(!1),t.ok&&Ft(t.data??null)}async function Nn(){ft(!0),mt(null);let e=await w({type:`CHECK_ALL_BREACHES`});if(ft(!1),e.ok){let t=e.data??{},n=Object.values(t).filter(e=>e>0).length;mt(n>0?`${n} password${n>1?`s`:``} found in breaches`:`All passwords clean`),l.onBreachCheckDone()}}async function Pn(){N()!==`not_trusted`&&(Pt(!0),await w({type:`TRIGGER_SYNC`}),setTimeout(()=>Pt(!1),3e3))}async function Fn(e){await w({type:`REMOVE_PAIRED_DEVICE`,payload:{deviceId:e}})}async function In(e,t,n){await w({type:`REMOVE_TRUSTED_NETWORK`,payload:{ssid:e,bssid:t,isTailscale:n}})}async function Ln(){await w({type:`MARK_NETWORK_TRUSTED`})}function Rn(e){if(!e)return`Never`;let t=Date.now()-e,n=Math.floor(t/6e4),r=Math.floor(t/36e5),i=Math.floor(t/864e5);return n<1?`Just now`:n<60?`${n}m ago`:r<24?`${r}h ago`:`${i}d ago`}function zn(e){switch(e){case`synced`:return`var(--peach-sync-ok)`;case`syncing`:return`var(--peach-sync-busy)`;case`no_peers`:return`var(--peach-sync-off)`;case`not_trusted`:return`var(--peach-sync-err)`;case`offline`:return`var(--peach-sync-off)`;default:return`var(--peach-sync-off)`}}function Bn(e){switch(e){case`synced`:return`Synced`;case`syncing`:return`Syncing`;case`no_peers`:return`No peers visible`;case`not_trusted`:return`Not on a trusted network`;case`offline`:return`Offline`;default:return`Unknown`}}function Vn(){return Et().length>0}async function Hn(){let e=G().trim(),t=tn().trim(),n=rn().trim();if(!e){Y(`enter your main password to confirm`);return}if(t.length<8){Y(`duress password must be at least 8 characters`);return}if(t===e){Y(`duress password must differ from your main password`);return}if(t!==n){Y(`passwords do not match`);return}J(!0),Y(null);let r=await w({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!r.ok||!r.data){Y(`incorrect main password`),J(!1);return}let i=await w({type:`SETUP_DURESS`,payload:{duressPassword:t}});J(!1),i.ok?($t(!0),W(!1),nn(``),an(``),K(``),X(`Duress password set. If entered, a decoy vault will be shown.`),setTimeout(()=>X(null),5e3)):Y(i.error??`failed to set duress password`)}async function Un(){await w({type:`UPDATE_SETTINGS`,payload:{declinedCardFingerprints:[]}}),Vt(0)}async function Wn(){R(!0),zt(null);let e=await w({type:`COUNT_DUPLICATES`});R(!1),e.ok&&Rt(e.data??0)}async function Gn(){R(!0);let e=await w({type:`DEDUPLICATE_ENTRIES`});R(!1),e.ok&&(zt(e.data??0),Rt(0))}async function Kn(){let e=G().trim();if(!e){Y(`enter your main password to confirm`);return}J(!0),Y(null);let t=await w({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!t.ok||!t.data){Y(`incorrect main password`),J(!1);return}let n=await w({type:`DISABLE_DURESS`});J(!1),n.ok?($t(!1),W(!1),K(``),X(`Duress password disabled.`),setTimeout(()=>X(null),4e3)):Y(n.error??`failed to disable duress password`)}async function qn(){if(!Q().trim()||Cn())return;wn(!0),En(null);let e=await w({type:`SUBMIT_FEEDBACK`,payload:{category:bn(),message:Q().trim(),version:f,browser:navigator.userAgent}});wn(!1),e.ok?(En(`success`),Sn(``),setTimeout(()=>En(null),4e3)):En(`error`)}function Jn(){A()===null?l.onBack():j(null)}function Yn(){let e=A();return e===null?`settings`:e===`license`?`account`:e}function $(e){return(()=>{var t=te(),n=t.firstChild,r=n.nextSibling.firstChild,i=r.nextSibling;return t.$$click=()=>j(e.section),D(n,()=>e.icon()),D(r,()=>e.name,null),D(r,g(_,{get when(){return c(()=>!!e.pro)()&&!P()},get children(){return ee()}}),null),D(i,()=>e.desc),t})()}let Xn=()=>ne(),Zn=()=>re(),Qn=()=>ie(),$n=()=>ae(),er=()=>oe(),tr=()=>se(),nr=()=>ce();function rr(){return(()=>{var e=ue(),t=e.firstChild.nextSibling,n=t.nextSibling,r=n.nextSibling,i=r.nextSibling,a=i.firstChild;return a.firstChild,D(e,()=>$({section:`security`,name:`Security`,desc:`Locking, breach monitoring, passkeys`,icon:Xn}),t),D(e,()=>$({section:`license`,name:`Peach Pro`,desc:P()?`Active · manage your license`:`Upgrade · $39 · yours forever`,icon:Zn}),t),D(e,()=>$({section:`vault`,name:`Vault`,desc:`Entries, health, import & export`,icon:Qn}),n),D(e,()=>$({section:`sync`,name:`Sync`,desc:`Paired devices & trusted networks`,icon:$n,pro:!0}),n),D(e,()=>$({section:`appearance`,name:`Appearance`,desc:`Theme & accent color`,icon:er}),r),D(e,()=>$({section:`shortcuts`,name:`Shortcuts`,desc:`Keyboard reference`,icon:tr}),r),D(e,g(_,{when:hn,get children(){return[le(),c(()=>$({section:`mobile`,name:`Mobile`,desc:`Autofill & biometric settings`,icon:$n}))]}}),r),D(e,()=>$({section:`feedback`,name:`Feedback`,desc:`Report issues, suggest features`,icon:nr}),i),D(a,f,null),e})()}function ir(){return(()=>{var e=De(),t=e.firstChild,r=t.firstChild.nextSibling,i=r.firstChild.nextSibling,o=r.nextSibling,s=o.firstChild.nextSibling,u=o.nextSibling.nextSibling,d=u.firstChild.nextSibling,f=u.nextSibling,p=f.firstChild.nextSibling,m=f.nextSibling,h=m.nextSibling,v=h.firstChild.nextSibling,y=h.nextSibling,b=y.nextSibling,x=b.firstChild.nextSibling,S=b.nextSibling,C=S.nextSibling,w=C.firstChild.nextSibling,T=C.nextSibling,E=T.nextSibling,ee=E.firstChild.nextSibling,te=E.nextSibling,ne=te.firstChild.nextSibling,re=te.nextSibling,ie=re.firstChild.nextSibling;return re.nextSibling,i.$$click=()=>void l.onLockOnCloseChange(!l.lockOnClose),s.addEventListener(`change`,e=>void l.onAutoLockMinutesChange(Number(e.currentTarget.value))),d.$$click=()=>void l.onBreachMonitoringChange(!l.breachMonitoring),p.$$click=()=>void Nn(),D(p,()=>dt()?`checking...`:`run`),D(t,g(_,{get when(){return pt()},get children(){var e=de(),t=e.firstChild.nextSibling;return D(t,pt),e}}),m),v.$$click=()=>{Ut(e=>!e),H(null)},D(v,()=>Ht()?`cancel`:`change`),D(t,g(_,{get when(){return Ht()},get children(){var e=me(),t=e.firstChild,n=t.nextSibling,r=n.nextSibling,i=r.nextSibling;return t.$$input=e=>Wt(e.target.value),n.$$input=e=>Gt(e.target.value),r.$$keydown=e=>{e.key===`Enter`&&Dn()},r.$$input=e=>qt(e.target.value),D(e,g(_,{get when(){return Xt()},get children(){var e=fe();return D(e,Xt),e}}),i),D(e,g(_,{get when(){return Zt()},get children(){return pe()}}),i),i.$$click=()=>void Dn(),D(i,()=>Jt()?`saving…`:`save new password`),a(()=>i.disabled=Jt()||!B()||!V()||!Kt()),a(()=>t.value=B()),a(()=>n.value=V()),a(()=>r.value=Kt()),e}}),y),D(x,()=>U()?`on`:`off`),D(t,g(_,{get when(){return c(()=>!!U())()&&!en()},get children(){return he()}}),S),D(t,g(_,{get when(){return sn()},get children(){var e=ge(),t=e.firstChild;return D(t,sn),e}}),S),D(t,g(_,{get when(){return!en()},get children(){var e=_e(),t=e.firstChild;return t.$$click=()=>{W(!0),Y(null),X(null),nn(``),an(``),K(``)},D(t,()=>U()?`Change / disable`:`Set up`),e}}),S),D(t,g(_,{get when(){return en()},get children(){var e=Te(),t=e.firstChild.nextSibling,n=t.nextSibling,r=n.firstChild;return t.$$input=e=>K(e.currentTarget.value),D(e,g(_,{get when(){return!U()},get children(){return[ve(),(()=>{var e=ye();return e.$$input=e=>nn(e.currentTarget.value),a(()=>e.value=tn()),e})(),be(),(()=>{var e=xe();return e.$$input=e=>an(e.currentTarget.value),a(()=>e.value=rn()),e})()]}}),n),D(e,g(_,{get when(){return on()},get children(){var e=Se();return D(e,on),e}}),n),r.$$click=()=>{W(!1),Y(null)},D(n,g(_,{get when(){return U()},get children(){var e=Ce();return e.$$click=()=>void Kn(),D(e,()=>q()?`disabling...`:`disable duress`),a(()=>e.disabled=q()),e}}),null),D(n,g(_,{get when(){return!U()},get children(){var e=we();return e.$$click=()=>void Hn(),D(e,()=>q()?`saving...`:`save`),a(()=>e.disabled=q()||!G()||!tn()||!rn()),e}}),null),a(()=>t.value=G()),e}}),S),D(w,(()=>{var e=c(()=>Z().length>0);return()=>e()?`${Z().length} active`:`none`})()),D(t,g(_,{get when(){return Z().length>0},get children(){return g(n,{get each(){return Z()},children:e=>(()=>{var t=Oe(),n=t.firstChild,r=n.nextSibling;return D(n,()=>e.title),r.$$click=()=>void _r(e),D(r,(()=>{var t=c(()=>gn()===e.id);return()=>t()?`sending…`:c(()=>vn()?.id===e.id)()?vn().ok?`sent ✓`:`failed ✗`:`test`})()),a(()=>r.disabled=gn()===e.id),t})()})}}),T),ee.$$click=()=>void Mn(),D(ne,()=>F()?.statusLabel??`Unavailable`),D(ie,()=>F()?.browserLabel??`Unknown`,null),D(ie,()=>F()?.supported?` ✓`:` (interception unavailable)`,null),D(t,g(_,{get when(){return F()?.conflict},get children(){var e=Ee(),t=e.firstChild;return D(t,()=>F().conflict),e}}),null),a(e=>{var t=`peach-toggle ${l.lockOnClose?`is-on`:``}`,n=`peach-toggle ${l.breachMonitoring?`is-on`:``}`,r=dt(),a=`peach-duress-status-pill ${U()?`is-active`:``}`,o=`peach-toggle ${F()?.enabled?`is-on`:``}`,s=!F()?.supported||It();return t!==e.e&&O(i,e.e=t),n!==e.t&&O(d,e.t=n),r!==e.a&&(p.disabled=e.a=r),a!==e.o&&O(x,e.o=a),o!==e.i&&O(ee,e.i=o),s!==e.n&&(ee.disabled=e.n=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),a(()=>s.value=String(l.autoLockMinutes)),e})()}function ar(){return(()=>{var e=Ne(),t=e.firstChild,n=t.firstChild.nextSibling,r=n.firstChild.nextSibling,i=n.nextSibling;i.firstChild;var o=i.nextSibling,s=o.nextSibling,u=s.firstChild.nextSibling,d=s.nextSibling,f=d.firstChild.nextSibling,p=d.nextSibling,m=p.nextSibling,h=m.firstChild.nextSibling,v=m.nextSibling,y=v.firstChild.nextSibling,b=v.nextSibling.firstChild.nextSibling.nextSibling;return D(r,()=>l.entriesCount),D(i,g(_,{get when(){return z()!==null},get fallback(){return(()=>{var e=Pe();return e.$$click=()=>void Wn(),D(e,(()=>{var e=c(()=>!!L());return()=>e()?`scanning...`:c(()=>I()===null)()?`scan`:c(()=>I()===0)()?`none found`:`${I()} found — remove?`})()),a(()=>e.disabled=L()),e})()},get children(){var e=ke();return D(e,(()=>{var e=c(()=>z()===0);return()=>e()?`already clean`:`removed ${z()}`})()),e}}),null),D(t,g(_,{get when(){return c(()=>I()!==null&&I()>0)()&&z()===null},get children(){var e=Ae(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling.firstChild,o=i.nextSibling;return D(t,I,n),D(t,()=>I()===1?`entry`:`entries`,r),i.$$click=()=>Rt(null),o.$$click=()=>void Gn(),D(o,()=>L()?`removing...`:`remove duplicates`),a(()=>o.disabled=L()),e}}),o),u.addEventListener(`change`,e=>void l.onTrashRetentionChange(Number(e.currentTarget.value))),T(f,`click`,l.onOpenHealth,!0),D(t,g(_,{get when(){return Bt()>0},get children(){var e=je(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling;return D(t,Bt,n),D(t,()=>Bt()===1?``:`s`,r),i.$$click=()=>void Un(),e}}),p),T(h,`click`,l.onImport,!0),T(y,`click`,l.onExport,!0),b.$$click=()=>l.onOpenFileImport?.(),D(t,g(_,{get when(){return l.onOpenPanic},get children(){var e=Me(),t=e.firstChild.nextSibling.nextSibling;return t.$$click=()=>l.onOpenPanic?.(),e}}),null),a(()=>u.value=String(l.trashRetentionDays)),e})()}function or(){return P()?(()=>{var e=Le(),t=e.firstChild.firstChild,n=t.firstChild.nextSibling,r=n.firstChild,i=t.nextSibling,o=i.firstChild.nextSibling,s=i.nextSibling,u=s.firstChild,d=s.nextSibling,f=d.firstChild,p=f.firstChild.nextSibling;p.nextSibling;var m=f.nextSibling,h=m.firstChild,v=h.nextSibling,y=d.nextSibling,b=y.firstChild,x=b.firstChild.nextSibling;x.nextSibling;var S=b.nextSibling;return D(n,()=>Bn(N()),null),D(o,(()=>{var e=c(()=>!!kt());return()=>e()?Rn(kt()):`Never synced`})()),u.$$click=()=>void Pn(),D(u,()=>Nt()?`Syncing...`:`Sync now`),D(f,()=>wt().length,p),D(d,()=>wt().map(e=>(()=>{var t=Re(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.firstChild.nextSibling;a.nextSibling;var o=n.nextSibling;return D(r,()=>e.displayName),D(i,()=>Rn(e.lastSeenAt),a),D(i,()=>Rn(e.lastSyncAt),null),o.$$click=()=>void Fn(e.deviceId),t})()),m),h.$$click=()=>l.onOpenSyncPairing?.(`initiate`),v.$$click=()=>l.onOpenSyncPairing?.(`accept`),D(b,()=>Et().length,x),D(y,()=>Et().filter(e=>!e.isTailscale).map(e=>(()=>{var t=ze(),n=t.firstChild,r=n.nextSibling;return D(n,()=>e.ssid??`Unknown network`),r.$$click=()=>void In(e.ssid,e.bssid,e.isTailscale),t})()),S),D(S,g(_,{get when(){return!Vn()},get children(){var e=Ie();return e.$$click=()=>void Ln(),e}})),a(e=>{var t=zn(N()),n=N()===`not_trusted`||N()===`syncing`;return t!==e.e&&E(r,`background`,e.e=t),n!==e.t&&(u.disabled=e.t=n),e},{e:void 0,t:void 0}),e})():(()=>{var e=Fe(),t=e.firstChild.firstChild.nextSibling.nextSibling,n=t.nextSibling;return t.$$click=()=>j(`license`),n.$$click=()=>j(`license`),e})()}function sr(){let e=[{id:`cormorant-italic`,label:`Cormorant Italic`,preview:`Aa`},{id:`cormorant`,label:`Cormorant`,preview:`Aa`},{id:`inter`,label:`Inter`,preview:`Aa`},{id:`system`,label:`System`,preview:`Aa`}],r=[{id:`small`,label:`Small`},{id:`medium`,label:`Default`},{id:`large`,label:`Large`}];return(()=>{var i=Be(),o=i.firstChild.firstChild.nextSibling,s=o.firstChild.nextSibling,c=o.nextSibling.nextSibling,u=c.firstChild.nextSibling,d=c.nextSibling.nextSibling,f=d.firstChild.nextSibling,p=d.nextSibling.nextSibling,m=p.firstChild.nextSibling,h=p.nextSibling.nextSibling.firstChild.nextSibling;return s.$$click=()=>l.onThemeChange(l.theme===`dark`?`light`:`dark`),D(s,()=>l.theme===`dark`?`Switch to light`:`Switch to dark`),D(u,g(n,{each:y,children:e=>(()=>{var n=Ve();return n.$$click=()=>void l.onAccentChange(e.name),a(r=>{var i=l.accentColor===e.name,a=e.hex,o=e.name,s=e.name;return i!==r.e&&n.classList.toggle(`is-active`,r.e=i),a!==r.t&&E(n,`background`,r.t=a),o!==r.a&&t(n,`aria-label`,r.a=o),s!==r.o&&t(n,`title`,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()})),D(f,g(n,{each:e,children:e=>(()=>{var n=He(),r=n.firstChild,i=r.nextSibling;return n.$$click=()=>void l.onDisplayFontChange(e.id),D(r,()=>e.preview),D(i,()=>e.label),a(r=>{var i=l.displayFont===e.id,a=e.id,o=e.label,s=e.label;return i!==r.e&&n.classList.toggle(`is-active`,r.e=i),a!==r.t&&t(n,`data-font-preview`,r.t=a),o!==r.a&&t(n,`aria-label`,r.a=o),s!==r.o&&t(n,`title`,r.o=s),r},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()})),D(m,g(n,{each:r,children:e=>(()=>{var t=Ue();return t.$$click=()=>void l.onTextSizeChange(e.id),D(t,()=>e.label),a(()=>t.classList.toggle(`is-active`,l.textSize===e.id)),t})()})),h.$$click=()=>void l.onReduceMotionChange(!l.reduceMotion),D(h,()=>l.reduceMotion?`On`:`Off`),i})()}function cr(){let[e,t]=s(null),[i,o]=s(null);function u(e){o(null),t(e)}function f(){t(null),o(null)}function p(e,n){let r=h(l.shortcuts,n,e);if(r){o(`Already bound to "${C.find(e=>e.action===r)?.label??r}"`);return}let i={...l.shortcuts,[e]:n};t(null),o(null),l.onShortcutsChange(i)}function m(e){let t={...l.shortcuts,[e]:b[e]};l.onShortcutsChange(t)}function v(){l.onShortcutsChange({...b})}function y(t){if(t.preventDefault(),t.stopPropagation(),t.key===`Escape`){f();return}let n=x(t);if(!n)return;let r=e();r&&p(r,n)}return(()=>{var t=Ge(),r=t.firstChild;r.firstChild;var a=r.nextSibling;a.firstChild;var o=a.nextSibling,s=o.firstChild,c=s.firstChild.nextSibling,l=s.nextSibling;return D(r,g(n,{get each(){return C.filter(e=>e.scope===`entry`)},children:t=>S(t,e,u,f,m,y)}),null),D(a,g(n,{get each(){return C.filter(e=>e.scope===`global`)},children:t=>S(t,e,u,f,m,y)}),null),D(t,g(_,{get when(){return i()},get children(){var e=We();return D(e,i),e}}),o),c.$$click=e=>{e.preventDefault(),chrome.tabs.create({url:`chrome://extensions/shortcuts`})},l.$$click=v,t})();function S(e,t,n,i,o,s){let u=()=>t()===e.action,f=()=>l.shortcuts[e.action],p=()=>{let t=f(),n=b[e.action];return t.key!==n.key||!!t.ctrl!=!!n.ctrl||!!t.meta!=!!n.meta||!!t.shift!=!!n.shift||!!t.alt!=!!n.alt};return(()=>{var t=qe(),l=t.firstChild,m=l.nextSibling;return D(l,()=>e.label),r(e=>{e&&queueMicrotask(()=>{u()&&e.focus()})},m),m.$$keydown=e=>{u()&&s(e)},m.$$click=()=>u()?i():n(e.action),D(m,(()=>{var e=c(()=>!!u());return()=>e()?`Press a key…`:d(f())})()),D(t,g(_,{get when(){return c(()=>!!p())()&&!u()},get children(){var t=Ke();return t.$$click=()=>o(e.action),t}}),null),a(e=>{var t=!!u(),n=!!p();return t!==e.e&&m.classList.toggle(`is-capturing`,e.e=t),n!==e.t&&m.classList.toggle(`is-custom`,e.t=n),e},{e:void 0,t:void 0}),t})()}}let lr=[{feature:`sync`,name:`Peach Sync`,desc:`Encrypted · peer-to-peer · local`},{feature:`ios_app`,name:`Android & iOS`,desc:`Your vault everywhere`},{feature:`passkeys`,name:`Passkeys`,desc:`Zero-knowledge WebAuthn`},{feature:`advanced_health`,name:`Advanced Vault Health`,desc:`Reuse · age · exposure scoring`},{feature:`smart_password_change`,name:`Smart Password Change`,desc:`Guided reset · pre-filled · vault updated`}],[ur,dr]=s(null),[fr,pr]=s(!1),[mr,hr]=s(!1);async function gr(){hr(!0),await w({type:`DEACTIVATE_LICENSE`}),gt(null),await l.onLicenseChange?.(),hr(!1)}async function _r(e){_n(e.id),yn(null);let t=await w({type:`FIRE_CANARY_PING`,payload:{webhookUrl:e.canary.webhookUrl,entryTitle:e.title,trigger:`test`}});yn({id:e.id,ok:t.ok}),_n(null),setTimeout(()=>yn(t=>t?.id===e.id?null:t),3e3)}function vr(){async function e(){await jn(),(ht()?.valid??!1)&&ht()?.plan===`pro`&&await l.onLicenseChange?.()}return(()=>{var r=Xe();return D(r,g(_,{get when(){return P()},get fallback(){return g(_,{get when(){return fr()},get fallback(){return(()=>{var e=$e(),t=e.firstChild,r=t.firstChild,i=t.nextSibling,o=i.nextSibling.firstChild.nextSibling.nextSibling.nextSibling;return D(r,g(p,{class:`peach-pro-upgrade-mark`})),D(i,g(n,{each:lr,children:e=>(()=>{var t=et(),n=t.firstChild.nextSibling.firstChild,r=n.nextSibling;return D(n,()=>e.name),D(r,()=>e.desc),a(()=>t.classList.toggle(`is-highlighted`,l.upgradeHighlight===e.feature)),t})()})),o.$$click=()=>pr(!0),e})()},get children(){var n=Qe(),r=n.firstChild,i=r.nextSibling,o=i.nextSibling,s=o.nextSibling;return D(n,g(S,{}),r),i.$$keydown=t=>{t.key===`Enter`&&e()},i.$$input=e=>vt(e.currentTarget.value),t(i,`spellcheck`,!1),D(n,g(_,{get when(){return yt()},get children(){return Ze()}}),o),o.$$click=()=>void e(),D(o,()=>St()?`activating…`:`Activate`),s.$$click=()=>{pr(!1),M(null),vt(``)},a(()=>o.disabled=St()||!_t().trim()),a(()=>i.value=_t()),n}})},get children(){var e=Ye(),t=e.firstChild,r=t.firstChild,i=r.nextSibling.nextSibling,o=t.nextSibling,s=o.nextSibling;return D(r,g(p,{class:`peach-pro-active-mark`})),D(i,()=>lt(ht()?.issued)),D(e,g(_,{get when(){return ur()},get children(){var e=Je(),t=e.firstChild.nextSibling.firstChild,n=t.nextSibling;return D(t,()=>ur()),n.$$click=()=>An(ur()),D(n,()=>On()?`✓`:`copy`),e}}),o),D(o,g(n,{each:lr,children:e=>(()=>{var t=tt(),n=t.firstChild.nextSibling;return D(n,()=>e.name),t})()})),s.$$click=()=>void gr(),D(s,()=>mr()?`Deactivating…`:`Deactivate`),a(()=>s.disabled=mr()),e}})),r})()}function yr(){return(()=>{var e=it(),t=e.firstChild,r=t.firstChild.nextSibling.nextSibling,i=r.nextSibling.nextSibling,o=i.nextSibling,s=o.firstChild.nextSibling;s.nextSibling;var c=o.nextSibling;return D(r,g(n,{each:ct,children:e=>(()=>{var t=at();return t.$$click=()=>xn(e),D(t,e),a(()=>O(t,`peach-feedback-chip ${bn()===e?`is-active`:``}`)),t})()})),i.$$input=e=>Sn(e.currentTarget.value),D(o,f,s),D(t,g(_,{get when(){return Tn()===`success`},get children(){return nt()}}),c),D(t,g(_,{get when(){return Tn()===`error`},get children(){return rt()}}),c),c.$$click=()=>void qn(),D(c,()=>Cn()?`Sending...`:`Send feedback`),a(()=>c.disabled=Cn()||!Q().trim()),a(()=>i.value=Q()),e})()}function br(){return(()=>{var e=ot(),t=e.firstChild,n=t.firstChild.nextSibling.firstChild,r=n.nextSibling,i=t.nextSibling.firstChild.nextSibling.firstChild;return D(n,()=>dn()?`Enabled`:`Disabled`),r.$$click=()=>void un?.openAutofillSettings(),D(r,()=>dn()?`Change`:`Enable`),D(i,()=>pn()?`Available`:`Not available`),e})()}return(()=>{var t=st(),n=t.firstChild.firstChild,r=n.nextSibling;return n.$$click=Jn,D(r,Yn),D(t,g(e,{get fallback(){return rr()},get children(){return[g(o,{get when(){return A()===`security`},get children(){return ir()}}),g(o,{get when(){return A()===`vault`},get children(){return ar()}}),g(o,{get when(){return A()===`sync`},get children(){return or()}}),g(o,{get when(){return A()===`appearance`},get children(){return sr()}}),g(o,{get when(){return A()===`shortcuts`},get children(){return cr()}}),g(o,{get when(){return A()===`license`},get children(){return vr()}}),g(o,{get when(){return A()===`feedback`},get children(){return yr()}}),g(o,{get when(){return A()===`mobile`},get children(){return br()}})]}}),null),t})()}f([`click`,`input`,`keydown`]);export{k as SettingsView};