Settings-BFgCKYT5.js

41.6 KB · raw

1import{A as e,C as t,D as n,E as r,M as i,S as a,T as o,_ as s,a as c,b as l,d as u,f as d,g as f,h as p,i as m,k as h,m as g,n as _,o as v,p as y,r as b,t as x,v as S,w as C,x as w,y as T}from"./index-mdf3aAyu.js";var ee=w(`<span class=peach-pro-mark aria-label="Pro feature">✦`),te=w(`<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=w(`<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">`),E=w(`<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">`),re=w(`<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">`),ie=w(`<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">`),ae=w(`<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">`),oe=w(`<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">`),se=w(`<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">`),ce=w(`<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`),le=w(`<div class="peach-settings-row peach-settings-row--meta"><span>Last check</span><span class=peach-settings-value>`),ue=w(`<p class="peach-hint peach-hint-error"style=margin:0>`),de=w(`<p class=peach-hint style=margin:0;color:var(--peach-accent)>password changed ✓`),fe=w(`<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>`),pe=w(`<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.`),me=w(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:var(--peach-sync-ok)>`),he=w(`<div class="peach-settings-row peach-settings-row--meta"><button class="peach-btn peach-btn--subtle peach-btn--sm">`),ge=w(`<label class=peach-label>new duress password`),_e=w(`<input class=peach-settings-input type=password placeholder="duress password (min 8 chars)"autocomplete=new-password>`),ve=w(`<label class=peach-label>confirm duress password`),ye=w(`<input class=peach-settings-input type=password placeholder="confirm duress password"autocomplete=new-password>`),be=w(`<p class="peach-hint peach-hint-error">`),xe=w(`<button class="peach-btn peach-btn--ghost peach-btn--sm"style=color:var(--peach-breach)>`),Se=w(`<button class="peach-btn peach-btn--accent peach-btn--sm">`),Ce=w(`<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`),we=w(`<div class="peach-settings-row peach-settings-row--meta"><span class=peach-settings-value style=color:#e7b36b>`),Te=w(`<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.`),Ee=w(`<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>`),De=w(`<span class=peach-settings-value style=color:var(--peach-sync-ok)>`),Oe=w(`<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">`),ke=w(`<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`),Ae=w(`<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`),je=w(`<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`),Me=w(`<button class="peach-btn peach-btn--subtle peach-btn--sm">`),Ne=w(`<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 →`),Pe=w(`<button class="peach-btn peach-btn--subtle peach-btn--sm">Mark current network as trusted`),Fe=w(`<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`),Ie=w(`<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`),Le=w(`<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`),Re=w(`<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">`),ze=w(`<button class=peach-accent-swatch>`),Be=w(`<button class=peach-font-swatch><span class=peach-font-swatch-glyph></span><span class=peach-font-swatch-name>`),Ve=w(`<button class="peach-btn peach-btn--ghost peach-btn--sm">`),He=w(`<div class=peach-shortcuts-conflict>`),Ue=w(`<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`),We=w(`<button class=peach-shortcut-reset title="Reset to default">↺`),Ge=w(`<div class=peach-shortcut-row><span class=peach-shortcut-row-label></span><button class=peach-shortcut-chip>`),Ke=w(`<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>`),qe=w(`<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>`),Je=w(`<div class=peach-settings-body>`),Ye=w(`<p class=peach-pro-key-error>That key doesn't look right.`),Xe=w(`<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`),Ze=w(`<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`),Qe=w(`<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>`),$e=w(`<div class=peach-pro-active-feature><span class=peach-pro-active-feature-mark>✦</span><span class=peach-pro-active-feature-name>`),et=w(`<p class="peach-feedback-result peach-feedback-result--ok">Sent — thank you`),tt=w(`<p class="peach-feedback-result peach-feedback-result--err">Failed to send — try again`),nt=w(`<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`),rt=w(`<button>`),it=w(`<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>`),at=[`Bug report`,`Feature request`,`Question`,`Other`];function ot(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 st(e){return e===`security`||e===`vault`||e===`sync`||e===`appearance`||e===`shortcuts`||e===`license`||e===`feedback`}function D(f){let w=chrome.runtime.getManifest().version,D=f.initialSection,[O,k]=e(D&&st(D)?D:null),[ct,lt]=e(!1),[ut,dt]=e(null),[ft,pt]=e(null),[mt,ht]=e(``),[gt,A]=e(null),[_t,vt]=e(null),[yt,bt]=e(!1),[xt,St]=e([]),[j,Ct]=e([]),[M,wt]=e(`offline`),[Tt,Et]=e(void 0),[Dt,Ot]=e(!1),N=()=>f.isPro??Dt(),[kt,At]=e(!1),[P,jt]=e(null),[Mt,Nt]=e(!1),[F,Pt]=e(null),[I,L]=e(!1),[R,Ft]=e(null),[It,Lt]=e(0),[Rt,zt]=e(!1),[z,Bt]=e(``),[B,Vt]=e(``),[Ht,Ut]=e(``),[Wt,Gt]=e(!1),[Kt,V]=e(null),[qt,Jt]=e(!1),[H,Yt]=e(!1),[Xt,U]=e(!1),[Zt,Qt]=e(``),[$t,en]=e(``),[W,G]=e(``),[K,q]=e(!1),[tn,J]=e(null),[nn,Y]=e(null),[X,rn]=e([]),[an,on]=e(null),[sn,cn]=e(null),[ln,un]=e(`Bug report`),[Z,dn]=e(``),[fn,pn]=e(!1),[mn,Q]=e(null);i(async()=>{let[e,t,n,r,i,a]=await Promise.all([x({type:`GET_LICENSE`}),x({type:`GET_SYNC_STATE`}),x({type:`GET_PASSKEY_PROVIDER_STATE`}),x({type:`IS_DURESS_ENABLED`}),x({type:`GET_SETTINGS`}),x({type:`GET_LICENSE_KEY`})]);if(e.ok&&pt(e.data??null),t.ok){let e=t;e.data&&(St(e.data.pairedDevices??[]),Ct(e.data.trustedNetworks??[]),wt(e.data.status??`offline`),Et(e.data.lastSyncAt),Ot(e.data.isPro??!1))}if(n.ok&&jt(n.data??null),r.ok&&Yt(r.data??!1),i.ok){let e=i.data;Lt(e?.declinedCardFingerprints?.length??0)}a.ok&&$n(a.data??null);let o=await x({type:`GET_ENTRIES`});o.ok&&rn((o.data??[]).filter(e=>e.canary?.webhookUrl).map(e=>({id:e.id,title:e.title,canary:e.canary}))),chrome.runtime.onMessage.addListener(e=>{e.type===`SYNC_STATE_UPDATE`&&(St(e.pairedDevices??[]),Ct(e.trustedNetworks??[]),wt(e.status??`offline`),Et(e.lastSyncAt),Ot(e.isPro??!1))})});async function hn(){if(V(null),!z().trim()){V(`enter your current password`);return}if(B().length<12){V(`new password must be at least 12 characters`);return}if(B()!==Ht()){V(`new passwords do not match`);return}if(B()===z()){V(`new password must differ from current`);return}Gt(!0);let e=await x({type:`CHANGE_PASSWORD`,payload:{currentPassword:z(),newPassword:B()}});e.ok?(Jt(!0),Bt(``),Vt(``),Ut(``),setTimeout(()=>{Jt(!1),zt(!1)},2200)):V(e.error??`failed to change password`),Gt(!1)}let[gn,_n]=e(!1);async function vn(e){await navigator.clipboard.writeText(e),_n(!0),setTimeout(()=>_n(!1),2e3)}async function yn(){let e=mt().trim();if(!e)return;bt(!0),A(null),vt(null);let t=await x({type:`ACTIVATE_LICENSE`,payload:{key:e}});if(bt(!1),t.ok){let n=t.data;n?.valid?(pt(n),$n(e),vt(`License activated!`),ht(``)):A(`Invalid license key`)}else A(`Activation failed`)}async function bn(){let e=P();if(!e||!e.supported)return;Nt(!0);let t=await x({type:`SET_PASSKEY_PROVIDER_ENABLED`,payload:{enabled:!e.enabled}});Nt(!1),t.ok&&jt(t.data??null)}async function xn(){lt(!0),dt(null);let e=await x({type:`CHECK_ALL_BREACHES`});if(lt(!1),e.ok){let t=e.data??{},n=Object.values(t).filter(e=>e>0).length;dt(n>0?`${n} password${n>1?`s`:``} found in breaches`:`All passwords clean`),f.onBreachCheckDone()}}async function Sn(){M()!==`not_trusted`&&(At(!0),await x({type:`TRIGGER_SYNC`}),setTimeout(()=>At(!1),3e3))}async function Cn(e){await x({type:`REMOVE_PAIRED_DEVICE`,payload:{deviceId:e}})}async function wn(e,t,n){await x({type:`REMOVE_TRUSTED_NETWORK`,payload:{ssid:e,bssid:t,isTailscale:n}})}async function Tn(){await x({type:`MARK_NETWORK_TRUSTED`})}function En(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 Dn(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 On(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 kn(){return j().length>0}async function An(){let e=W().trim(),t=Zt().trim(),n=$t().trim();if(!e){J(`enter your main password to confirm`);return}if(t.length<8){J(`duress password must be at least 8 characters`);return}if(t===e){J(`duress password must differ from your main password`);return}if(t!==n){J(`passwords do not match`);return}q(!0),J(null);let r=await x({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!r.ok||!r.data){J(`incorrect main password`),q(!1);return}let i=await x({type:`SETUP_DURESS`,payload:{duressPassword:t}});q(!1),i.ok?(Yt(!0),U(!1),Qt(``),en(``),G(``),Y(`Duress password set. If entered, a decoy vault will be shown.`),setTimeout(()=>Y(null),5e3)):J(i.error??`failed to set duress password`)}async function jn(){await x({type:`UPDATE_SETTINGS`,payload:{declinedCardFingerprints:[]}}),Lt(0)}async function Mn(){L(!0),Ft(null);let e=await x({type:`COUNT_DUPLICATES`});L(!1),e.ok&&Pt(e.data??0)}async function Nn(){L(!0);let e=await x({type:`DEDUPLICATE_ENTRIES`});L(!1),e.ok&&(Ft(e.data??0),Pt(0))}async function Pn(){let e=W().trim();if(!e){J(`enter your main password to confirm`);return}q(!0),J(null);let t=await x({type:`VERIFY_MAIN_PASSWORD`,payload:{password:e}});if(!t.ok||!t.data){J(`incorrect main password`),q(!1);return}let n=await x({type:`DISABLE_DURESS`});q(!1),n.ok?(Yt(!1),U(!1),G(``),Y(`Duress password disabled.`),setTimeout(()=>Y(null),4e3)):J(n.error??`failed to disable duress password`)}async function Fn(){if(!Z().trim()||fn())return;pn(!0),Q(null);let e=await x({type:`SUBMIT_FEEDBACK`,payload:{category:ln(),message:Z().trim(),version:w,browser:navigator.userAgent}});pn(!1),e.ok?(Q(`success`),dn(``),setTimeout(()=>Q(null),4e3)):Q(`error`)}function In(){O()===null?f.onBack():k(null)}function Ln(){let e=O();return e===null?`settings`:e===`license`?`account`:e}function $(e){return(()=>{var t=te(),r=t.firstChild,i=r.nextSibling.firstChild,a=i.nextSibling;return t.$$click=()=>k(e.section),s(r,()=>e.icon()),s(i,()=>e.name,null),s(i,n(o,{get when(){return S(()=>!!e.pro)()&&!N()},get children(){return ee()}}),null),s(a,()=>e.desc),t})()}let Rn=()=>ne(),zn=()=>E(),Bn=()=>re(),Vn=()=>ie(),Hn=()=>ae(),Un=()=>oe(),Wn=()=>se();function Gn(){return(()=>{var e=ce(),t=e.firstChild.nextSibling,n=t.nextSibling,r=n.nextSibling,i=r.nextSibling,a=i.firstChild;return a.firstChild,s(e,()=>$({section:`security`,name:`Security`,desc:`Locking, breach monitoring, passkeys`,icon:Rn}),t),s(e,()=>$({section:`license`,name:`Peach Pro`,desc:N()?`Active · manage your license`:`Upgrade · $39 · yours forever`,icon:zn}),t),s(e,()=>$({section:`vault`,name:`Vault`,desc:`Entries, health, import & export`,icon:Bn}),n),s(e,()=>$({section:`sync`,name:`Sync`,desc:`Paired devices & trusted networks`,icon:Vn,pro:!0}),n),s(e,()=>$({section:`appearance`,name:`Appearance`,desc:`Theme & accent color`,icon:Hn}),r),s(e,()=>$({section:`shortcuts`,name:`Shortcuts`,desc:`Keyboard reference`,icon:Un}),r),s(e,()=>$({section:`feedback`,name:`Feedback`,desc:`Report issues, suggest features`,icon:Wn}),i),s(a,w,null),e})()}function Kn(){return(()=>{var e=Te(),r=e.firstChild,i=r.firstChild.nextSibling,a=i.firstChild.nextSibling,c=i.nextSibling,l=c.firstChild.nextSibling,u=c.nextSibling.nextSibling,d=u.firstChild.nextSibling,m=u.nextSibling,g=m.firstChild.nextSibling,_=m.nextSibling,v=_.nextSibling,y=v.firstChild.nextSibling,b=v.nextSibling,x=b.nextSibling,C=x.firstChild.nextSibling,w=x.nextSibling,T=w.nextSibling,ee=T.firstChild.nextSibling,te=T.nextSibling,ne=te.nextSibling,E=ne.firstChild.nextSibling,re=ne.nextSibling,ie=re.firstChild.nextSibling,ae=re.nextSibling,oe=ae.firstChild.nextSibling;return ae.nextSibling,a.$$click=()=>void f.onLockOnCloseChange(!f.lockOnClose),l.addEventListener(`change`,e=>void f.onAutoLockMinutesChange(Number(e.currentTarget.value))),d.$$click=()=>void f.onBreachMonitoringChange(!f.breachMonitoring),g.$$click=()=>void xn(),s(g,()=>ct()?`checking...`:`run`),s(r,n(o,{get when(){return ut()},get children(){var e=le(),t=e.firstChild.nextSibling;return s(t,ut),e}}),_),y.$$click=()=>{zt(e=>!e),V(null)},s(y,()=>Rt()?`cancel`:`change`),s(r,n(o,{get when(){return Rt()},get children(){var e=fe(),t=e.firstChild,r=t.nextSibling,i=r.nextSibling,a=i.nextSibling;return t.$$input=e=>Bt(e.target.value),r.$$input=e=>Vt(e.target.value),i.$$keydown=e=>{e.key===`Enter`&&hn()},i.$$input=e=>Ut(e.target.value),s(e,n(o,{get when(){return Kt()},get children(){var e=ue();return s(e,Kt),e}}),a),s(e,n(o,{get when(){return qt()},get children(){return de()}}),a),a.$$click=()=>void hn(),s(a,()=>Wt()?`saving…`:`save new password`),h(()=>a.disabled=Wt()||!z()||!B()||!Ht()),h(()=>t.value=z()),h(()=>r.value=B()),h(()=>i.value=Ht()),e}}),b),s(C,()=>H()?`on`:`off`),s(r,n(o,{get when(){return S(()=>!!H())()&&!Xt()},get children(){return pe()}}),w),s(r,n(o,{get when(){return nn()},get children(){var e=me(),t=e.firstChild;return s(t,nn),e}}),w),s(r,n(o,{get when(){return!Xt()},get children(){var e=he(),t=e.firstChild;return t.$$click=()=>{U(!0),J(null),Y(null),Qt(``),en(``),G(``)},s(t,()=>H()?`Change / disable`:`Set up`),e}}),w),s(r,n(o,{get when(){return Xt()},get children(){var e=Ce(),t=e.firstChild.nextSibling,r=t.nextSibling,i=r.firstChild;return t.$$input=e=>G(e.currentTarget.value),s(e,n(o,{get when(){return!H()},get children(){return[ge(),(()=>{var e=_e();return e.$$input=e=>Qt(e.currentTarget.value),h(()=>e.value=Zt()),e})(),ve(),(()=>{var e=ye();return e.$$input=e=>en(e.currentTarget.value),h(()=>e.value=$t()),e})()]}}),r),s(e,n(o,{get when(){return tn()},get children(){var e=be();return s(e,tn),e}}),r),i.$$click=()=>{U(!1),J(null)},s(r,n(o,{get when(){return H()},get children(){var e=xe();return e.$$click=()=>void Pn(),s(e,()=>K()?`disabling...`:`disable duress`),h(()=>e.disabled=K()),e}}),null),s(r,n(o,{get when(){return!H()},get children(){var e=Se();return e.$$click=()=>void An(),s(e,()=>K()?`saving...`:`save`),h(()=>e.disabled=K()||!W()||!Zt()||!$t()),e}}),null),h(()=>t.value=W()),e}}),w),s(ee,(()=>{var e=S(()=>X().length>0);return()=>e()?`${X().length} active`:`none`})()),s(r,n(o,{get when(){return X().length>0},get children(){return n(t,{get each(){return X()},children:e=>(()=>{var t=Ee(),n=t.firstChild,r=n.nextSibling;return s(n,()=>e.title),r.$$click=()=>void ar(e),s(r,(()=>{var t=S(()=>an()===e.id);return()=>t()?`sending…`:S(()=>sn()?.id===e.id)()?sn().ok?`sent ✓`:`failed ✗`:`test`})()),h(()=>r.disabled=an()===e.id),t})()})}}),te),E.$$click=()=>void bn(),s(ie,()=>P()?.statusLabel??`Unavailable`),s(oe,()=>P()?.browserLabel??`Unknown`,null),s(oe,()=>P()?.supported?` ✓`:` (interception unavailable)`,null),s(r,n(o,{get when(){return P()?.conflict},get children(){var e=we(),t=e.firstChild;return s(t,()=>P().conflict),e}}),null),h(e=>{var t=`peach-toggle ${f.lockOnClose?`is-on`:``}`,n=`peach-toggle ${f.breachMonitoring?`is-on`:``}`,r=ct(),i=`peach-duress-status-pill ${H()?`is-active`:``}`,o=`peach-toggle ${P()?.enabled?`is-on`:``}`,s=!P()?.supported||Mt();return t!==e.e&&p(a,e.e=t),n!==e.t&&p(d,e.t=n),r!==e.a&&(g.disabled=e.a=r),i!==e.o&&p(C,e.o=i),o!==e.i&&p(E,e.i=o),s!==e.n&&(E.disabled=e.n=s),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0}),h(()=>l.value=String(f.autoLockMinutes)),e})()}function qn(){return(()=>{var e=je(),t=e.firstChild,r=t.firstChild.nextSibling,i=r.firstChild.nextSibling,a=r.nextSibling;a.firstChild;var c=a.nextSibling,l=c.nextSibling,u=l.firstChild.nextSibling,d=l.nextSibling,p=d.firstChild.nextSibling,m=d.nextSibling,_=m.nextSibling,v=_.firstChild.nextSibling,y=_.nextSibling,b=y.firstChild.nextSibling,x=y.nextSibling.firstChild.nextSibling.nextSibling;return s(i,()=>f.entriesCount),s(a,n(o,{get when(){return R()!==null},get fallback(){return(()=>{var e=Me();return e.$$click=()=>void Mn(),s(e,(()=>{var e=S(()=>!!I());return()=>e()?`scanning...`:S(()=>F()===null)()?`scan`:S(()=>F()===0)()?`none found`:`${F()} found — remove?`})()),h(()=>e.disabled=I()),e})()},get children(){var e=De();return s(e,(()=>{var e=S(()=>R()===0);return()=>e()?`already clean`:`removed ${R()}`})()),e}}),null),s(t,n(o,{get when(){return S(()=>F()!==null&&F()>0)()&&R()===null},get children(){var e=Oe(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling.firstChild,a=i.nextSibling;return s(t,F,n),s(t,()=>F()===1?`entry`:`entries`,r),i.$$click=()=>Pt(null),a.$$click=()=>void Nn(),s(a,()=>I()?`removing...`:`remove duplicates`),h(()=>a.disabled=I()),e}}),c),u.addEventListener(`change`,e=>void f.onTrashRetentionChange(Number(e.currentTarget.value))),g(p,`click`,f.onOpenHealth,!0),s(t,n(o,{get when(){return It()>0},get children(){var e=ke(),t=e.firstChild,n=t.firstChild,r=n.nextSibling;r.nextSibling;var i=t.nextSibling;return s(t,It,n),s(t,()=>It()===1?``:`s`,r),i.$$click=()=>void jn(),e}}),m),g(v,`click`,f.onImport,!0),g(b,`click`,f.onExport,!0),x.$$click=()=>f.onOpenFileImport?.(),s(t,n(o,{get when(){return f.onOpenPanic},get children(){var e=Ae(),t=e.firstChild.nextSibling.nextSibling;return t.$$click=()=>f.onOpenPanic?.(),e}}),null),h(()=>u.value=String(f.trashRetentionDays)),e})()}function Jn(){return N()?(()=>{var e=Fe(),t=e.firstChild.firstChild,r=t.firstChild.nextSibling,i=r.firstChild,a=t.nextSibling,c=a.firstChild.nextSibling,u=a.nextSibling,d=u.firstChild,p=u.nextSibling,m=p.firstChild,g=m.firstChild.nextSibling;g.nextSibling;var _=m.nextSibling,v=_.firstChild,y=v.nextSibling,b=p.nextSibling,x=b.firstChild,C=x.firstChild.nextSibling;C.nextSibling;var w=x.nextSibling;return s(r,()=>On(M()),null),s(c,(()=>{var e=S(()=>!!Tt());return()=>e()?En(Tt()):`Never synced`})()),d.$$click=()=>void Sn(),s(d,()=>kt()?`Syncing...`:`Sync now`),s(m,()=>xt().length,g),s(p,()=>xt().map(e=>(()=>{var t=Ie(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.firstChild.nextSibling;a.nextSibling;var o=n.nextSibling;return s(r,()=>e.displayName),s(i,()=>En(e.lastSeenAt),a),s(i,()=>En(e.lastSyncAt),null),o.$$click=()=>void Cn(e.deviceId),t})()),_),v.$$click=()=>f.onOpenSyncPairing?.(`initiate`),y.$$click=()=>f.onOpenSyncPairing?.(`accept`),s(x,()=>j().length,C),s(b,()=>j().filter(e=>!e.isTailscale).map(e=>(()=>{var t=Le(),n=t.firstChild,r=n.nextSibling;return s(n,()=>e.ssid??`Unknown network`),r.$$click=()=>void wn(e.ssid,e.bssid,e.isTailscale),t})()),w),s(w,n(o,{get when(){return!kn()},get children(){var e=Pe();return e.$$click=()=>void Tn(),e}})),h(e=>{var t=Dn(M()),n=M()===`not_trusted`||M()===`syncing`;return t!==e.e&&l(i,`background`,e.e=t),n!==e.t&&(d.disabled=e.t=n),e},{e:void 0,t:void 0}),e})():(()=>{var e=Ne(),t=e.firstChild.firstChild.nextSibling.nextSibling,n=t.nextSibling;return t.$$click=()=>k(`license`),n.$$click=()=>k(`license`),e})()}function Yn(){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=Re(),a=i.firstChild.firstChild.nextSibling,o=a.firstChild.nextSibling,c=a.nextSibling.nextSibling,u=c.firstChild.nextSibling,d=c.nextSibling.nextSibling,p=d.firstChild.nextSibling,m=d.nextSibling.nextSibling,g=m.firstChild.nextSibling,_=m.nextSibling.nextSibling.firstChild.nextSibling;return o.$$click=()=>f.onThemeChange(f.theme===`dark`?`light`:`dark`),s(o,()=>f.theme===`dark`?`Switch to light`:`Switch to dark`),s(u,n(t,{each:y,children:e=>(()=>{var t=ze();return t.$$click=()=>void f.onAccentChange(e.name),h(n=>{var r=f.accentColor===e.name,i=e.hex,a=e.name,o=e.name;return r!==n.e&&t.classList.toggle(`is-active`,n.e=r),i!==n.t&&l(t,`background`,n.t=i),a!==n.a&&T(t,`aria-label`,n.a=a),o!==n.o&&T(t,`title`,n.o=o),n},{e:void 0,t:void 0,a:void 0,o:void 0}),t})()})),s(p,n(t,{each:e,children:e=>(()=>{var t=Be(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>void f.onDisplayFontChange(e.id),s(n,()=>e.preview),s(r,()=>e.label),h(n=>{var r=f.displayFont===e.id,i=e.id,a=e.label,o=e.label;return r!==n.e&&t.classList.toggle(`is-active`,n.e=r),i!==n.t&&T(t,`data-font-preview`,n.t=i),a!==n.a&&T(t,`aria-label`,n.a=a),o!==n.o&&T(t,`title`,n.o=o),n},{e:void 0,t:void 0,a:void 0,o:void 0}),t})()})),s(g,n(t,{each:r,children:e=>(()=>{var t=Ve();return t.$$click=()=>void f.onTextSizeChange(e.id),s(t,()=>e.label),h(()=>t.classList.toggle(`is-active`,f.textSize===e.id)),t})()})),_.$$click=()=>void f.onReduceMotionChange(!f.reduceMotion),s(_,()=>f.reduceMotion?`On`:`Off`),i})()}function Xn(){let[r,i]=e(null),[l,u]=e(null);function d(e){u(null),i(e)}function p(){i(null),u(null)}function g(e,t){let n=m(f.shortcuts,t,e);if(n){u(`Already bound to "${b.find(e=>e.action===n)?.label??n}"`);return}let r={...f.shortcuts,[e]:t};i(null),u(null),f.onShortcutsChange(r)}function y(e){let t={...f.shortcuts,[e]:_[e]};f.onShortcutsChange(t)}function x(){f.onShortcutsChange({..._})}function C(e){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`){p();return}let t=v(e);if(!t)return;let n=r();n&&g(n,t)}return(()=>{var e=Ue(),i=e.firstChild;i.firstChild;var a=i.nextSibling;a.firstChild;var c=a.nextSibling,u=c.firstChild,f=u.firstChild.nextSibling,m=u.nextSibling;return s(i,n(t,{get each(){return b.filter(e=>e.scope===`entry`)},children:e=>w(e,r,d,p,y,C)}),null),s(a,n(t,{get each(){return b.filter(e=>e.scope===`global`)},children:e=>w(e,r,d,p,y,C)}),null),s(e,n(o,{get when(){return l()},get children(){var e=He();return s(e,l),e}}),c),f.$$click=e=>{e.preventDefault(),chrome.tabs.create({url:`chrome://extensions/shortcuts`})},m.$$click=x,e})();function w(e,t,r,i,l,u){let d=()=>t()===e.action,p=()=>f.shortcuts[e.action],m=()=>{let t=p(),n=_[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=Ge(),f=t.firstChild,g=f.nextSibling;return s(f,()=>e.label),a(e=>{e&&queueMicrotask(()=>{d()&&e.focus()})},g),g.$$keydown=e=>{d()&&u(e)},g.$$click=()=>d()?i():r(e.action),s(g,(()=>{var e=S(()=>!!d());return()=>e()?`Press a key…`:c(p())})()),s(t,n(o,{get when(){return S(()=>!!m())()&&!d()},get children(){var t=We();return t.$$click=()=>l(e.action),t}}),null),h(e=>{var t=!!d(),n=!!m();return t!==e.e&&g.classList.toggle(`is-capturing`,e.e=t),n!==e.t&&g.classList.toggle(`is-custom`,e.t=n),e},{e:void 0,t:void 0}),t})()}}let Zn=[{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`}],[Qn,$n]=e(null),[er,tr]=e(!1),[nr,rr]=e(!1);async function ir(){rr(!0),await x({type:`DEACTIVATE_LICENSE`}),pt(null),await f.onLicenseChange?.(),rr(!1)}async function ar(e){on(e.id),cn(null);let t=await x({type:`FIRE_CANARY_PING`,payload:{webhookUrl:e.canary.webhookUrl,entryTitle:e.title,trigger:`test`}});cn({id:e.id,ok:t.ok}),on(null),setTimeout(()=>cn(t=>t?.id===e.id?null:t),3e3)}function or(){async function e(){await yn(),(ft()?.valid??!1)&&ft()?.plan===`pro`&&await f.onLicenseChange?.()}return(()=>{var r=Je();return s(r,n(o,{get when(){return N()},get fallback(){return n(o,{get when(){return er()},get fallback(){return(()=>{var e=Ze(),r=e.firstChild,i=r.firstChild,a=r.nextSibling,o=a.nextSibling.firstChild.nextSibling.nextSibling.nextSibling;return s(i,n(u,{class:`peach-pro-upgrade-mark`})),s(a,n(t,{each:Zn,children:e=>(()=>{var t=Qe(),n=t.firstChild.nextSibling.firstChild,r=n.nextSibling;return s(n,()=>e.name),s(r,()=>e.desc),h(()=>t.classList.toggle(`is-highlighted`,f.upgradeHighlight===e.feature)),t})()})),o.$$click=()=>tr(!0),e})()},get children(){var t=Xe(),r=t.firstChild,i=r.nextSibling,a=i.nextSibling,c=a.nextSibling;return s(t,n(d,{}),r),i.$$keydown=t=>{t.key===`Enter`&&e()},i.$$input=e=>ht(e.currentTarget.value),T(i,`spellcheck`,!1),s(t,n(o,{get when(){return gt()},get children(){return Ye()}}),a),a.$$click=()=>void e(),s(a,()=>yt()?`activating…`:`Activate`),c.$$click=()=>{tr(!1),A(null),ht(``)},h(()=>a.disabled=yt()||!mt().trim()),h(()=>i.value=mt()),t}})},get children(){var e=qe(),r=e.firstChild,i=r.firstChild,a=i.nextSibling.nextSibling,c=r.nextSibling,l=c.nextSibling;return s(i,n(u,{class:`peach-pro-active-mark`})),s(a,()=>ot(ft()?.issued)),s(e,n(o,{get when(){return Qn()},get children(){var e=Ke(),t=e.firstChild.nextSibling.firstChild,n=t.nextSibling;return s(t,()=>Qn()),n.$$click=()=>vn(Qn()),s(n,()=>gn()?`✓`:`copy`),e}}),c),s(c,n(t,{each:Zn,children:e=>(()=>{var t=$e(),n=t.firstChild.nextSibling;return s(n,()=>e.name),t})()})),l.$$click=()=>void ir(),s(l,()=>nr()?`Deactivating…`:`Deactivate`),h(()=>l.disabled=nr()),e}})),r})()}function sr(){return(()=>{var e=nt(),r=e.firstChild,i=r.firstChild.nextSibling.nextSibling,a=i.nextSibling.nextSibling,c=a.nextSibling,l=c.firstChild.nextSibling;l.nextSibling;var u=c.nextSibling;return s(i,n(t,{each:at,children:e=>(()=>{var t=rt();return t.$$click=()=>un(e),s(t,e),h(()=>p(t,`peach-feedback-chip ${ln()===e?`is-active`:``}`)),t})()})),a.$$input=e=>dn(e.currentTarget.value),s(c,w,l),s(r,n(o,{get when(){return mn()===`success`},get children(){return et()}}),u),s(r,n(o,{get when(){return mn()===`error`},get children(){return tt()}}),u),u.$$click=()=>void Fn(),s(u,()=>fn()?`Sending...`:`Send feedback`),h(()=>u.disabled=fn()||!Z().trim()),h(()=>a.value=Z()),e})()}return(()=>{var e=it(),t=e.firstChild.firstChild,i=t.nextSibling;return t.$$click=In,s(i,Ln),s(e,n(r,{get fallback(){return Gn()},get children(){return[n(C,{get when(){return O()===`security`},get children(){return Kn()}}),n(C,{get when(){return O()===`vault`},get children(){return qn()}}),n(C,{get when(){return O()===`sync`},get children(){return Jn()}}),n(C,{get when(){return O()===`appearance`},get children(){return Yn()}}),n(C,{get when(){return O()===`shortcuts`},get children(){return Xn()}}),n(C,{get when(){return O()===`license`},get children(){return or()}}),n(C,{get when(){return O()===`feedback`},get children(){return sr()}})]}}),null),e})()}f([`click`,`input`,`keydown`]);export{D as SettingsView};