1import { 2 defineComponent, 3 mergeDeep, 4 propsFactory 5} from "/node_modules/.vite/deps/chunk-BOFRZLPU.js?v=57278f65"; 6import { 7 computed, 8 createVNode, 9 h, 10 inject, 11 isRef, 12 mergeProps 13} from "/node_modules/.vite/deps/chunk-VM65JGXE.js?v=57278f65"; 14
vendor: 1,150 bytes, lines 15-58
15// node_modules/vuetify/lib/iconsets/mdi.mjs 16var aliases = { 17 collapse: "mdi-chevron-up", 18 complete: "mdi-check", 19 cancel: "mdi-close-circle", 20 close: "mdi-close", 21 delete: "mdi-close-circle", 22 clear: "mdi-close-circle", 23 success: "mdi-check-circle", 24 info: "mdi-information", 25 warning: "mdi-alert-circle", 26 error: "mdi-close-circle", 27 prev: "mdi-chevron-left", 28 next: "mdi-chevron-right", 29 checkboxOn: "mdi-checkbox-marked", 30 checkboxOff: "mdi-checkbox-blank-outline", 31 checkboxIndeterminate: "mdi-minus-box", 32 delimiter: "mdi-circle", 33 sort: "mdi-arrow-up", 34 expand: "mdi-chevron-down", 35 menu: "mdi-menu", 36 subgroup: "mdi-menu-down", 37 dropdown: "mdi-menu-down", 38 radioOn: "mdi-radiobox-marked", 39 radioOff: "mdi-radiobox-blank", 40 edit: "mdi-pencil", 41 ratingEmpty: "mdi-star-outline", 42 ratingFull: "mdi-star", 43 ratingHalf: "mdi-star-half-full", 44 loading: "mdi-cached", 45 first: "mdi-page-first", 46 last: "mdi-page-last", 47 unfold: "mdi-unfold-more-horizontal", 48 file: "mdi-paperclip", 49 plus: "mdi-plus", 50 minus: "mdi-minus" 51}; 52var mdi = { 53 component: (props) => h(VClassIcon, { 54 ...props, 55 class: "mdi" 56 }) 57}; 58
vendor: 3,191 bytes, lines 59-195
59// node_modules/vuetify/lib/composables/icons.mjs 60var IconValue = [String, Function, Object]; 61var IconSymbol = Symbol.for("vuetify:icons"); 62var makeIconProps = propsFactory({ 63 icon: { 64 type: IconValue, 65 required: true 66 }, 67 tag: { 68 type: String, 69 required: true 70 } 71}, "icon"); 72var VComponentIcon = defineComponent({ 73 name: "VComponentIcon", 74 props: makeIconProps(), 75 setup(props) { 76 return () => { 77 return createVNode(props.tag, null, { 78 default: () => [createVNode(props.icon, null, null)] 79 }); 80 }; 81 } 82}); 83var VSvgIcon = defineComponent({ 84 name: "VSvgIcon", 85 inheritAttrs: false, 86 props: makeIconProps(), 87 setup(props, _ref) { 88 let { 89 attrs 90 } = _ref; 91 return () => { 92 return createVNode(props.tag, mergeProps(attrs, { 93 "style": null 94 }), { 95 default: () => [createVNode("svg", { 96 "class": "v-icon__svg", 97 "xmlns": "http://www.w3.org/2000/svg", 98 "viewBox": "0 0 24 24", 99 "role": "img", 100 "aria-hidden": "true" 101 }, [createVNode("path", { 102 "d": props.icon 103 }, null)])] 104 }); 105 }; 106 } 107}); 108var VLigatureIcon = defineComponent({ 109 name: "VLigatureIcon", 110 props: makeIconProps(), 111 setup(props) { 112 return () => { 113 return createVNode(props.tag, null, { 114 default: () => [props.icon] 115 }); 116 }; 117 } 118}); 119var VClassIcon = defineComponent({ 120 name: "VClassIcon", 121 props: makeIconProps(), 122 setup(props) { 123 return () => { 124 return createVNode(props.tag, { 125 "class": props.icon 126 }, null); 127 }; 128 } 129}); 130var defaultSets = { 131 svg: { 132 component: VSvgIcon 133 }, 134 class: { 135 component: VClassIcon 136 } 137}; 138function createIcons(options) { 139 return mergeDeep({ 140 defaultSet: "mdi", 141 sets: { 142 ...defaultSets, 143 mdi 144 }, 145 aliases 146 }, options); 147} 148var useIcon = (props) => { 149 const icons = inject(IconSymbol); 150 if (!icons) 151 throw new Error("Missing Vuetify Icons provide!"); 152 const iconData = computed(() => { 153 const iconAlias = isRef(props) ? props.value : props.icon; 154 if (!iconAlias) 155 throw new Error("Icon value is undefined or null"); 156 let icon = iconAlias; 157 if (typeof icon === "string") { 158 icon = icon.trim(); 159 if (icon.startsWith("$")) { 160 var _icons$aliases; 161 icon = (_icons$aliases = icons.aliases) == null ? void 0 : _icons$aliases[icon.slice(1)]; 162 } 163 } 164 if (!icon) 165 throw new Error(`Could not find aliased icon "${iconAlias}"`); 166 if (typeof icon !== "string") { 167 return { 168 component: VComponentIcon, 169 icon 170 }; 171 } 172 const iconSetName = Object.keys(icons.sets).find((setName) => typeof icon === "string" && icon.startsWith(`${setName}:`)); 173 const iconName = iconSetName ? icon.slice(iconSetName.length + 1) : icon; 174 const iconSet = icons.sets[iconSetName != null ? iconSetName : icons.defaultSet]; 175 return { 176 component: iconSet.component, 177 icon: iconName 178 }; 179 }); 180 return { 181 iconData 182 }; 183}; 184 185export { 186 IconValue, 187 IconSymbol, 188 VComponentIcon, 189 VSvgIcon, 190 VLigatureIcon, 191 VClassIcon, 192 createIcons, 193 useIcon 194}; 195//# sourceMappingURL=chunk-Y5AMQCR6.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.