PageSourceSearch

https://magiclight.ai/assets/_7BxJVBP.js

js magiclight.ai collected 2026-10-01 14:41:40 UTC 1,285 bytes, 1 lines download raw bytes

1import{d as p,P as f,M as m,a2 as F,u as e,N as r,ak as b,an as y,a0 as n,O as c,a1 as k,R as _,_ as g}from"./B9hccdKs.js";import{u as A,F as B}from"./BaJBTFdQ.js";import{F as $}from"./Beq6F0rg.js";import"./D6kYyQpC.js";const C=["disabled","aria-label"],h=p({__name:"asset-favorite-button",props:{type:{},id:{},isFavorite:{type:Boolean,default:!1},source:{},variant:{default:"overlay"},reportSource:{default:""}},setup(s){const t=s,{isMobile:l}=f(),{currentFavorite:o,isFavoriteLoading:u,toggle:v}=A(t.type,()=>t.id,()=>t.isFavorite,()=>t.source),d=async()=>{const a=o.value,i=await v();k(_.AssetFavoriteClick,{assetType:t.type,assetId:t.id,action:a?"unsave":"save",status:i?"success":"failed",source:t.reportSource})};return(a,i)=>s.variant==="inline"||!e(l)?(r(),m("button",{key:0,type:"button",class:y(["asset-favorite-button","asset-favorite-button--".concat(s.variant)]),disabled:e(u),"aria-label":e(o)?("$t"in a?a.$t:e(n))("role-library.removeFromFavorites"):("$t"in a?a.$t:e(n))("role-library.addToFavorites"),onClick:b(d,["stop"])},[e(o)?(r(),c(e(B),{key:1,class:"asset-favorite-button-icon"})):(r(),c(e($),{key:0,class:"asset-favorite-button-icon"}))],10,C)):F("",!0)}}),T=Object.assign(g(h,[["__scopeId","data-v-ad1e7e56"]]),{__name:"UiAssetFavoriteButton"});export{T as A};

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.