{"version":3,"sources":["jsdelivr-header.js","/gh/Nbxkreatif/younbx-pwa@main/datafire.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNiB,kBAAqB,oEACrB,YAAa,IAAK,QAAW,yEAC7B,aAAc,WAAY,OAAQ,MAAO,QAAS,WAAY,gBAAiB,IAAK,UAAW,UAAW,QAAS,UAAa,0EAChI,QAAS,mBAAoB,gBAAiB,QAAS,uBAA0B,8DAE1F,MAAM,UAAY,cAAc,WAAW,OAAQ,aAC7C,WAAa,YAAY,WAEzB,QAAU,cAAc,WAAW,KAAM,WACzC,YAAc,aAAa,SAC3B,KAAO,QAAQ,SACf,SAAW,IAAI,mBAErB,eAAe,mBACX,IACI,MAAM,QAAiB,IAAI,IAAI,WAAY,qBAC3C,GAAI,EAAS,SAAU,CACnB,MAAM,EAAS,SAAS,eAAe,YAAY,QAC/C,IAAQ,EAAO,IAAM,EAAS,MACtC,MACI,QAAQ,KAAK,6BAErB,CAAE,MAAO,GACL,QAAQ,MAAM,uBAAwB,EAC1C,CACJ,CAEA,OAAO,gBAAkB,CACrB,sBAAY,wBAAa,UAAM,kBAC/B,sBAAY,cAAQ,YAAO,gBAAS,sBAAY,gCAAiB,QAAK,oBAAW,oBAAW,gBAAS,YACrG,QAAK,QAAK,gCAAiB,gBAAS,sCAAoB,mCAG5D,SAAS,iBAAiB,mBAAoB,KAC1C,gBAAgB","file":"/gh/Nbxkreatif/younbx-pwa@main/datafire.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /gh/Nbxkreatif/younbx-pwa@main/datafire.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","        import { initializeApp } from \"https://www.gstatic.com/firebasejs/10.12.2/firebase-app.js\";\n        import { getDatabase, ref, get } from \"https://www.gstatic.com/firebasejs/10.12.2/firebase-database.js\";\n        import { getFirestore, collection, addDoc, query, orderBy, onSnapshot, serverTimestamp, doc, deleteDoc, updateDoc, getDocs, where } from \"https://www.gstatic.com/firebasejs/10.12.2/firebase-firestore.js\";\n        import { getAuth, GoogleAuthProvider, signInWithPopup, signOut, onAuthStateChanged } from \"https://www.gstatic.com/firebasejs/10.12.2/firebase-auth.js\";\n\n        const playerApp = initializeApp(APP_CONFIG.PLAYER, \"playerApp\");\n        const realtimeDB = getDatabase(playerApp);\n\n        const chatApp = initializeApp(APP_CONFIG.CHAT, \"chatApp\");\n        const firestoreDB = getFirestore(chatApp);\n        const auth = getAuth(chatApp);\n        const provider = new GoogleAuthProvider();\n\n        async function loadPlayerIframe() {\n            try {\n                const snapshot = await get(ref(realtimeDB, \"config/iframeUrl\"));\n                if (snapshot.exists()) {\n                    const player = document.getElementById(APP_ELEMENT.PLAYER);\n                    if (player) player.src = snapshot.val();\n                } else {\n                    console.warn(\"iframeUrl tidak ditemukan.\");\n                }\n            } catch (err) {\n                console.error(\"Gagal memuat iframe:\", err);\n            }\n        }\n\n        window.FirebaseService = {\n            realtimeDB, firestoreDB, auth, provider,\n            collection, addDoc, query, orderBy, onSnapshot, serverTimestamp, doc, deleteDoc, updateDoc, getDocs, where,\n            ref, get, signInWithPopup, signOut, onAuthStateChanged, loadPlayerIframe\n        };\n\n        document.addEventListener(\"DOMContentLoaded\", () => {\n            FirebaseService.loadPlayerIframe();\n        });\n    \n"]}