-- Decompiled with the Synapse X Luau decompiler.


client = nil;
service = nil;
return function(p1)
	local v1 = {
		Name = p1.Name and "Prompt", 
		Title = p1.Title and "Prompt", 
		Size = p1.Size or { 225, 150 }, 
		SizeLocked = true
	};
	local u1 = nil;
	function v1.OnClose()
		if not u1 then
			u1 = p1.DefaultAnswer and "";
		end;
	end;
	local v2 = client.UI.Make("Window", v1);
	local v3 = v2:Add("TextLabel", {
		Text = p1.Question, 
		Font = "SourceSans", 
		TextScaled = true, 
		BackgroundTransparency = 1, 
		TextWrapped = true, 
		Size = UDim2.new(1, -10, 1, -35)
	});
	local v4 = v2:Add("TextBox", {
		Text = "", 
		TextSize = 18, 
		PlaceholderText = p1.PlaceholderText and "", 
		ClearTextOnFocus = p1.ClearTextOnFocus and false, 
		Size = UDim2.new(1, -40, 0, 25), 
		Position = UDim2.new(0, 5, 1, -30)
	});
	v4.FocusLost:Connect(function(p2)
		if p2 then
			u1 = v4.Text;
			v2:Close();
		end;
	end);
	local v5 = v2:Add("TextButton", {
		Text = ">", 
		Font = "Arial", 
		TextSize = 22, 
		Size = UDim2.new(0, 25, 0, 25), 
		Position = UDim2.new(1, -30, 1, -30), 
		OnClick = function()
			u1 = v4.Text;
			v2:Close();
		end
	});
	local l__gTable__6 = v2.gTable;
	v2:Ready();
	while true do
		wait();
		if u1 then
			break;
		end;	
	end;
	return nil;
end;
