PageSourceSearch

https://kindredly.ai/js/flowModeOpenB7Q2DKGy.js

js kindredly.ai collected 2026-09-24 14:31:03 UTC 1,680 bytes, 1 lines download raw bytes

1import{a as w}from"./url.utilsCetgXmY_.js";import{u as l}from"./modal.mixinDnpIrxXn.js";import"./constantsDsHwd9pV.js";import"./vue-runtimeBcw72k-n.js";import"./cjs-helpersC4iS2aBk.js";import"./adminsite.storeDQcNSYX0.js";import"./chunkReloadRecoveryC4XyrbqR.js";import"./bootstrap-vue-nextD6HU9H8G.js";import"./dexie2jmnBxhj.js";const e=window.browser||window.chrome;let a=null;function u(){var n,i;if(a==null)try{a=((i=(n=e==null?void 0:e.runtime)==null?void 0:n.getURL)==null?void 0:i.call(n,"/"))||""}catch{a=""}return a}async function p(n){var o;const i=w(n,"hostname");if(!i||!((o=e==null?void 0:e.tabs)!=null&&o.query))return[];const t=u();return(await e.tabs.query({})||[]).filter(r=>{const c=(r==null?void 0:r.url)||(r==null?void 0:r.pendingUrl)||"";return!c||!/^https?:/i.test(c)||t&&c.startsWith(t)?!1:w(c,"hostname")===i})}async function m(n){var i;if((n==null?void 0:n.id)!=null&&(await e.tabs.update(n.id,{active:!0}),n.windowId!=null&&((i=e.windows)!=null&&i.update)))try{await e.windows.update(n.windowId,{focused:!0})}catch{}}async function f(n){var i;(i=e==null?void 0:e.tabs)!=null&&i.create?await e.tabs.create({url:n,active:!0}):window.open(n,"_blank")}function d(n,i){const{openModal:t}=l();return new Promise(s=>{t("flow-mode-open-choice-modal",{url:n,tabs:i},{onClose:o=>s({action:(o==null?void 0:o.action)??"cancel",tab:o==null?void 0:o.tab})})})}async function F(n){try{const i=await p(n);if(!i.length){await f(n);return}const{action:t,tab:s}=await d(n,i);t==="existing"&&s?await m(s):t==="new"&&await f(n)}catch(i){console.warn("[FLOW_MODE] openViaFlowMode failed; opening normally",i);try{window.open(n,"_blank")}catch{}}}export{F as openViaFlowMode};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.