PageSourceSearch

https://enthub.it/build/assets/useAlertDialog-VNm_616D.js

js enthub.it collected 2026-09-25 04:24:58 UTC 2,298 bytes, 2 lines download raw bytes

1import{m as t,o as e,p as o,q as n,r}from"./vendor-eWDfdwlh.js";const s={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},u=t({name:"solar-bookmark-bold",render:function(t,r){return e(),o("svg",s,[...r[0]||(r[0]=[n("path",{fill:"currentColor","fill-rule":"evenodd",d:"M21 11.098v4.993c0 3.096 0 4.645-.734 5.321c-.35.323-.792.526-1.263.58c-.987.113-2.14-.907-4.445-2.946c-1.02-.901-1.529-1.352-2.118-1.47a2.2 2.2 0 0 0-.88 0c-.59.118-1.099.569-2.118 1.47c-2.305 2.039-3.458 3.059-4.445 2.945a2.24 2.24 0 0 1-1.263-.579C3 20.736 3 19.188 3 16.091v-4.994C3 6.81 3 4.666 4.318 3.333S7.758 2 12 2s6.364 0 7.682 1.332S21 6.81 21 11.098M8.25 6A.75.75 0 0 1 9 5.25h6a.75.75 0 0 1 0 1.5H9A.75.75 0 0 1 8.25 6","clip-rule":"evenodd"},null,-1)])])}}),c=new Set(["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtu.be","youtube-nocookie.com","www.youtube-nocookie.com","music.youtube.com","yt.fkltt.com"]);function a(t){try{const e=/^https?:\/\//i.test(t);return new URL(e?t:`https://${t}`)}catch(e){return null}}function l(t){const e=function(t){try{return t.toLowerCase()}catch(e){return""}}(t);return c.has(e)}function i(t){if(!t||"string"!=typeof t)return null;const e=a(t);if(!e)return null;if(!l(e.hostname))return null;let o="";const n=e.pathname||"";if("/watch"===n){const t=e.searchParams.get("v");t&&(o=t)}if(!o&&e.hostname.endsWith("youtu.be")){const t=n.split("/").filter(Boolean);t.length>=1&&(o=t[0])}if(!o&&n.startsWith("/embed/")&&(o=n.split("/")[2]||""),!o&&n.startsWith("/shorts/")&&(o=n.split("/")[2]||""),!o&&"yt.fkltt.com"===e.hostname&&n.startsWith("/embed/")&&(o=n.split("/")[2]||""),!o){const t=e.searchParams.get("v");t&&(o=t)}return o.includes("?")&&(o=o.split("?")[0]),o.includes("&")&&(o=o.split("&")[0]),"string"==typeof(r=o)&&/^[A-Za-z0-9_-]{11}$/.test(r)?o:null;var r}function m(t){const e=a(t);return!(!e||!l(e.hostname))}function h(){const t=r(!1),e=r(!1),o=r({}),n=()=>{e.value=!1};return{loading:t,propsAlertDialog:o,showAlertDialog:e,openAlertDialog:t=>{o.value=t,e.value=!0},performAction:async function(e,o){t.value=!0;try{await e(),t.value=!1,n(),o&&o.onSuccess&&o.onSuccess()}catch(r){console.error(r),t.value=!1,o&&o.onError&&o.onError()}},closeAlertDialog:n}}export{u as I,i as e,m as i,h as u};
2//# sourceMappingURL=useAlertDialog-VNm_616D.js.map

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.