1import { initializers } from '@dropins/tools/initializer.js'; 2import { initialize, setEndpoint } from '@dropins/storefront-auth/api.js'; 3import { getConfigValue } from '@dropins/tools/lib/aem/configs.js'; 4import { initializeDropin } from './index.js'; 5import { CORE_FETCH_GRAPHQL, fetchPlaceholders } from '../commerce.js'; 6 7await initializeDropin(async () => { 8 // Set Fetch GraphQL (Core) 9 setEndpoint(CORE_FETCH_GRAPHQL); 10 11 // Fetch placeholders 12 const labels = await fetchPlaceholders('placeholders/auth.json'); 13 const langDefinitions = { 14 default: { 15 ...labels, 16 }, 17 }; 18 19 // Initialize auth 20 return initializers.mountImmediately(initialize, { langDefinitions, adobeCommerceOptimizer: getConfigValue('adobe-commerce-optimizer') }); 21})();
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.