���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.output
/
server
/
node_modules
/
@iconify
/
utils
/
lib
/
loader
/
Viewing: custom.mjs
import createDebugger from 'debug'; import { mergeIconProps } from './utils.mjs'; import { trimSVG } from '../svg/trim.mjs'; import '../svg/build.mjs'; import '../icon/defaults.mjs'; import '../customisations/defaults.mjs'; import '../svg/size.mjs'; import '../svg/defs.mjs'; const debug = createDebugger("@iconify-loader:custom"); async function getCustomIcon(custom, collection, icon, options) { let result; debug(`${collection}:${icon}`); try { if (typeof custom === "function") { result = await custom(icon); } else { const inline = custom[icon]; result = typeof inline === "function" ? await inline() : inline; } } catch (err) { console.warn( `Failed to load custom icon "${icon}" in "${collection}":`, err ); return; } if (result) { const cleanupIdx = result.indexOf("<svg"); if (cleanupIdx > 0) result = result.slice(cleanupIdx); const { transform } = options?.customizations ?? {}; result = typeof transform === "function" ? await transform(result, collection, icon) : result; if (!result.startsWith("<svg")) { console.warn( `Custom icon "${icon}" in "${collection}" is not a valid SVG` ); return result; } return await mergeIconProps( options?.customizations?.trimCustomSvg === true ? trimSVG(result) : result, collection, icon, options, void 0 ); } } export { getCustomIcon };
Coded With 💗 by
0x6ick Mod By V1rus_Alfa