const g={dialogType:"story",checkWinCondition:(i,n,l={})=>{console.log("onWin:",l);const o=l.blocklyMoves;if(!n||!o||o.length===0)return console.log("Win condition failed: checkpoints not completed or no moves found"),!1;const a=o.some(e=>e.type==="dialogue"),s=o.some(e=>e.type==="dialogue"&&e.value==="Boleh saja!");return console.log("usedDialogue:",a),console.log("usedMessage:",s),a&&s?(console.log("Win condition met: Dialogue + 'Boleh saja!' message used"),!0):(console.log("Win condition failed: Dialogue/Message missing"),!1)},blockValidator:(i,n,l={},o={})=>{console.log("Validating win block sequence:",i);const a=i.filter(e=>e.type==="dialogue");return a.length===0?(console.log("Block validation failed: No dialogue block found"),!1):a.some(e=>e.value==="Boleh saja!")?(console.log("Block validation PASSED: Found ['dialogue:Boleh saja!']"),!0):(console.log("Block validation failed: Missing dialogue 'Boleh saja!'"),!1)},dialogues:[{speaker:"Rob",message:"Boleh saja!",characterDirection:"left",dialogType:"story",image:"images/ROB_Dialogue_Head.webp"},{speaker:"Adam",message:"Terima kasih ya Rob! Sila guna ikan bilis ini apabila terjumpa dengannya.",characterDirection:"right",dialogType:"story",image:"images/Adam_Dialogue_Head.webp"},{speaker:"Rob",message:"",characterDirection:"left",dialogType:"achievement",image:"images/Food Icons/Fish_02_Icon.webp"}]};export{g as winConfig};
