-- Decompiled with the Synapse X Luau decompiler.


client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
gTable = nil;
return function(p1)
	if not p1.Question then
		return;
	end;
	local l__gTable__1 = p1.gTable;
	local l__BaseClip__2 = script.Parent.Parent.BaseClip;
	local v3 = p1.Duration or p1.Timeout;
	local l__Frame__4 = l__BaseClip__2.Frame;
	l__Frame__4.Parent = l__BaseClip__2;
	l__Frame__4.Position = UDim2.new(0.5, -210, 0, -l__Frame__4.Size.Y.Offset);
	l__Frame__4.Visible = true;
	local l__Body__5 = l__Frame__4:WaitForChild("Body");
	local l__Options__6 = l__Body__5:WaitForChild("Options");
	local l__Confirm__7 = l__Options__6:WaitForChild("Confirm");
	local l__Cancel__8 = l__Options__6:WaitForChild("Cancel");
	l__Body__5:WaitForChild("Command").Text = p1.Subtitle and " ";
	l__Body__5.Ques.Text = p1.Question and "Unknown";
	l__Frame__4.Top.Title.Text = p1.Title and "Yes/No Prompt";
	l__Body__5.Options.Cancel.Text = p1.No and "No";
	l__Body__5.Options.Confirm.Text = p1.Yes and "Yes";
	l__gTable__1:Ready();
	local u1 = nil;
	function l__gTable__1.CustomDestroy()
		l__gTable__1.CustomDestroy = nil;
		l__gTable__1.ClearEvents();
		if u1 == nil then
			u1 = p1.No and "No";
		end;
		pcall(function()
			l__Frame__4:TweenPosition(UDim2.new(0.5, -210, 1, 0), "Out", "Quint", 0.3, true, function(p2)
				if p2 == Enum.TweenStatus.Completed then
					l__Frame__4:Destroy();
				end;
			end);
			wait(0.3);
		end);
		l__gTable__1:Destroy();
	end;
	l__Frame__4:TweenPosition(UDim2.new(0.5, -210, 0.5, -70), "Out", "Quint", 0.3, true);
	local u2 = nil;
	u2 = l__gTable__1.BindEvent(l__Confirm__7.MouseButton1Click, function()
		u2:Disconnect();
		l__Frame__4:TweenPosition(UDim2.new(0.5, -210, 1, 0), "Out", "Quint", 0.3, true, function(p3)
			if p3 == Enum.TweenStatus.Completed then
				l__Frame__4:Destroy();
			end;
		end);
		u1 = p1.Yes and "Yes";
		wait(0.3);
		l__gTable__1:Destroy();
	end);
	local u3 = nil;
	u3 = l__gTable__1.BindEvent(l__Cancel__8.MouseButton1Click, function()
		u3:Disconnect();
		l__Frame__4:TweenPosition(UDim2.new(0.5, -210, 1, 0), "Out", "Quint", 0.3, true, function(p4)
			if p4 == Enum.TweenStatus.Completed then
				l__Frame__4:Destroy();
			end;
		end);
		u1 = p1.No and "No";
		wait(0.3);
		l__gTable__1:Destroy();
	end);
	local v9 = tick();
	while true do
		wait();
		if u1 ~= nil then
			break;
		end;
		if v3 and v3 < tick() - v3 then
			break;
		end;	
	end;
	if u1 == nil then
		u1 = false;
	end;
	return nil;
end;
