function Window.new(p)local J={_model=p,_state=Constants.State.Window.Normal,_connections={}}setmetatable(J,{__index=Window})J._connections.repairConnection=(p:FindFirstChild("\071\108\097\115\115")).Touched:Connect(function(p)if p.Anchored then return end if CollectionService:HasTag(p,Constants.Tag.Tool.RepairKit)and J._state==Constants.State.Window.Breached then p:Destroy()J:fix()end end)return J end

function Window.new(model)
	local component = {
		_model = model,
		_state = Constants.State.Window.Normal,
		_connections = {}
	}

	setmetatable(component, {__index = Window})

	component._connections.repairConnection =
		model:FindFirstChild("Glass").Touched:Connect(
		function(otherPart)
			if otherPart.Anchored then
				return
			end

			if
				CollectionService:HasTag(otherPart, Constants.Tag.Tool.RepairKit) and
					component._state == Constants.State.Window.Breached
			 then
				otherPart:Destroy()
				component:fix()
			end
		end
	)

	return component
end
