PageSourceSearch

https://get-brand-kit.lovable.app/assets/kits.functions-DVrh9o8R.js

js get-brand-kit.lovable.app collected 2026-10-03 03:27:24 UTC 3,322 bytes, 1 lines download raw bytes

1import{r as u,e as c,f as s}from"./main-BEtzkGFX.js";const d="branddna.anon_token",f="branddna.anon_token_history";function m(){if(typeof window>"u")return"";let e=localStorage.getItem(d);e||(e=crypto.randomUUID(),localStorage.setItem(d,e));try{const r=localStorage.getItem(f),t=r?JSON.parse(r):[];t.includes(e)||(t.push(e),localStorage.setItem(f,JSON.stringify(t.slice(-20))))}catch{localStorage.setItem(f,JSON.stringify([e]))}return e}function b(){if(typeof window>"u")return[];const e=m();try{const r=localStorage.getItem(f),t=r?JSON.parse(r):[];return t.includes(e)||t.push(e),Array.from(new Set(t))}catch{return[e]}}function h(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function g(e,r){switch((/\.(woff2|woff|ttf|otf|eot)(?:\?|#|$)/i.exec(e)?.[1]||r||"").toLowerCase()){case"woff2":return"woff2";case"woff":return"woff";case"ttf":return"truetype";case"otf":return"opentype";case"eot":return"embedded-opentype";default:return"woff2"}}function p(e){u.useEffect(()=>{if(typeof document>"u"||!e?.length)return;e.forEach(t=>{if(!t?.google_font||!t?.family)return;const n=`branddna-gf-${h(String(t.family))}`;if(document.getElementById(n))return;const a=(Array.isArray(t.weights)&&t.weights.length?t.weights:["300","400","500","600","700"]).map(l=>String(l).replace(/[^0-9]/g,"")).filter(Boolean),i=encodeURIComponent(String(t.family)).replace(/%20/g,"+"),o=document.createElement("link");o.id=n,o.rel="stylesheet",o.href=`https://fonts.googleapis.com/css2?family=${i}:wght@${a.join(";")}&display=swap`,document.head.appendChild(o)});const r=[];if(e.forEach(t=>{if(!Array.isArray(t?.file_urls)||t.file_urls.length===0)return;const n=(t.source_family||t.family||"").trim();n&&t.file_urls.slice(0,24).forEach(a=>{if(!a?.url)return;const i=g(a.url,a.format),o=a.weight&&/\d/.test(String(a.weight))?a.weight:"400",l=a.style&&/italic|oblique/i.test(a.style)?"italic":"normal";r.push(`@font-face{font-family:"${n}";src:url("${a.url}") format("${i}");font-weight:${o};font-style:${l};font-display:swap;}`)})}),r.length){const t="branddna-autoimport-faces";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n));const a=n.textContent||"",i=r.filter(o=>!a.includes(o)).join("");i&&(n.textContent=a+i)}},[e])}function w(e){return e?Array.isArray(e.file_urls)&&e.file_urls.length>0&&e.source_family?e.source_family:e.family??e.source_family??null:null}const S=c({method:"GET"}).handler(s("b45063c3f2b77b933e67e55d14b83669678a9b4238cd30d95a3c24848d2f44e8")),_=c({method:"POST"}).handler(s("2267d95a09bdf28345835643d23e74a50c12d81a5a9426a312098f22a1586fe9")),O=c({method:"POST"}).handler(s("071e452ff4b0031206d5f74539ec2ba996140ee8ca9beb1fe2506b4dbc8155c3")),E=c({method:"POST"}).handler(s("b3ed096b7a6065f522ca516c6b9cfda2cf3e4cb38b9f74aea29ae12f152f3a5a")),I=c({method:"POST"}).handler(s("89c81160e6fb70fadc060abe74df0c1de6438f1123657b41162d0a88a9ad306f")),T=c({method:"POST"}).handler(s("18dcf6c2f8bc1e013e1df68993858b75ca6b741f30b5da2b00dcd759256c45f5")),A=c({method:"POST"}).handler(s("8b3efc8ea9266051d98119711ba39dff139c5bee38147a24b8a37b4f09697a93")),$=c({method:"POST"}).handler(s("6d54519b7cc11c449e3c201cbbe1aa5c66ff76a3e05efb2cf0faf28c9af4cf30"));export{T as a,$ as b,b as c,I as d,w as e,_ as f,m as g,O as h,A as l,E as r,p as u,S as w};

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.